From 693ec9e93a9022d4bf488fdb3e048bd910a3e599 Mon Sep 17 00:00:00 2001 From: tdutrion Date: Sat, 23 Mar 2019 16:23:54 +0100 Subject: [PATCH] Add project path to app Kernel instanciation --- symfony/console/3.3/bin/console | 2 +- symfony/framework-bundle/4.2/public/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/console/3.3/bin/console b/symfony/console/3.3/bin/console index 52fd3989f..6a371b07f 100755 --- a/symfony/console/3.3/bin/console +++ b/symfony/console/3.3/bin/console @@ -33,6 +33,6 @@ if ($_SERVER['APP_DEBUG']) { } } -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG'], dirname(__DIR__)); $application = new Application($kernel); $application->run($input); diff --git a/symfony/framework-bundle/4.2/public/index.php b/symfony/framework-bundle/4.2/public/index.php index e30f90c03..1f692a3d8 100644 --- a/symfony/framework-bundle/4.2/public/index.php +++ b/symfony/framework-bundle/4.2/public/index.php @@ -20,7 +20,7 @@ Request::setTrustedHosts([$trustedHosts]); } -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG'], dirname(__DIR__)); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send();