var/cache/dev/ContainerSR0qSfD/JWTTokenAuthenticator_3af84d5.php line 8

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