Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function getFunctions(): array |
||
27 | { |
||
28 | return [ |
||
29 | new ExpressionFunction('is_granted', function ($attributes, $object = 'null') { |
||
30 | return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object); |
||
31 | }, function (array $variables, $attributes, $object = null) { |
||
32 | return $variables['auth_checker']->isGranted($attributes, $object); |
||
33 | }), |
||
37 |