var/cache/dev/ContainerMdyBqaM/PublicApiRateLimiter_0d33754.php line 25

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