1 | <?php |
||
9 | class Config |
||
10 | { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | protected $paths; |
||
15 | |||
16 | /** |
||
17 | * @var LoggerInterface |
||
18 | */ |
||
19 | protected $logger; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $config; |
||
25 | |||
26 | /** |
||
27 | * @param string[] $paths |
||
28 | * @param LoggerInterface|null $logger |
||
29 | */ |
||
30 | public function __construct($paths, LoggerInterface $logger = null) |
||
35 | |||
36 | /** |
||
37 | * @return self |
||
38 | */ |
||
39 | protected function load() |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getAll() |
||
80 | |||
81 | /** |
||
82 | * @param string $event |
||
83 | * @param bool $supportedOnly |
||
84 | * |
||
85 | * @return ActionAbstract[] |
||
86 | */ |
||
87 | public function get($event, $supportedOnly = true) |
||
119 | |||
120 | /** |
||
121 | * @return LoggerInterface |
||
122 | */ |
||
123 | public function getLog() |
||
127 | } |
||
128 |