Skip to content

Commit

Permalink
Update FilamentMultiGuard.php
Browse files Browse the repository at this point in the history
  • Loading branch information
iotron authored Oct 10, 2022
1 parent 9342051 commit 9b3d1ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/FilamentMultiGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,10 @@ public function getContexts(): array
*/
public function addContext(string $name)
{
$context = new ContextManager();
$context::$config = $name;
$this->contexts[$name] = $context;
$this->contexts[$name] = new ContextManager($name);
return $this;
}


/**
* @param string $context
* @param callable $callback
Expand Down

0 comments on commit 9b3d1ed

Please sign in to comment.