コード例 #1
0
ファイル: Create.php プロジェクト: efueger/framework
 /**
  * @param Route $route
  * @param \Exception $exception
  * @return RouteException
  */
 public function __invoke(Route $route, \Exception $exception)
 {
     $this->route->set(RouteException::EXCEPTION, $exception);
     $this->route->set(RouteException::ROUTE, $route);
     return $this->route;
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: efueger/framework
 /**
  * @param RouteException $route
  * @return ViewModel
  */
 public function __invoke(RouteException $route)
 {
     return $this->exception($route->route(), $route->exception());
 }