| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class ContainerHandlerProvider implements HandlerProvider |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @param array<string, string> $handlers |
||
| 25 | * Where _key_ is a message class and _value_ the service identifier of its handler. |
||
| 26 | */ |
||
| 27 | public function __construct( |
||
| 28 | private ContainerInterface $container, |
||
| 29 | private array $handlers |
||
| 30 | ) { |
||
| 31 | $this->container = $container; |
||
| 32 | $this->handlers = $handlers; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getHandlerForMessage(object $message): callable |
||
| 48 | } |
||
| 49 | } |
||
| 51 |