1 | <?php |
||
10 | final class DiFactory implements ServiceLocatorAwareInterface |
||
11 | { |
||
12 | use ServiceLocatorAwareTrait; |
||
13 | use ServiceTrait; |
||
14 | |||
15 | /** @var DiAbstractFactory */ |
||
16 | private $diAbstractFactory; |
||
17 | |||
18 | 3 | public function __construct(DiAbstractFactory $factory = null) |
|
22 | |||
23 | /** |
||
24 | * Create service |
||
25 | * |
||
26 | * @param string $fqcn FQCN of the service |
||
27 | * @return object |
||
28 | */ |
||
29 | 1 | public function __invoke($fqcn) |
|
33 | |||
34 | /** |
||
35 | * Create service |
||
36 | * |
||
37 | * @param string $fqcn FQCN of the service |
||
38 | * @return object |
||
39 | * |
||
40 | * @throws CannotCreateService |
||
41 | */ |
||
42 | 3 | public function get($fqcn) |
|
52 | } |
||
53 |