Skip to content

Commit

Permalink
concat
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Jul 27, 2021
1 parent 252fd59 commit 90f2ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function useInstitution(Institution $institution): self
public function useController(string $controller): self
{
if (class_exists(self::CONTROLLER_NAMESPACE.$controller)) {
$this->controller = new $controller($this->institution);
$this->controller = new self::CONTROLLER_NAMESPACE.$controller($this->institution);
return $this;
}
throw new \Exception("Could not find Controller: ".self::CONTROLLER_NAMESPACE.$controller);
Expand Down

0 comments on commit 90f2ea9

Please sign in to comment.