var/cache/dev/ContainerC1MH1xT/HttpDispatcher_5a7a704.php line 33

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