1 | <?php |
||
21 | class InteropContainerResolver implements QueryHandlerResolver |
||
22 | { |
||
23 | /** @var ContainerInterface */ |
||
24 | protected $container; |
||
25 | |||
26 | /** |
||
27 | * InteropContainerResolver constructor. |
||
28 | * |
||
29 | * @param ContainerInterface $container |
||
30 | */ |
||
31 | public function __construct(ContainerInterface $container) |
||
35 | |||
36 | /** |
||
37 | * Given a string to identify the Query Handler, return the instance. |
||
38 | * |
||
39 | * @param string $handler |
||
40 | * |
||
41 | * @return QueryHandler |
||
42 | */ |
||
43 | public function instantiate(string $handler) : QueryHandler |
||
53 | } |
||
54 |