| 1 | <?php |
||
| 9 | class PermissionService |
||
| 10 | { |
||
| 11 | /** @var AuthorizationChecker */ |
||
| 12 | private $authorizationChecker; |
||
| 13 | |||
| 14 | public function __construct(AuthorizationChecker $authorizationChecker) |
||
| 18 | |||
| 19 | public function canEditNode(Node $node) |
||
| 23 | |||
| 24 | public function canViewNode(Node $node) |
||
| 28 | |||
| 29 | protected function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.') |
||
| 39 | } |
||
| 40 |