| 1 | <?php |
||
| 8 | final class CrudsParamConverter |
||
| 9 | { |
||
| 10 | use CrudsRequestCheckerTrait; |
||
| 11 | |||
| 12 | const PARAMETER_WHITE_LIST = [ |
||
| 13 | 'identifier', |
||
| 14 | 'data', |
||
| 15 | 'criteria', |
||
| 16 | 'order', |
||
| 17 | 'limit', |
||
| 18 | 'offset', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** @var RouterInterface */ |
||
| 22 | private $router; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * CrudsParamConverter constructor. |
||
| 26 | * |
||
| 27 | * @param RouterInterface $router |
||
| 28 | */ |
||
| 29 | public function __construct(RouterInterface $router) |
||
| 33 | |||
| 34 | public function onCrudRequest(GetResponseEvent $event) |
||
| 48 | |||
| 49 | /** {@inheritdoc} */ |
||
| 50 | protected function getRouter() |
||
| 54 | } |
||
| 55 |