Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * 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));
 }