@@ 141-152 (lines=12) @@ | ||
138 | $action3 = "catchAll{$method}"; |
|
139 | $action4 = "catchAll"; |
|
140 | ||
141 | foreach ([$action1, $action2] as $target) { |
|
142 | try { |
|
143 | $refl = new \ReflectionMethod($class, $target); |
|
144 | if (!$refl->isPublic()) { |
|
145 | throw new NotFoundException("Controller method '$class::$target' is not a public method."); |
|
146 | } |
|
147 | ||
148 | return [$class, $target, $args]; |
|
149 | } catch (\ReflectionException $e) { |
|
150 | ; |
|
151 | } |
|
152 | } |
|
153 | ||
154 | foreach ([$action3, $action4] as $target) { |
|
155 | try { |
|
@@ 154-166 (lines=13) @@ | ||
151 | } |
|
152 | } |
|
153 | ||
154 | foreach ([$action3, $action4] as $target) { |
|
155 | try { |
|
156 | $refl = new \ReflectionMethod($class, $target); |
|
157 | if (!$refl->isPublic()) { |
|
158 | throw new NotFoundException("Controller method '$class::$target' is not a public method."); |
|
159 | } |
|
160 | ||
161 | array_unshift($args, $action); |
|
162 | return [$class, $target, $args]; |
|
163 | } catch (\ReflectionException $e) { |
|
164 | ; |
|
165 | } |
|
166 | } |
|
167 | ||
168 | return false; |
|
169 | } |