1 | <?php |
||
13 | class ConfigReader |
||
14 | { |
||
15 | /** @var FileLocator */ |
||
16 | private $fileLocator; |
||
17 | |||
18 | /** @var string */ |
||
19 | private $configPath; |
||
20 | |||
21 | /** @var array */ |
||
22 | private $configArray; |
||
23 | |||
24 | /** @var LoggerInterface */ |
||
25 | private $logger; |
||
26 | |||
27 | /** @var string */ |
||
28 | private $eventListenerConfigPath; |
||
29 | |||
30 | /** @var ContainerAwareEventDispatcher */ |
||
31 | private $dispatcher; |
||
32 | |||
33 | /** |
||
34 | * Create an global application config from given file. |
||
35 | */ |
||
36 | public function __construct( |
||
49 | |||
50 | public function init() : void |
||
59 | |||
60 | public function get() : array |
||
68 | |||
69 | /** |
||
70 | * @throws \Symfony\Component\Config\Exception\FileLocatorFileNotFoundException |
||
71 | * @throws \Symfony\Component\Yaml\Exception\ParseException |
||
72 | * @throws \InvalidArgumentException |
||
73 | */ |
||
74 | private function getYamlFileContent(string $path) : array |
||
81 | |||
82 | /** |
||
83 | * @param EventListenerConfig[] $eventListenerConfig |
||
84 | * |
||
85 | * @throws \InvalidArgumentException |
||
86 | */ |
||
87 | private function initEventDispatcher(array $eventListenerConfig) : void |
||
100 | } |
||
101 |