diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 8c6a51d..e6df1c2 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -22,8 +22,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $treeBuilder->root('phpmentors_session_configuration'); + $treeBuilder = new TreeBuilder('phpmentors_session_configuration'); + $treeBuilder->getRootNode(); return $treeBuilder; } diff --git a/src/EventListener/SessionConfigurationListener.php b/src/EventListener/SessionConfigurationListener.php index 3188168..45e3b6f 100644 --- a/src/EventListener/SessionConfigurationListener.php +++ b/src/EventListener/SessionConfigurationListener.php @@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface; -use Symfony\Component\HttpKernel\Event\GetResponseEvent; +use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\Routing\RouterInterface; class SessionConfigurationListener @@ -41,9 +41,9 @@ public function __construct(RouterInterface $router, SessionStorageInterface $se } /** - * @param GetResponseEvent $event + * @param RequestEvent $event */ - public function onKernelRequest(GetResponseEvent $event) + public function onKernelRequest(RequestEvent $event) { if ($this->sessionStorage === null) { return;