Esempio n. 1
0
 /**
  * The starting point of every application call. If you are only
  * using the framework you can rename this function to whatever you
  * like.
  */
 function eve()
 {
     $class = Eve\Framework\Index::i();
     if (func_num_args() == 0) {
         return $class;
     }
     $args = func_get_args();
     return $class->__invoke($args);
 }
Esempio n. 2
0
<?php

// -->
require_once __DIR__ . '/vendor/autoload.php';
// initialize and run the worker, set up
// required paths and load up default database
Eve\Framework\Index::i(__DIR__, 'Eve')->defaultPaths()->defaultDatabases()->work();
Esempio n. 3
0
<?php

//-->
/*
 * This file is part a custom application package.
 * (c) 2011-2012 Openovate Labs
 */
require_once realpath(__DIR__ . '/../vendor') . '/autoload.php';
Eve\Framework\Index::i(dirname(__DIR__), 'Eve')->add(Eve\App\Rest\Route::i()->import())->add(Eve\App\Dialog\Route::i()->import())->add(Eve\App\Back\Route::i()->import())->add(Eve\App\Front\Route::i()->import())->defaultBootstrap();
Esempio n. 4
0
<?php

//-->
/*
 * This file is part of the Core package of the Eden PHP Library.
 * (c) 2012-2013 Openovate Labs
 *
 * Copyright and license information can be found at LICENSE
 * distributed with this package.
 */
if (file_exists(__DIR__ . '/../../../autoload.php')) {
    require_once __DIR__ . '/../../../autoload.php';
} else {
    require_once __DIR__ . '/../vendor/autoload.php';
}
require_once __DIR__ . '/BrowserSetup.php';
require_once __DIR__ . '/BrowserTest.php';
Eve\Framework\Index::i(dirname(__DIR__), 'Eve');
//create db helper
$create = (include 'helper/create-database.php');
//just call it
$create();