| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function registerFunctions() |
||
| 26 | { |
||
| 27 | parent::registerFunctions(); |
||
| 28 | |||
| 29 | $this->register('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 | }); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |