1 | <?php |
||
20 | abstract class AbstractFactory implements DiContainerFactoryInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $options; |
||
26 | |||
27 | /** |
||
28 | * @var Config |
||
29 | */ |
||
30 | private $config; |
||
31 | |||
32 | 22 | public function __construct(array $options = []) |
|
39 | |||
40 | 22 | public function __invoke(Config $config) |
|
50 | |||
51 | abstract protected function createContainer(); |
||
52 | |||
53 | abstract protected function configure($container); |
||
54 | |||
55 | 22 | final protected function getConfig() |
|
59 | |||
60 | 22 | final protected function getConfigServiceName() |
|
64 | |||
65 | 22 | final protected function getDiConfig() : array |
|
75 | |||
76 | 12 | final protected function getDiConfigGroup(string $group) : array |
|
86 | } |
||
87 |