1 | <?php |
||
27 | class Bootstrap |
||
28 | { |
||
29 | /** |
||
30 | * @var callable |
||
31 | */ |
||
32 | protected $configLoader; |
||
33 | |||
34 | /** |
||
35 | * @var callable |
||
36 | */ |
||
37 | protected $diContainerFactory; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $diConfigKey; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $configServiceName; |
||
48 | |||
49 | /** |
||
50 | * @var Config |
||
51 | */ |
||
52 | protected $config; |
||
53 | |||
54 | /** |
||
55 | * @var ContainerInterface |
||
56 | */ |
||
57 | protected $diContainer; |
||
58 | |||
59 | /** |
||
60 | * @var array |
||
61 | */ |
||
62 | protected static $configLoaders = [ |
||
63 | 'glob' => GlobConfigLoader::class, |
||
64 | ]; |
||
65 | |||
66 | /** |
||
67 | * @var array |
||
68 | */ |
||
69 | protected static $diContainerFactories = [ |
||
70 | 'zend-service-manager' => ZendServiceManagerFactory::class, |
||
71 | 'aura-di' => AuraDiFactory::class, |
||
72 | 'pimple' => PimpleFactory::class, |
||
73 | ]; |
||
74 | |||
75 | /** |
||
76 | * @param callable|string $configLoader |
||
77 | * @param callable|string $diContainerFactory |
||
78 | * @param string $diConfigKey |
||
79 | * @param string $configServiceName |
||
80 | */ |
||
81 | 1 | protected function __construct($configLoader, $diContainerFactory, string $diConfigKey, string $configServiceName) |
|
110 | |||
111 | 1 | public static function init(array $options) |
|
120 | |||
121 | 1 | public function run(array $configPaths) |
|
135 | |||
136 | 1 | protected function setPhpSettings() |
|
144 | |||
145 | 1 | protected function registerErrorHandler() |
|
153 | } |
||
154 |