| 1 | <?php |
||
| 8 | class Register |
||
| 9 | { |
||
| 10 | private $instances = []; |
||
| 11 | |||
| 12 | 6 | public function has(Service $service) |
|
| 16 | |||
| 17 | 6 | public function store(Service $service, ResolverInterface $resolver) |
|
| 18 | { |
||
| 19 | 6 | $this->instances[$service->getName()] = $resolver->resolve($service); |
|
| 20 | 5 | } |
|
| 21 | |||
| 22 | 5 | public function get(Service $service) |
|
| 26 | } |
||
| 27 |