コード例 #1
0
ファイル: index.php プロジェクト: nuxwin/i-PMS
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * @package     iPMS
 * @package     Core
 * @category    Kernel
 * @copyright   2011 by Laurent Declercq
 * @author      Laurent Declercq <*****@*****.**>
 * @link        http://www.i-pms.net i-PMS Home Site
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GPL v2
 */
/**
 * Check PHP version (5.3.2 or newer )
 */
if (version_compare(phpversion(), '5.3.2', '<') === true) {
    die('Error: Your PHP version is ' . phpversion() . ". i-PMS requires PHP 5.3.2 or newer.\n");
}
defined('SERVER_NAME') || define('SERVER_NAME', $_SERVER['SERVER_NAME']);
defined('ROOT_PATH') || define('ROOT_PATH', realpath(dirname(__FILE__)));
defined('APPLICATION_PATH') || define('APPLICATION_PATH', ROOT_PATH . '/application');
defined('THEME_PATH') || define('THEME_PATH', ROOT_PATH . '/themes');
// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(ROOT_PATH . '/library', get_include_path())));
/**
 * @see ApplicationKernel
 */
require_once __DIR__ . '/application/ApplicationKernel.php';
// Create application, bootstrap, and run
$kernel = new ApplicationKernel(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
$kernel->loadClassCache()->run();
コード例 #2
0
ファイル: index.php プロジェクト: jacques-sounvi/addressbook
<?php

require_once __DIR__ . '/../application/ApplicationKernel.php';
$kernel = new ApplicationKernel('prod', false);
$kernel->handle()->send();
コード例 #3
0
ファイル: app.php プロジェクト: mpoiriert/kohana-cell
<?php

require_once "../vendor/autoload.php";
include __DIR__ . '/../demo/ApplicationKernel.php';
ApplicationKernel::createInstance()->handleRequest();
コード例 #4
0
ファイル: console.php プロジェクト: mpoiriert/nucleus
<?php

require_once __DIR__ . "/../vendor/autoload.php";
include __DIR__ . '/../demo/ApplicationKernel.php';
$application = ApplicationKernel::createInstance();
$consoleApplication = $application->getNucleus()->getServiceContainer()->getServiceByName("console");
$consoleApplication->run();