<?php

include "application/configs/application.php";
$application = new Application(new FrontController());
$application->setApplicationSettings("applicationName", "MVC Annotations Framework")->setApplicationSettings("applicationDescription", "")->setApplicationSettings("applicationAuthor", "Calgary Web Dev")->setApplicationSettings("applicationVersion", "1.00.2012.03.10")->setApplicationSettings("applicationYear", date("Y"));
$application->boot();
Example #2
0
 /**
  * @param string $env
  */
 public static function kernelBootstrap($env = AppKernel::ENV_DEV)
 {
     static::$application = static::getApplication($env);
     static::$application->boot();
 }
Example #3
0
<?php

/**
 * Created by PhpStorm.
 * User: janhuang
 * Date: 15/3/11
 * Time: 下午3:36
 * Github: https://www.github.com/janhuang
 * Coding: https://www.coding.net/janhuang
 * SegmentFault: http://segmentfault.com/u/janhuang
 * Blog: http://segmentfault.com/blog/janhuang
 * Gmail: bboyjanhuang@gmail.com
 */
/**
 * The local develop environment index.
 */
include __DIR__ . '/../vendor/autoload.php';
$app = new Application('dev');
$app->boot();
$response = $app->createHttpRequestHandler();
$response->send();
$app->shutdown($app);
Example #4
0
 public function testKernel()
 {
     $app = new \Application('dev');
     $app->boot();
     $this->assertEquals('dev', $app->getEnvironment());
 }