|
|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
umask(0000); |
|
|
|
|
|
|
|
|
|
use Symfony\Component\ClassLoader\ApcClassLoader; |
|
|
|
|
//use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
|
|
|
|
|
@ -21,17 +23,13 @@ require_once __DIR__.'/legacy.php'; |
|
|
|
|
// if you want to use the SonataPageBundle with multisite |
|
|
|
|
// using different relative paths, you must change the request |
|
|
|
|
// object to use the SiteRequest |
|
|
|
|
use Sonata\PageBundle\Request\SiteRequest as Request; |
|
|
|
|
use Sonata\PageBundle\Request\RequestFactory; |
|
|
|
|
$request = RequestFactory::createFromGlobals('host_with_path'); |
|
|
|
|
|
|
|
|
|
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter |
|
|
|
|
//Request::enableHttpMethodParameterOverride(); |
|
|
|
|
$request = Request::createFromGlobals(); |
|
|
|
|
|
|
|
|
|
$kernel = new AppKernel('prod', false); |
|
|
|
|
$kernel->loadClassCache(); |
|
|
|
|
//$kernel = new AppCache($kernel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$response = $kernel->handle($request); |
|
|
|
|
$response->send(); |
|
|
|
|
$kernel->terminate($request, $response); |
|
|
|
|
|