| 1 | <?php |
||
| 16 | class HandlerRegistry |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Map of handler id to handler service id. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | private $handlersMap = []; |
||
| 24 | |||
| 25 | public function setHandlersMap($handlersMap) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $handlerName |
||
| 32 | * |
||
| 33 | * @return object an instance of the requested handler |
||
| 34 | * |
||
| 35 | * @throws \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException If the requested handler doesn't exist |
||
| 36 | */ |
||
| 37 | public function getConfiguredHandler($handlerName) |
||
| 45 | } |
||
| 46 |