From b0cf46cf91ac874fb0b19b8bc725a0001fabd572 Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Thu, 28 Nov 2019 17:11:49 +0000 Subject: [PATCH] add initialize function --- src/RouteSelector.php | 5 +++++ 1 file changed, 5 insertions(+) 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)) {