2 // @codingStandardsIgnoreFile
5 * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\ParamConverter\AdminPathConfigEntityConverter' "core/lib/Drupal/Core".
8 namespace Drupal\Core\ProxyClass\ParamConverter {
11 * Provides a proxy class for \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter.
13 * @see \Drupal\Component\ProxyBuilder
15 class AdminPathConfigEntityConverter implements \Drupal\Core\ParamConverter\ParamConverterInterface
18 use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
21 * The id of the original proxied service.
25 protected $drupalProxyOriginalServiceId;
28 * The real proxied service, after it was lazy loaded.
30 * @var \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter
35 * The service container.
37 * @var \Symfony\Component\DependencyInjection\ContainerInterface
42 * Constructs a ProxyClass Drupal proxy object.
44 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
46 * @param string $drupal_proxy_original_service_id
47 * The service ID of the original service.
49 public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
51 $this->container = $container;
52 $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
56 * Lazy loads the real service from the container.
59 * Returns the constructed real service.
61 protected function lazyLoadItself()
63 if (!isset($this->service)) {
64 $this->service = $this->container->get($this->drupalProxyOriginalServiceId);
67 return $this->service;
73 public function convert($value, $definition, $name, array $defaults)
75 return $this->lazyLoadItself()->convert($value, $definition, $name, $defaults);
81 public function applies($definition, $name, \Symfony\Component\Routing\Route $route)
83 return $this->lazyLoadItself()->applies($definition, $name, $route);