| 1 | <?php |
||
| 13 | class FeatureSecurity |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param AuthorizationCheckerInterface|null |
||
| 17 | */ |
||
| 18 | protected $context; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param AuthorizationCheckerInterface $context |
||
| 22 | */ |
||
| 23 | 8 | public function __construct(AuthorizationCheckerInterface $context = null) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param Feature $feature |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 8 | public function isGranted(Feature $feature) |
|
| 57 | } |
||
| 58 |