1 | <?php |
||
22 | abstract class AbstractController extends Controller |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * Throws a 400 error if this isn’t a POST, PUT, or PATCH request |
||
27 | * |
||
28 | * @throws HttpException |
||
29 | * @return void |
||
30 | */ |
||
31 | public function requirePostPutPatchRequest() |
||
40 | |||
41 | /** |
||
42 | * Throws a 400 error if this isn’t a POST or DELETE request |
||
43 | * |
||
44 | * @throws HttpException |
||
45 | * @return void |
||
46 | */ |
||
47 | public function requirePostDeleteRequest() |
||
53 | } |
||
54 |