Fix app.php

ofaj
jmontoyaa 10 years ago
parent 9f20ab2b8b
commit 1b09175a05
  1. 10
      web/app.php

@ -1,7 +1,7 @@
<?php <?php
use Symfony\Component\ClassLoader\ApcClassLoader; //use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request; //use Symfony\Component\HttpFoundation\Request;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line // If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
@ -23,16 +23,12 @@ $apcLoader->register(true);
require_once __DIR__.'/../app/AppKernel.php'; require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
$request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals( $request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals(
'host_with_path_by_locale' 'host_with_path_by_locale'
); );
$kernel = new AppKernel('prod', false); $kernel = new AppKernel('prod', false);
$kernel->loadClassCache(); //$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
$response = $kernel->handle($request); $response = $kernel->handle($request);
$response->send(); $response->send();

Loading…
Cancel
Save