| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | protected function registerFunctions() |
||
| 37 | { |
||
| 38 | parent::registerFunctions(); |
||
| 39 | |||
| 40 | $this->register('is_granted', function ($attributes, $object = 'null') { |
||
| 41 | return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object); |
||
| 42 | }, function (array $variables, $attributes, $object = null) { |
||
| 43 | return $variables['auth_checker']->isGranted($attributes, $object); |
||
| 44 | }); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |