Skip to content

Commit

Permalink
add initialize function
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Nov 28, 2019
1 parent 265ba82 commit b0cf46c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RouteSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ protected static function _route($path, $result)
return Route::with(RequestCondition::i()->path($path))->setHandler($result);
}

protected function _initialize()
{
}

/**
* @param Context $context
*
* @return Handler|string|callable
*/
protected function _getHandler(Context $context)
{
$this->_initialize();
$conditions = $this->_generateRoutes();
if(is_iterable($conditions))
{
Expand Down

0 comments on commit b0cf46c

Please sign in to comment.