| 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 | 7 | 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 | 7 | final protected function getConfig() |
|
| 58 | |||
| 59 | 7 | final protected function getConfigServiceName() |
|
| 63 | |||
| 64 | 7 | final protected function getDiConfig(string $type = null) : array |
|
| 82 | } |
||
| 83 |