var/cache/dev/ContainerC1MH1xT/TemplateComponent_cea33d3.php line 29

Open in your IDE?
  1. <?php
  2. namespace ContainerC1MH1xT;
  3. include_once \dirname(__DIR__, 4).'/vendor/ibexa/twig-components/src/lib/Component/TemplateComponent.php';
  4. class TemplateComponent_cea33d3 extends \Ibexa\TwigComponents\Component\TemplateComponent implements \ProxyManager\Proxy\VirtualProxyInterface
  5. {
  6. /**
  7. * @var \Ibexa\TwigComponents\Component\TemplateComponent|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 render(array $parameters = []): string
  20. {
  21. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'render', array('parameters' => $parameters), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  22. return $this->valueHolder83025->render($parameters);
  23. }
  24. /**
  25. * Constructor for lazy initialization
  26. *
  27. * @param \Closure|null $initializer
  28. */
  29. public static function staticProxyConstructor($initializer)
  30. {
  31. static $reflection;
  32. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  33. $instance = $reflection->newInstanceWithoutConstructor();
  34. \Closure::bind(function (\Ibexa\TwigComponents\Component\TemplateComponent $instance) {
  35. unset($instance->twig, $instance->template, $instance->parameters);
  36. }, $instance, 'Ibexa\\TwigComponents\\Component\\TemplateComponent')->__invoke($instance);
  37. $instance->initializer8f361 = $initializer;
  38. return $instance;
  39. }
  40. public function __construct(\Twig\Environment $twig, string $template, array $parameters = [])
  41. {
  42. static $reflection;
  43. if (! $this->valueHolder83025) {
  44. $reflection = $reflection ?? new \ReflectionClass('Ibexa\\TwigComponents\\Component\\TemplateComponent');
  45. $this->valueHolder83025 = $reflection->newInstanceWithoutConstructor();
  46. \Closure::bind(function (\Ibexa\TwigComponents\Component\TemplateComponent $instance) {
  47. unset($instance->twig, $instance->template, $instance->parameters);
  48. }, $this, 'Ibexa\\TwigComponents\\Component\\TemplateComponent')->__invoke($this);
  49. }
  50. $this->valueHolder83025->__construct($twig, $template, $parameters);
  51. }
  52. public function & __get($name)
  53. {
  54. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__get', ['name' => $name], $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  55. if (isset(self::$publicPropertiesf1b7b[$name])) {
  56. return $this->valueHolder83025->$name;
  57. }
  58. $realInstanceReflection = new \ReflectionClass('Ibexa\\TwigComponents\\Component\\TemplateComponent');
  59. if (! $realInstanceReflection->hasProperty($name)) {
  60. $targetObject = $this->valueHolder83025;
  61. $backtrace = debug_backtrace(false, 1);
  62. trigger_error(
  63. sprintf(
  64. 'Undefined property: %s::$%s in %s on line %s',
  65. $realInstanceReflection->getName(),
  66. $name,
  67. $backtrace[0]['file'],
  68. $backtrace[0]['line']
  69. ),
  70. \E_USER_NOTICE
  71. );
  72. return $targetObject->$name;
  73. }
  74. $targetObject = $this->valueHolder83025;
  75. $accessor = function & () use ($targetObject, $name) {
  76. return $targetObject->$name;
  77. };
  78. $backtrace = debug_backtrace(true, 2);
  79. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  80. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  81. $returnValue = & $accessor();
  82. return $returnValue;
  83. }
  84. public function __set($name, $value)
  85. {
  86. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  87. $realInstanceReflection = new \ReflectionClass('Ibexa\\TwigComponents\\Component\\TemplateComponent');
  88. if (! $realInstanceReflection->hasProperty($name)) {
  89. $targetObject = $this->valueHolder83025;
  90. $targetObject->$name = $value;
  91. return $targetObject->$name;
  92. }
  93. $targetObject = $this->valueHolder83025;
  94. $accessor = function & () use ($targetObject, $name, $value) {
  95. $targetObject->$name = $value;
  96. return $targetObject->$name;
  97. };
  98. $backtrace = debug_backtrace(true, 2);
  99. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  100. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  101. $returnValue = & $accessor();
  102. return $returnValue;
  103. }
  104. public function __isset($name)
  105. {
  106. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__isset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  107. $realInstanceReflection = new \ReflectionClass('Ibexa\\TwigComponents\\Component\\TemplateComponent');
  108. if (! $realInstanceReflection->hasProperty($name)) {
  109. $targetObject = $this->valueHolder83025;
  110. return isset($targetObject->$name);
  111. }
  112. $targetObject = $this->valueHolder83025;
  113. $accessor = function () use ($targetObject, $name) {
  114. return isset($targetObject->$name);
  115. };
  116. $backtrace = debug_backtrace(true, 2);
  117. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  118. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  119. $returnValue = $accessor();
  120. return $returnValue;
  121. }
  122. public function __unset($name)
  123. {
  124. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__unset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  125. $realInstanceReflection = new \ReflectionClass('Ibexa\\TwigComponents\\Component\\TemplateComponent');
  126. if (! $realInstanceReflection->hasProperty($name)) {
  127. $targetObject = $this->valueHolder83025;
  128. unset($targetObject->$name);
  129. return;
  130. }
  131. $targetObject = $this->valueHolder83025;
  132. $accessor = function () use ($targetObject, $name) {
  133. unset($targetObject->$name);
  134. return;
  135. };
  136. $backtrace = debug_backtrace(true, 2);
  137. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  138. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  139. $accessor();
  140. }
  141. public function __clone()
  142. {
  143. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__clone', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  144. $this->valueHolder83025 = clone $this->valueHolder83025;
  145. }
  146. public function __sleep()
  147. {
  148. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__sleep', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  149. return array('valueHolder83025');
  150. }
  151. public function __wakeup()
  152. {
  153. \Closure::bind(function (\Ibexa\TwigComponents\Component\TemplateComponent $instance) {
  154. unset($instance->twig, $instance->template, $instance->parameters);
  155. }, $this, 'Ibexa\\TwigComponents\\Component\\TemplateComponent')->__invoke($this);
  156. }
  157. public function setProxyInitializer(?\Closure $initializer = null): void
  158. {
  159. $this->initializer8f361 = $initializer;
  160. }
  161. public function getProxyInitializer(): ?\Closure
  162. {
  163. return $this->initializer8f361;
  164. }
  165. public function initializeProxy(): bool
  166. {
  167. return $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'initializeProxy', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  168. }
  169. public function isProxyInitialized(): bool
  170. {
  171. return null !== $this->valueHolder83025;
  172. }
  173. public function getWrappedValueHolderValue()
  174. {
  175. return $this->valueHolder83025;
  176. }
  177. }
  178. if (!\class_exists('TemplateComponent_cea33d3', false)) {
  179. \class_alias(__NAMESPACE__.'\\TemplateComponent_cea33d3', 'TemplateComponent_cea33d3', false);
  180. }