Skip to content

Commit

Permalink
SessionExtension: used setFactory() instead of misused setClass()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 24, 2017
1 parent a7795d0 commit 234d02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridges/HttpDI/SessionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']]);
Expand Down

0 comments on commit 234d02d

Please sign in to comment.