예제 #1
0
파일: Rest.php 프로젝트: colorium/app
 /**
  * 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());
 }
예제 #2
0
파일: Front.php 프로젝트: colorium/app
 /**
  * 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));
 }