unregister(); $apcLoader->register(true); */ require_once __DIR__.'/../app/AppKernel.php'; $request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals( 'host_with_path_by_locale' ); $kernel = new AppKernel('prod', false); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);