| 1 | <?php |
||
| 12 | class TestServiceProvider implements ServiceProviderInterface |
||
| 13 | { |
||
| 14 | public function getFactories() |
||
| 15 | { |
||
| 16 | return [ |
||
| 17 | 'serviceA' => function (ContainerInterface $container) { |
||
| 18 | $instance = new \stdClass(); |
||
| 19 | $instance->serviceB = $container->get('serviceB'); |
||
| 20 | |||
| 21 | return $instance; |
||
| 22 | }, |
||
| 23 | 'serviceB' => [ TestServiceProvider::class, 'createServiceB' ], |
||
| 24 | 'function' => 'TheCodingMachine\\Interop\\ServiceProviderBridgeBundle\\Tests\\Fixtures\\myFunctionFactory' |
||
| 25 | ]; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function createServiceB(ContainerInterface $container) |
||
| 35 | |||
| 36 | public function getExtensions() |
||
| 40 | } |
||
| 41 |