10namespace ComusParty\Controllers;
12use ComusParty\App\Exceptions\ControllerNotFoundException;
14use Twig\Loader\FilesystemLoader;
33 $controllerName =
'ComusParty\Controllers\Controller' . ucfirst($controller);
35 if (!class_exists($controllerName)) {
Classe ControllerNotFoundException.
Classe ControllerFactory.
static getController(string $controller, FilesystemLoader $loader, Environment $twig)
La méthode getController permet de récupérer un contrôleur.
$loader
Instance de FilesystemLoader.