var/cache/website/dev/ContainerKw2fJWT/TrustedCookieResponseListener_c7f9b85.php line 25

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