container = $container; $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id; } /** * Lazy loads the real service from the container. * * @return object * Returns the constructed real service. */ protected function lazyLoadItself() { if (!isset($this->service)) { $this->service = $this->container->get($this->drupalProxyOriginalServiceId); } return $this->service; } /** * {@inheritdoc} */ public function addRoutes(\Symfony\Component\Routing\RouteCollection $routes) { return $this->lazyLoadItself()->addRoutes($routes); } /** * {@inheritdoc} */ public function dump(array $options = array ( )) { return $this->lazyLoadItself()->dump($options); } /** * {@inheritdoc} */ public function getRoutes() { return $this->lazyLoadItself()->getRoutes(); } } }