1 | <?php |
||
24 | final class ServiceInstantiator |
||
25 | { |
||
26 | /** |
||
27 | * @var Application |
||
28 | */ |
||
29 | private $application; |
||
30 | |||
31 | /** |
||
32 | * @var ParameterResolverInterface |
||
33 | */ |
||
34 | private $parameterResolver; |
||
35 | |||
36 | /** |
||
37 | * @var ReferenceResolverInterface |
||
38 | */ |
||
39 | private $referenceResolver; |
||
40 | |||
41 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * @param ServiceInterface $service |
||
53 | * |
||
54 | * @return object |
||
55 | */ |
||
56 | public function create(ServiceInterface $service) |
||
64 | |||
65 | /** |
||
66 | * @param ServiceInterface $service |
||
67 | * |
||
68 | * @return object |
||
69 | */ |
||
70 | private function constructorInstantiator(ServiceInterface $service) |
||
77 | |||
78 | /** |
||
79 | * @param FactoryInterface $service |
||
80 | * |
||
81 | * @return object |
||
82 | */ |
||
83 | private function factoryInstantiator(FactoryInterface $service) |
||
93 | |||
94 | /** |
||
95 | * @param ServiceInterface $service |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | private function resolveArguments(ServiceInterface $service) |
||
108 | |||
109 | /** |
||
110 | * @param Reference|string $argument |
||
111 | * |
||
112 | * @return mixed |
||
113 | */ |
||
114 | private function resolveArgument($argument) |
||
122 | } |
||
123 |