var/cache/dev/ContainerSzWx2pB/Redir_2a24bfe.php line 29

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