| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | protected function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.') |
||
| 30 | { |
||
| 31 | if (!$this->authorizationChecker->isGranted($attributes, $object)) { |
||
| 32 | $exception = new AccessDeniedException($message); |
||
| 33 | $exception->setAttributes($attributes); |
||
| 34 | $exception->setSubject($object); |
||
| 35 | |||
| 36 | throw $exception; |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |