1 | <?php |
||
12 | class Feature |
||
13 | { |
||
14 | /** |
||
15 | * @var FeatureManager |
||
16 | */ |
||
17 | protected $manager; |
||
18 | |||
19 | /** |
||
20 | * @var FeatureSecurity |
||
21 | */ |
||
22 | protected $security; |
||
23 | |||
24 | /** |
||
25 | * @param FeatureManager $manager |
||
26 | * @param FeatureSecurity $security |
||
27 | */ |
||
28 | 2 | public function __construct( |
|
35 | |||
36 | /** |
||
37 | * Check if a feature (defined by name/parent) is granted to the logged user. |
||
38 | * |
||
39 | * @param string $name |
||
40 | * @param string $parent |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | 2 | public function isGranted($name, $parent) |
|
54 | } |
||
55 |