@@ 284-294 (lines=11) @@ | ||
281 | * @return array|bool |
|
282 | * @throws \Exception |
|
283 | */ |
|
284 | public function isClosureAndTemplate($callback) |
|
285 | { |
|
286 | if (is_array($cls = $this->isClosure($callback))) { |
|
287 | if (is_array($this->request['params']) && isset($this->request['params']['template']) && is_array($tpl = $this->isTemplate($this->request['params']['template']))) { |
|
288 | return array_merge(array_merge($cls, $tpl), [ |
|
289 | 'dispatcher' => $this->dispatcher['isClosureAndTemplate'] |
|
290 | ]); |
|
291 | } |
|
292 | return $cls; |
|
293 | } |
|
294 | return false; |
|
295 | } |
|
296 | ||
297 | /** |
|
@@ 302-312 (lines=11) @@ | ||
299 | * @return array|bool |
|
300 | * @throws \Exception |
|
301 | */ |
|
302 | public function isControllerAndTemplate($callback) |
|
303 | { |
|
304 | if (is_array($ctrl = $this->isController($callback))) { |
|
305 | if (is_array($this->request['params']) && isset($this->request['params']['template']) && is_array($tpl = $this->isTemplate($this->request['params']['template']))) { |
|
306 | return array_merge(array_merge($ctrl, $tpl), [ |
|
307 | 'dispatcher' => $this->dispatcher['isControllerAndTemplate'] |
|
308 | ]); |
|
309 | } |
|
310 | return $ctrl; |
|
311 | } |
|
312 | return false; |
|
313 | } |
|
314 | ||
315 |