|
@@ 199-209 (lines=11) @@
|
| 196 |
|
* @return array|bool |
| 197 |
|
* @throws \Exception |
| 198 |
|
*/ |
| 199 |
|
public function isClosureAndTemplate($callback){ |
| 200 |
|
if(is_array($cls = $this->isClosure($callback))) { |
| 201 |
|
if (is_array($this->request['params']) && isset($this->request['params']['template']) && is_array($tpl = $this->isTemplate($this->request['params']['template']))) { |
| 202 |
|
return array_merge(array_merge($cls, $tpl),[ |
| 203 |
|
'dispatcher' => [$this->dispatcher['matchClosure'], $this->dispatcher['matchTemplate']] |
| 204 |
|
]); |
| 205 |
|
} |
| 206 |
|
return $cls; |
| 207 |
|
} |
| 208 |
|
return false; |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
/** |
| 212 |
|
* @param $callback |
|
@@ 216-226 (lines=11) @@
|
| 213 |
|
* @return array|bool |
| 214 |
|
* @throws \Exception |
| 215 |
|
*/ |
| 216 |
|
public function isControllerAndTemplate($callback){ |
| 217 |
|
if(is_array($ctrl = $this->isController($callback))) { |
| 218 |
|
if (is_array($this->request['params']) && isset($this->request['params']['template']) && is_array($tpl = $this->isTemplate($this->request['params']['template']))) { |
| 219 |
|
return array_merge(array_merge($ctrl, $tpl),[ |
| 220 |
|
'dispatcher' => [$this->dispatcher['matchController'], $this->dispatcher['matchTemplate']] |
| 221 |
|
]); |
| 222 |
|
} |
| 223 |
|
return $ctrl; |
| 224 |
|
} |
| 225 |
|
return false; |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
|
| 229 |
|
/** |