diff --git a/src/Bridges/HttpDI/SessionExtension.php b/src/Bridges/HttpDI/SessionExtension.php index 9a2ac7ef..870ae82c 100644 --- a/src/Bridges/HttpDI/SessionExtension.php +++ b/src/Bridges/HttpDI/SessionExtension.php @@ -42,7 +42,7 @@ public function loadConfiguration() $this->setConfig($config); $session = $builder->addDefinition($this->prefix('session')) - ->setClass(Nette\Http\Session::class); + ->setFactory(Nette\Http\Session::class); if ($config['expiration']) { $session->addSetup('setExpiration', [$config['expiration']]);