1 | <?php |
||
11 | class InteropServiceProviderBridgeBundle extends Bundle implements RegistryProviderInterface |
||
12 | { |
||
13 | private $serviceProviders; |
||
14 | private $useDiscovery; |
||
15 | private $id; |
||
16 | |||
17 | private static $count = 0; |
||
18 | |||
19 | /** |
||
20 | * @param array $serviceProviders An array of service providers, in the format specified in thecodingmachine/service-provider-registry: https://github.com/thecodingmachine/service-provider-registry#how-does-it-work |
||
21 | * @param bool $useDiscovery |
||
22 | */ |
||
23 | public function __construct(array $serviceProviders = [], $useDiscovery = true) |
||
32 | |||
33 | public function build(ContainerBuilder $container) |
||
37 | |||
38 | /** |
||
39 | * At boot time, let's fill the container with the registry. |
||
40 | */ |
||
41 | public function boot() |
||
46 | |||
47 | /** |
||
48 | * When the Kernel shuts down, this bundle's static identifier must be |
||
49 | * reset, otherwise it may lead to incorrect identifier binding for the |
||
50 | * compiled container. |
||
51 | */ |
||
52 | public function shutdown() |
||
56 | |||
57 | /** |
||
58 | * @param ContainerInterface $container |
||
59 | * @return RegistryInterface |
||
60 | */ |
||
61 | public function getRegistry(ContainerInterface $container) |
||
72 | } |
||
73 |