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