1 | <?php |
||
20 | abstract class AbstractFactory implements FactoryInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Config |
||
24 | */ |
||
25 | private $config; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $diConfigKey; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $configServiceName; |
||
36 | |||
37 | 13 | public function __invoke(Config $config, string $diConfigKey = self::DEFAULT_DI_CONFIG_KEY, string $configServiceName = self::DEFAULT_CONFIG_SERVICE_NAME) |
|
49 | |||
50 | abstract protected function createContainer(); |
||
51 | |||
52 | abstract protected function configure($container); |
||
53 | |||
54 | 13 | final protected function getConfig() |
|
58 | |||
59 | 13 | final protected function getConfigServiceName() |
|
63 | |||
64 | 13 | final protected function getDiConfig() : array |
|
72 | |||
73 | 8 | final protected function getDiConfigGroup(string $group) : array |
|
83 | } |
||
84 |