diff --git a/src/Facade.php b/src/Facade.php index b9d7540..01ea6d4 100644 --- a/src/Facade.php +++ b/src/Facade.php @@ -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);