var/cache/dev/ContainerC1MH1xT/FallbackRouter_e8ab88d.php line 4

Open in your IDE?
  1. <?php
  2. namespace ContainerC1MH1xT;
  3. include_once \dirname(__DIR__, 4).'/vendor/se7enxweb/legacy-bridge/bundle/Routing/FallbackRouter.php';
  4. class FallbackRouter_e8ab88d extends \eZ\Bundle\EzPublishLegacyBundle\Routing\FallbackRouter implements \ProxyManager\Proxy\VirtualProxyInterface
  5. {
  6. /**
  7. * @var \eZ\Bundle\EzPublishLegacyBundle\Routing\FallbackRouter|null wrapped object, if the proxy is initialized
  8. */
  9. private $valueHolder83025 = null;
  10. /**
  11. * @var \Closure|null initializer responsible for generating the wrapped object
  12. */
  13. private $initializer8f361 = null;
  14. /**
  15. * @var bool[] map of public properties of the parent class
  16. */
  17. private static $publicPropertiesf1b7b = [
  18. ];
  19. public function setContext(\Symfony\Component\Routing\RequestContext $context)
  20. {
  21. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'setContext', array('context' => $context), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  22. return $this->valueHolder83025->setContext($context);
  23. }
  24. public function getContext()
  25. {
  26. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'getContext', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  27. return $this->valueHolder83025->getContext();
  28. }
  29. public function getRouteCollection()
  30. {
  31. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'getRouteCollection', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  32. return $this->valueHolder83025->getRouteCollection();
  33. }
  34. public function generate($name, $parameters = [], $referenceType = 1)
  35. {
  36. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'generate', array('name' => $name, 'parameters' => $parameters, 'referenceType' => $referenceType), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  37. return $this->valueHolder83025->generate($name, $parameters, $referenceType);
  38. }
  39. public function match($pathinfo)
  40. {
  41. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'match', array('pathinfo' => $pathinfo), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  42. return $this->valueHolder83025->match($pathinfo);
  43. }
  44. public function matchRequest(\Symfony\Component\HttpFoundation\Request $request)
  45. {
  46. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'matchRequest', array('request' => $request), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  47. return $this->valueHolder83025->matchRequest($request);
  48. }
  49. /**
  50. * Constructor for lazy initialization
  51. *
  52. * @param \Closure|null $initializer
  53. */
  54. public static function staticProxyConstructor($initializer)
  55. {
  56. static $reflection;
  57. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  58. $instance = $reflection->newInstanceWithoutConstructor();
  59. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Routing\FallbackRouter $instance) {
  60. unset($instance->context, $instance->logger, $instance->urlGenerator);
  61. }, $instance, 'eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter')->__invoke($instance);
  62. $instance->initializer8f361 = $initializer;
  63. return $instance;
  64. }
  65. public function __construct(\eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator $urlGenerator, ?\Symfony\Component\Routing\RequestContext $context = null, ?\Psr\Log\LoggerInterface $logger = null)
  66. {
  67. static $reflection;
  68. if (! $this->valueHolder83025) {
  69. $reflection = $reflection ?? new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter');
  70. $this->valueHolder83025 = $reflection->newInstanceWithoutConstructor();
  71. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Routing\FallbackRouter $instance) {
  72. unset($instance->context, $instance->logger, $instance->urlGenerator);
  73. }, $this, 'eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter')->__invoke($this);
  74. }
  75. $this->valueHolder83025->__construct($urlGenerator, $context, $logger);
  76. }
  77. public function & __get($name)
  78. {
  79. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__get', ['name' => $name], $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  80. if (isset(self::$publicPropertiesf1b7b[$name])) {
  81. return $this->valueHolder83025->$name;
  82. }
  83. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter');
  84. if (! $realInstanceReflection->hasProperty($name)) {
  85. $targetObject = $this->valueHolder83025;
  86. $backtrace = debug_backtrace(false, 1);
  87. trigger_error(
  88. sprintf(
  89. 'Undefined property: %s::$%s in %s on line %s',
  90. $realInstanceReflection->getName(),
  91. $name,
  92. $backtrace[0]['file'],
  93. $backtrace[0]['line']
  94. ),
  95. \E_USER_NOTICE
  96. );
  97. return $targetObject->$name;
  98. }
  99. $targetObject = $this->valueHolder83025;
  100. $accessor = function & () use ($targetObject, $name) {
  101. return $targetObject->$name;
  102. };
  103. $backtrace = debug_backtrace(true, 2);
  104. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  105. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  106. $returnValue = & $accessor();
  107. return $returnValue;
  108. }
  109. public function __set($name, $value)
  110. {
  111. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  112. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter');
  113. if (! $realInstanceReflection->hasProperty($name)) {
  114. $targetObject = $this->valueHolder83025;
  115. $targetObject->$name = $value;
  116. return $targetObject->$name;
  117. }
  118. $targetObject = $this->valueHolder83025;
  119. $accessor = function & () use ($targetObject, $name, $value) {
  120. $targetObject->$name = $value;
  121. return $targetObject->$name;
  122. };
  123. $backtrace = debug_backtrace(true, 2);
  124. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  125. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  126. $returnValue = & $accessor();
  127. return $returnValue;
  128. }
  129. public function __isset($name)
  130. {
  131. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__isset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  132. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter');
  133. if (! $realInstanceReflection->hasProperty($name)) {
  134. $targetObject = $this->valueHolder83025;
  135. return isset($targetObject->$name);
  136. }
  137. $targetObject = $this->valueHolder83025;
  138. $accessor = function () use ($targetObject, $name) {
  139. return isset($targetObject->$name);
  140. };
  141. $backtrace = debug_backtrace(true, 2);
  142. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  143. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  144. $returnValue = $accessor();
  145. return $returnValue;
  146. }
  147. public function __unset($name)
  148. {
  149. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__unset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  150. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter');
  151. if (! $realInstanceReflection->hasProperty($name)) {
  152. $targetObject = $this->valueHolder83025;
  153. unset($targetObject->$name);
  154. return;
  155. }
  156. $targetObject = $this->valueHolder83025;
  157. $accessor = function () use ($targetObject, $name) {
  158. unset($targetObject->$name);
  159. return;
  160. };
  161. $backtrace = debug_backtrace(true, 2);
  162. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  163. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  164. $accessor();
  165. }
  166. public function __clone()
  167. {
  168. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__clone', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  169. $this->valueHolder83025 = clone $this->valueHolder83025;
  170. }
  171. public function __sleep()
  172. {
  173. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__sleep', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  174. return array('valueHolder83025');
  175. }
  176. public function __wakeup()
  177. {
  178. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Routing\FallbackRouter $instance) {
  179. unset($instance->context, $instance->logger, $instance->urlGenerator);
  180. }, $this, 'eZ\\Bundle\\EzPublishLegacyBundle\\Routing\\FallbackRouter')->__invoke($this);
  181. }
  182. public function setProxyInitializer(?\Closure $initializer = null): void
  183. {
  184. $this->initializer8f361 = $initializer;
  185. }
  186. public function getProxyInitializer(): ?\Closure
  187. {
  188. return $this->initializer8f361;
  189. }
  190. public function initializeProxy(): bool
  191. {
  192. return $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'initializeProxy', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  193. }
  194. public function isProxyInitialized(): bool
  195. {
  196. return null !== $this->valueHolder83025;
  197. }
  198. public function getWrappedValueHolderValue()
  199. {
  200. return $this->valueHolder83025;
  201. }
  202. }
  203. if (!\class_exists('FallbackRouter_e8ab88d', false)) {
  204. \class_alias(__NAMESPACE__.'\\FallbackRouter_e8ab88d', 'FallbackRouter_e8ab88d', false);
  205. }