1 | <?php |
||
9 | final class PimpleAdapter implements ContainerInterface |
||
10 | { |
||
11 | /** @var Container */ |
||
12 | private $container; |
||
13 | |||
14 | /** @var BuilderInterface */ |
||
15 | private $builder; |
||
16 | |||
17 | public function __construct(Container $container, BuilderInterface $builder) |
||
23 | |||
24 | public function hasInstance(string $class): bool |
||
28 | |||
29 | public function hasArgument(string $parameter): bool |
||
33 | |||
34 | public function hasFactoryContext(string $factoryClass): bool |
||
38 | |||
39 | /** |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getInstance(string $class) |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function getArgument(string $parameter) |
||
54 | |||
55 | public function getFactoryContext(string $factoryClass): array |
||
59 | |||
60 | public function addInstance($instance) |
||
68 | |||
69 | public function addInstanceLazyLoad(string $class, array $arguments = []) |
||
75 | |||
76 | private function hasKey(string $key): bool |
||
80 | |||
81 | /** |
||
82 | * @return mixed |
||
83 | */ |
||
84 | private function getKey(string $key) |
||
88 | |||
89 | private function generateFactoryContextKey(string $factoryClass): string |
||
93 | } |
||
94 |