Skip to content

Commit

Permalink
updated for nette/di 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 18, 2019
1 parent dd03fdd commit b37a0df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Bridges/SecurityDI/SecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public function loadConfiguration()
->setFactory(Nette\Http\UserStorage::class);

$user = $builder->addDefinition($this->prefix('user'))
->setFactory(Nette\Security\User::class)
->setExported();
->setFactory(Nette\Security\User::class);

if ($this->debugMode && $config['debugger']) {
$user->addSetup('@Tracy\Bar::addPanel', [
Expand Down

0 comments on commit b37a0df

Please sign in to comment.