public function __construct(Application $app, Router $router, ControllerFactory $factory) { $this->app = $app; $this->router = $router; $this->factory = $factory; }