/** * Rest app constructor * * @param RouterInterface $router */ public function __construct(RouterInterface $router = null) { parent::__construct(new Plugin\Catching(), new Plugin\Routing($router), new Plugin\Firewall(), new Plugin\Rendering()); }
/** * Front app constructor * * @param RouterInterface $router * @param TemplaterInterface $templater */ public function __construct(RouterInterface $router = null, TemplaterInterface $templater = null) { Kernel::__construct(new Plugin\Catching(), new Plugin\Routing($router), new Plugin\Firewall(), new Plugin\Templating($templater)); }