| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ContainerFactory |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Create a new container which requires all services are manually registered. |
||
| 9 | * |
||
| 10 | * @return Container |
||
| 11 | */ |
||
| 12 | 1 | public static function createRegistrationOnlyContainer() |
|
| 13 | { |
||
| 14 | 1 | return new Container(new RegistrationOnlyServiceLocator()); |
|
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new container which requires services are specified in config. |
||
| 19 | * |
||
| 20 | * @param array $config |
||
| 21 | * |
||
| 22 | * @return Container |
||
| 23 | */ |
||
| 24 | 1 | public function createConfigurableContainer(array $config) |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create a new container which loads services from the specified config, and |
||
| 31 | * if they're not included, attempts to load them automatically. |
||
| 32 | * |
||
| 33 | * @param array $config |
||
| 34 | * |
||
| 35 | * @return Container |
||
| 36 | */ |
||
| 37 | 1 | public function createAutoWireContainer(array $config) |
|
| 42 |