We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function __construct(AuthorizationCheckerInterface $authorizationChecker) |
||
13 | { |
||
14 | parent::__construct( |
||
15 | 'isGranted', |
||
16 | function ($attributes, $object = null) { |
||
17 | return "\$globalVariable->get('container')->get('security.authorization_checker')->isGranted($attributes, $object)"; |
||
18 | }, |
||
19 | function ($_, $attributes, $object = null) use ($authorizationChecker) { |
||
20 | return $authorizationChecker->isGranted($attributes, $object); |
||
21 | } |
||
25 |