示例#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));
 }