1 | <?php |
||
12 | class PHPDiFactory |
||
13 | { |
||
14 | /** |
||
15 | * Container compilation. |
||
16 | * |
||
17 | * @param mixed $config Configuration file/array. |
||
18 | * @param bool $annotation annotation usage. |
||
19 | * |
||
20 | * @link http://php-di.org/doc/php-definitions.html |
||
21 | * |
||
22 | * @return DI\Container |
||
23 | */ |
||
24 | 22 | public static function buildContainer($config = [], $annotation = true) |
|
34 | |||
35 | /** |
||
36 | * Initial setup of DI\ContainerBuilder. |
||
37 | * |
||
38 | * @param bool $annotation annotation usage. |
||
39 | * |
||
40 | * @return DI\ContainerBuilder |
||
41 | */ |
||
42 | 22 | protected static function initialSetupContainerBuilder($annotation) |
|
59 | } |
||
60 |