public function getConfiguredHandler($handlerName) { if (!isset($this->handlersMap[$handlerName])) { throw new InvalidConfigurationException("Unknown handler {$handlerName}"); } return $this->container->get($this->handlersMap[$handlerName]); }