Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created April 28, 2012 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2516559 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2516559 to your computer and use it in GitHub Desktop.
Standard Symfony 2 front controller file for production environment - http://www.symfonycentral.com
<?php
// web/app.php
require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
use Symfony\Component\HttpFoundation\Request;
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$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