|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
use Symfony\Component\ClassLoader\ApcClassLoader; |
|
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
//use Symfony\Component\ClassLoader\ApcClassLoader; |
|
|
|
|
//use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
|
|
|
|
|
// 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 |
|
|
|
|
@ -23,16 +23,12 @@ $apcLoader->register(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require_once __DIR__.'/../app/AppKernel.php'; |
|
|
|
|
//require_once __DIR__.'/../app/AppCache.php'; |
|
|
|
|
$request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals( |
|
|
|
|
'host_with_path_by_locale' |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$kernel = new AppKernel('prod', false); |
|
|
|
|
$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 |
|
|
|
|
//$kernel->loadClassCache(); |
|
|
|
|
|
|
|
|
|
$response = $kernel->handle($request); |
|
|
|
|
$response->send(); |
|
|
|
|
|