| 1 | <?php |
||
| 7 | class IpRestricter extends Restricter |
||
| 8 | { |
||
| 9 | use IpHelper; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Do we need to restric. |
||
| 13 | */ |
||
| 14 | public function isRestrictionEnabled() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Protection method. |
||
| 21 | * |
||
| 22 | * @return mixed |
||
| 23 | */ |
||
| 24 | public function restrict() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns forbidden response. |
||
| 40 | * |
||
| 41 | * @return Response |
||
| 42 | */ |
||
| 43 | protected function getNotAllowedResponse() |
||
| 49 | } |
||
| 50 |