var/cache/dev/ContainerPkvbyyr/TrustedCookieResponseListener_c7f9b85.php line 26

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