| 1 | <?php |
||
| 25 | class RestApiController extends BaseController |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Call specific method depending on request method |
||
| 29 | * |
||
| 30 | * @return array|null |
||
| 31 | * @throws NotAllowedException |
||
| 32 | */ |
||
| 33 | 6 | public function index() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * For not defined methods return 405 response |
||
| 42 | * |
||
| 43 | * @param $name |
||
| 44 | * @param $arguments |
||
| 45 | * |
||
| 46 | * @throws NotAllowedException |
||
| 47 | */ |
||
| 48 | 4 | public function __call($name, $arguments) |
|
| 52 | } |
||
| 53 |