From f5dc8e5bcfdeff9386ebf8b1c4a313d812d4cecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Macias?= Date: Tue, 9 Jan 2018 23:30:36 +0100 Subject: [PATCH] Fix possible Symfony 4 compatibility By removing `PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter "session.storage.options" must be defined.` error. --- Bootstraps/Symfony.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index ca909d7..2196a4e 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -73,7 +73,7 @@ public function getApplication() //now we can modify the container $nativeStorage = new StrongerNativeSessionStorage( - $app->getContainer()->getParameter('session.storage.options'), + $app->getContainer()->has('session.storage.options') ? $app->getContainer()->getParameter('session.storage.options') : array(), $app->getContainer()->has('session.handler') ? $app->getContainer()->get('session.handler'): null ); $app->getContainer()->set('session.storage.native', $nativeStorage);