/** * {@inheritdoc} */ public function resolveControllerService(LayoutBox $layoutBox) { $boxType = $layoutBox->getBoxType(); $configurator = $this->layoutBoxConfiguratorCollection->get($boxType); $service = $configurator->getControllerService(); if (!$this->container->has($service)) { throw new ServiceNotFoundException($service); } return $this->container->get($service); }