Created
January 8, 2012 23:25
-
-
Save robap/1580087 to your computer and use it in GitHub Desktop.
My Symfony project web/app.php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/../app/bootstrap.php.cache'; | |
require_once __DIR__.'/../app/AppKernel.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
$mode = (getenv('APPLICATION_ENV')) ? getenv('APPLICATION_ENV') : 'dev'; | |
umask(0000); | |
$kernel = new AppKernel($mode, false); | |
$kernel->loadClassCache(); | |
if($mode == 'prod') | |
{ | |
require_once __DIR__.'/../app/AppCache.php'; | |
$kernel = new AppCache($kernel); | |
} | |
$kernel->handle(Request::createFromGlobals())->send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment