Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function onCrudRequest(GetResponseEvent $event) |
||
35 | { |
||
36 | if (!$this->checkRequest($event)) { |
||
37 | return; |
||
38 | } |
||
39 | |||
40 | $request = $event->getRequest(); |
||
41 | foreach (self::PARAMETER_WHITE_LIST as $param) { |
||
42 | $value = $request->get($param); |
||
43 | if (null !== $value) { |
||
44 | $request->attributes->set($param, $value); |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 | |||
55 |