diff --git a/src/RouteSelector.php b/src/RouteSelector.php index e9dbf91..4692242 100644 --- a/src/RouteSelector.php +++ b/src/RouteSelector.php @@ -21,6 +21,10 @@ protected static function _route($path, $result) return Route::with(RequestCondition::i()->path($path))->setHandler($result); } + protected function _initialize() + { + } + /** * @param Context $context * @@ -28,6 +32,7 @@ protected static function _route($path, $result) */ protected function _getHandler(Context $context) { + $this->_initialize(); $conditions = $this->_generateRoutes(); if(is_iterable($conditions)) {