Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class PermissionsHandler implements PermissionsHandlerInterface |
||
18 | { |
||
19 | /** @var string */ |
||
20 | protected $definitionsPath; |
||
21 | |||
22 | /** @var array */ |
||
23 | protected $modules; |
||
24 | |||
25 | /** @var Finder */ |
||
26 | protected $finder; |
||
27 | |||
28 | /** @var Parser */ |
||
29 | protected $parser; |
||
30 | |||
31 | public function __construct($definitionsPath) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getPermissions() |
||
42 | { |
||
43 | return $this->buildPermissionsYaml(); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Returns the list of currently active modules with their permissions. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function buildPermissionsYaml() |
||
69 | } |
||
70 | } |
||
71 |