load(__DIR__.'/../.env'); } if (getenv('APP_DEBUG')) { // WARNING: You should setup permissions the proper way! // REMOVE the following PHP line and read // https://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup umask(0000); Debug::enable(); } // Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED); require_once __DIR__.'/legacy.php'; $kernel = new Kernel(getenv('APP_ENV'), getenv('APP_DEBUG')); //$request = Request::createFromGlobals(); $request = Sonata\PageBundle\Request\RequestFactory::createFromGlobals( 'host_with_path_by_locale' ); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);