Chris@0: container = $container; Chris@0: $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Lazy loads the real service from the container. Chris@0: * Chris@0: * @return object Chris@0: * Returns the constructed real service. Chris@0: */ Chris@0: protected function lazyLoadItself() Chris@0: { Chris@0: if (!isset($this->service)) { Chris@0: $this->service = $this->container->get($this->drupalProxyOriginalServiceId); Chris@0: } Chris@0: Chris@0: return $this->service; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function convert($value, $definition, $name, array $defaults) Chris@0: { Chris@0: return $this->lazyLoadItself()->convert($value, $definition, $name, $defaults); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function applies($definition, $name, \Symfony\Component\Routing\Route $route) Chris@0: { Chris@0: return $this->lazyLoadItself()->applies($definition, $name, $route); Chris@0: } Chris@0: Chris@0: } Chris@0: Chris@0: }