Skip to content

Commit

Permalink
Process route default
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 8, 2019
1 parent 53dd6b5 commit a9292dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,21 @@ public function handle(Context $c): Response
{
return $this->_executeCallable($c, $callable);
}

return $this->_processRoute($result);
}

throw new \RuntimeException(self::ERROR_NO_ROUTE, 404);
}

/**
* @param string $routeResult Result of the located route
*/
protected function _processRoute($routeResult)
{
throw new \RuntimeException(self::ERROR_NO_ROUTE, 404);
}

protected function _bindContext($object)
{
if($object instanceof ContextAware)
Expand Down

0 comments on commit a9292dd

Please sign in to comment.