File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function run()
141
141
* @param array $params
142
142
* @throws \Exception
143
143
*/
144
- private function call ($ action , $ params )
144
+ protected function call ($ action , $ params )
145
145
{
146
146
if ($ action instanceof \Closure) {
147
147
$ action (...$ params );
@@ -162,7 +162,7 @@ private function call($action, $params)
162
162
*
163
163
* @param \Exception $e
164
164
*/
165
- private function handleException (\Exception $ e )
165
+ protected function handleException (\Exception $ e )
166
166
{
167
167
echo $ e ->getMessage ();
168
168
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function route($verb, $uri)
69
69
* @var string $verb
70
70
* @return array
71
71
*/
72
- private function routes ($ verb )
72
+ protected function routes ($ verb )
73
73
{
74
74
return isset ($ this ->routes [$ verb ]) ? $ this ->routes [$ verb ] : [];
75
75
}
@@ -83,7 +83,7 @@ private function routes($verb)
83
83
* @param array $routes
84
84
* @return array
85
85
*/
86
- private function match ($ uri , $ routes )
86
+ protected function match ($ uri , $ routes )
87
87
{
88
88
if (!preg_match ($ this ->combine ($ routes ), $ uri , $ m )) {
89
89
return [];
@@ -105,7 +105,7 @@ private function match($uri, $routes)
105
105
* @var string $str
106
106
* @return string
107
107
*/
108
- private function pattern ($ str )
108
+ protected function pattern ($ str )
109
109
{
110
110
return preg_replace ('~\{([a-zA-Z0-9]+)\}~ ' , '([^/]+) ' , $ str );
111
111
}
@@ -119,7 +119,7 @@ private function pattern($str)
119
119
* @var array $routes
120
120
* @return string
121
121
*/
122
- private function combine ($ routes )
122
+ protected function combine ($ routes )
123
123
{
124
124
$ str = $ mark = '' ;
125
125
foreach ($ routes as $ id => $ data ) {
You can’t perform that action at this time.
0 commit comments