var/cache/dev/Container2u3tDSD/GaufretteStorage_f99e4b3.php line 54

Open in your IDE?
  1. <?php
  2. namespace Container2u3tDSD;
  3. include_once \dirname(__DIR__4).'/vendor/vich/uploader-bundle/src/Storage/StorageInterface.php';
  4. include_once \dirname(__DIR__4).'/vendor/vich/uploader-bundle/src/Storage/AbstractStorage.php';
  5. include_once \dirname(__DIR__4).'/vendor/vich/uploader-bundle/src/Storage/GaufretteStorage.php';
  6. class GaufretteStorage_f99e4b3 extends \Vich\UploaderBundle\Storage\GaufretteStorage implements \ProxyManager\Proxy\VirtualProxyInterface
  7. {
  8.     /**
  9.      * @var \Vich\UploaderBundle\Storage\GaufretteStorage|null wrapped object, if the proxy is initialized
  10.      */
  11.     private $valueHolder281d4 null;
  12.     /**
  13.      * @var \Closure|null initializer responsible for generating the wrapped object
  14.      */
  15.     private $initializerf179d null;
  16.     /**
  17.      * @var bool[] map of public properties of the parent class
  18.      */
  19.     private static $publicProperties66697 = [
  20.         
  21.     ];
  22.     public function upload($obj, \Vich\UploaderBundle\Mapping\PropertyMapping $mapping) : void
  23.     {
  24.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'upload', array('obj' => $obj'mapping' => $mapping), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  25.         $this->valueHolder281d4->upload($obj$mapping);
  26. return;
  27.     }
  28.     public function remove($obj, \Vich\UploaderBundle\Mapping\PropertyMapping $mapping) : ?bool
  29.     {
  30.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'remove', array('obj' => $obj'mapping' => $mapping), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  31.         return $this->valueHolder281d4->remove($obj$mapping);
  32.     }
  33.     public function resolvePath($obj, ?string $fieldName null, ?string $className null, ?bool $relative false) : ?string
  34.     {
  35.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'resolvePath', array('obj' => $obj'fieldName' => $fieldName'className' => $className'relative' => $relative), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  36.         return $this->valueHolder281d4->resolvePath($obj$fieldName$className$relative);
  37.     }
  38.     public function resolveUri($obj, ?string $fieldName null, ?string $className null) : ?string
  39.     {
  40.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'resolveUri', array('obj' => $obj'fieldName' => $fieldName'className' => $className), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  41.         return $this->valueHolder281d4->resolveUri($obj$fieldName$className);
  42.     }
  43.     public function resolveStream($objstring $fieldName, ?string $className null)
  44.     {
  45.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'resolveStream', array('obj' => $obj'fieldName' => $fieldName'className' => $className), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  46.         return $this->valueHolder281d4->resolveStream($obj$fieldName$className);
  47.     }
  48.     /**
  49.      * Constructor for lazy initialization
  50.      *
  51.      * @param \Closure|null $initializer
  52.      */
  53.     public static function staticProxyConstructor($initializer)
  54.     {
  55.         static $reflection;
  56.         $reflection $reflection ?? new \ReflectionClass(__CLASS__);
  57.         $instance   $reflection->newInstanceWithoutConstructor();
  58.         unset($instance->filesystemMap$instance->protocol$instance->factory);
  59.         $instance->initializerf179d $initializer;
  60.         return $instance;
  61.     }
  62.     public function __construct(\Vich\UploaderBundle\Mapping\PropertyMappingFactory $factory, \Gaufrette\FilesystemMapInterface $filesystemMapstring $protocol 'gaufrette')
  63.     {
  64.         static $reflection;
  65.         if (! $this->valueHolder281d4) {
  66.             $reflection $reflection ?? new \ReflectionClass('Vich\\UploaderBundle\\Storage\\GaufretteStorage');
  67.             $this->valueHolder281d4 $reflection->newInstanceWithoutConstructor();
  68.         unset($this->filesystemMap$this->protocol$this->factory);
  69.         }
  70.         $this->valueHolder281d4->__construct($factory$filesystemMap$protocol);
  71.     }
  72.     public function & __get($name)
  73.     {
  74.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__get', ['name' => $name], $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  75.         if (isset(self::$publicProperties66697[$name])) {
  76.             return $this->valueHolder281d4->$name;
  77.         }
  78.         $realInstanceReflection = new \ReflectionClass('Vich\\UploaderBundle\\Storage\\GaufretteStorage');
  79.         if (! $realInstanceReflection->hasProperty($name)) {
  80.             $targetObject $this->valueHolder281d4;
  81.             $backtrace debug_backtrace(false1);
  82.             trigger_error(
  83.                 sprintf(
  84.                     'Undefined property: %s::$%s in %s on line %s',
  85.                     $realInstanceReflection->getName(),
  86.                     $name,
  87.                     $backtrace[0]['file'],
  88.                     $backtrace[0]['line']
  89.                 ),
  90.                 \E_USER_NOTICE
  91.             );
  92.             return $targetObject->$name;
  93.         }
  94.         $targetObject $this->valueHolder281d4;
  95.         $accessor = function & () use ($targetObject$name) {
  96.             return $targetObject->$name;
  97.         };
  98.         $backtrace debug_backtrace(true2);
  99.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  100.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  101.         $returnValue = & $accessor();
  102.         return $returnValue;
  103.     }
  104.     public function __set($name$value)
  105.     {
  106.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__set', array('name' => $name'value' => $value), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  107.         $realInstanceReflection = new \ReflectionClass('Vich\\UploaderBundle\\Storage\\GaufretteStorage');
  108.         if (! $realInstanceReflection->hasProperty($name)) {
  109.             $targetObject $this->valueHolder281d4;
  110.             $targetObject->$name $value;
  111.             return $targetObject->$name;
  112.         }
  113.         $targetObject $this->valueHolder281d4;
  114.         $accessor = function & () use ($targetObject$name$value) {
  115.             $targetObject->$name $value;
  116.             return $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 __isset($name)
  125.     {
  126.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__isset', array('name' => $name), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  127.         $realInstanceReflection = new \ReflectionClass('Vich\\UploaderBundle\\Storage\\GaufretteStorage');
  128.         if (! $realInstanceReflection->hasProperty($name)) {
  129.             $targetObject $this->valueHolder281d4;
  130.             return isset($targetObject->$name);
  131.         }
  132.         $targetObject $this->valueHolder281d4;
  133.         $accessor = function () use ($targetObject$name) {
  134.             return isset($targetObject->$name);
  135.         };
  136.         $backtrace debug_backtrace(true2);
  137.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  138.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  139.         $returnValue $accessor();
  140.         return $returnValue;
  141.     }
  142.     public function __unset($name)
  143.     {
  144.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__unset', array('name' => $name), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  145.         $realInstanceReflection = new \ReflectionClass('Vich\\UploaderBundle\\Storage\\GaufretteStorage');
  146.         if (! $realInstanceReflection->hasProperty($name)) {
  147.             $targetObject $this->valueHolder281d4;
  148.             unset($targetObject->$name);
  149.             return;
  150.         }
  151.         $targetObject $this->valueHolder281d4;
  152.         $accessor = function () use ($targetObject$name) {
  153.             unset($targetObject->$name);
  154.             return;
  155.         };
  156.         $backtrace debug_backtrace(true2);
  157.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  158.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  159.         $accessor();
  160.     }
  161.     public function __clone()
  162.     {
  163.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__clone', array(), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  164.         $this->valueHolder281d4 = clone $this->valueHolder281d4;
  165.     }
  166.     public function __sleep()
  167.     {
  168.         $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'__sleep', array(), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  169.         return array('valueHolder281d4');
  170.     }
  171.     public function __wakeup()
  172.     {
  173.         unset($this->filesystemMap$this->protocol$this->factory);
  174.     }
  175.     public function setProxyInitializer(\Closure $initializer null) : void
  176.     {
  177.         $this->initializerf179d $initializer;
  178.     }
  179.     public function getProxyInitializer() : ?\Closure
  180.     {
  181.         return $this->initializerf179d;
  182.     }
  183.     public function initializeProxy() : bool
  184.     {
  185.         return $this->initializerf179d && ($this->initializerf179d->__invoke($valueHolder281d4$this'initializeProxy', array(), $this->initializerf179d) || 1) && $this->valueHolder281d4 $valueHolder281d4;
  186.     }
  187.     public function isProxyInitialized() : bool
  188.     {
  189.         return null !== $this->valueHolder281d4;
  190.     }
  191.     public function getWrappedValueHolderValue()
  192.     {
  193.         return $this->valueHolder281d4;
  194.     }
  195. }
  196. if (!\class_exists('GaufretteStorage_f99e4b3'false)) {
  197.     \class_alias(__NAMESPACE__.'\\GaufretteStorage_f99e4b3''GaufretteStorage_f99e4b3'false);
  198. }