1 | <?php |
||
32 | class Configuration |
||
33 | { |
||
34 | /** |
||
35 | * @var array<Module> Instantiated modules |
||
36 | */ |
||
37 | protected $modules; |
||
38 | /** |
||
39 | * @var Properties The config container |
||
40 | */ |
||
41 | protected $config; |
||
42 | |||
43 | /** |
||
44 | * Creates a new Configuration. |
||
45 | * |
||
46 | * This constructor expects a `Traversable` full of class names in the |
||
47 | * `system.modules` configuration setting. Each class name *must* extend |
||
48 | * `Minotaur\Module` or an `UnexpectedValueException` will be thrown. |
||
49 | * |
||
50 | * @param array $config The system configuration |
||
51 | * @throws \UnexpectedValueException if a module class doesn't extend `Minotaur\Module` |
||
52 | */ |
||
53 | public function __construct(array $config) |
||
58 | |||
59 | private function createModules(array $config) |
||
74 | |||
75 | private function createConfigContainer(array $config): Properties |
||
86 | |||
87 | /** |
||
88 | * Gets the configuration settings container. |
||
89 | * |
||
90 | * @return - The config container |
||
|
|||
91 | */ |
||
92 | public function getConfigContainer(): Properties |
||
96 | |||
97 | /** |
||
98 | * Gets the loaded modules. |
||
99 | * |
||
100 | * @return array<Module> The loaded modules |
||
101 | */ |
||
102 | public function getModules(): array |
||
106 | } |
||
107 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.