| @@ 250-259 (lines=10) @@ | ||
| 247 | [] |
|
| 248 | ]; |
|
| 249 | ||
| 250 | } else if ($this->requestType === 'api') { |
|
| 251 | ||
| 252 | return [ |
|
| 253 | $data['controller'], |
|
| 254 | $this->_getRestfulAction(), |
|
| 255 | $data['permission'] ?? null, |
|
| 256 | [] |
|
| 257 | ]; |
|
| 258 | ||
| 259 | } |
|
| 260 | ||
| 261 | throw new MethodNotFoundException('Non valid request method available.'); |
|
| 262 | ||
| @@ 298-307 (lines=10) @@ | ||
| 295 | $var |
|
| 296 | ]; |
|
| 297 | ||
| 298 | } else if ($this->requestType === 'api') { |
|
| 299 | ||
| 300 | return [ |
|
| 301 | $data['controller'], |
|
| 302 | $this->_getRestfulAction(), |
|
| 303 | $data['permission'] ?? null, |
|
| 304 | $var |
|
| 305 | ]; |
|
| 306 | ||
| 307 | } |
|
| 308 | ||
| 309 | } |
|
| 310 | ||