/** * App constructor. * * @param \App\Router $router * @param ActionFactoryInterface $actionFactory */ public function __construct(Router $router, ActionFactoryInterface $actionFactory) { Session::start(); $this->router = $router; $this->actionFactory = $actionFactory; }