1 | <?php |
||
11 | class ExtensionManager |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $extensions; |
||
17 | |||
18 | /** |
||
19 | * @param array $extensions The extensions |
||
20 | */ |
||
21 | public function __construct(array $extensions = []) |
||
25 | |||
26 | /** |
||
27 | * Initialize each extension with the given container. |
||
28 | * |
||
29 | * @param ContainerInterface $container |
||
30 | */ |
||
31 | public function initialize(ContainerInterface $container) |
||
37 | |||
38 | /** |
||
39 | * Load more services from the extensions with the given configuration. |
||
40 | * |
||
41 | * @param array $rawConfigs The raw configuration |
||
42 | * @param ContainerInterface $container The service container |
||
43 | * |
||
44 | * @throws ConfigurationProcessingException If the raw configuration |
||
45 | * contains a key which does not match any extensions |
||
46 | */ |
||
47 | public function load(array $rawConfigs, ContainerInterface $container) |
||
74 | } |
||
75 |