var/cache/dev/ContainerDrxNATm/CompositeUserVoter_d210d06.php line 9

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