<?php
class AliasGeneratorDecorator_02cce63 extends \eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\AliasGeneratorDecorator implements \ProxyManager\Proxy\VirtualProxyInterface
{
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $valueHoldere39e4 = null;
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $initializeraa1bb = null;
/**
* @var bool[] map of public properties of the parent class
*/
private static $publicProperties1a37c = [
];
public function getVariation(\eZ\Publish\API\Repository\Values\Content\Field $field, \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo, $variationName, array $parameters = [])
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'getVariation', array('field' => $field, 'versionInfo' => $versionInfo, 'variationName' => $variationName, 'parameters' => $parameters), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->getVariation($field, $versionInfo, $variationName, $parameters);
}
public function setSiteAccess(?\eZ\Publish\Core\MVC\Symfony\SiteAccess $siteAccess = null)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'setSiteAccess', array('siteAccess' => $siteAccess), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return $this->valueHoldere39e4->setSiteAccess($siteAccess);
}
/**
* Constructor for lazy initialization
*
* @param \Closure|null $initializer
*/
public static function staticProxyConstructor($initializer)
{
static $reflection;
$reflection = $reflection ?? $reflection = new \ReflectionClass(__CLASS__);
$instance = $reflection->newInstanceWithoutConstructor();
\Closure::bind(function (\eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\AliasGeneratorDecorator $instance) {
unset($instance->aliasGenerator, $instance->cache, $instance->siteAccess, $instance->requestContext);
}, $instance, 'eZ\\Bundle\\EzPublishCoreBundle\\Imagine\\Cache\\AliasGeneratorDecorator')->__invoke($instance);
$instance->initializeraa1bb = $initializer;
return $instance;
}
public function __construct(\eZ\Publish\SPI\Variation\VariationHandler $aliasGenerator, \Symfony\Component\Cache\Adapter\TagAwareAdapterInterface $cache, \Symfony\Component\Routing\RequestContext $requestContext)
{
static $reflection;
if (! $this->valueHoldere39e4) {
$reflection = $reflection ?: new \ReflectionClass('eZ\\Bundle\\EzPublishCoreBundle\\Imagine\\Cache\\AliasGeneratorDecorator');
$this->valueHoldere39e4 = $reflection->newInstanceWithoutConstructor();
\Closure::bind(function (\eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\AliasGeneratorDecorator $instance) {
unset($instance->aliasGenerator, $instance->cache, $instance->siteAccess, $instance->requestContext);
}, $this, 'eZ\\Bundle\\EzPublishCoreBundle\\Imagine\\Cache\\AliasGeneratorDecorator')->__invoke($this);
}
$this->valueHoldere39e4->__construct($aliasGenerator, $cache, $requestContext);
}
public function & __get($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__get', ['name' => $name], $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
if (isset(self::$publicProperties1a37c[$name])) {
return $this->valueHoldere39e4->$name;
}
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
$backtrace = debug_backtrace(false);
trigger_error(
sprintf(
'Undefined property: %s::$%s in %s on line %s',
get_parent_class($this),
$name,
$backtrace[0]['file'],
$backtrace[0]['line']
),
\E_USER_NOTICE
);
return $targetObject->$name;
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function & () use ($targetObject, $name) {
return $targetObject->$name;
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __set($name, $value)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__set', array('name' => $name, 'value' => $value), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
return $targetObject->$name = $value;
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function & () use ($targetObject, $name, $value) {
return $targetObject->$name = $value;
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __isset($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__isset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
return isset($targetObject->$name);
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function () use ($targetObject, $name) {
return isset($targetObject->$name);
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = $accessor();
return $returnValue;
}
public function __unset($name)
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__unset', array('name' => $name), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$realInstanceReflection = new \ReflectionClass(get_parent_class($this));
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHoldere39e4;
unset($targetObject->$name);
return;
}
$targetObject = $this->valueHoldere39e4;
$accessor = function () use ($targetObject, $name) {
unset($targetObject->$name);
};
$backtrace = debug_backtrace(true);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = $accessor();
return $returnValue;
}
public function __clone()
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__clone', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
$this->valueHoldere39e4 = clone $this->valueHoldere39e4;
}
public function __sleep()
{
$this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, '__sleep', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
return array('valueHoldere39e4');
}
public function __wakeup()
{
\Closure::bind(function (\eZ\Bundle\EzPublishCoreBundle\Imagine\Cache\AliasGeneratorDecorator $instance) {
unset($instance->aliasGenerator, $instance->cache, $instance->siteAccess, $instance->requestContext);
}, $this, 'eZ\\Bundle\\EzPublishCoreBundle\\Imagine\\Cache\\AliasGeneratorDecorator')->__invoke($this);
}
public function setProxyInitializer(\Closure $initializer = null)
{
$this->initializeraa1bb = $initializer;
}
public function getProxyInitializer()
{
return $this->initializeraa1bb;
}
public function initializeProxy() : bool
{
return $this->initializeraa1bb && ($this->initializeraa1bb->__invoke($valueHoldere39e4, $this, 'initializeProxy', array(), $this->initializeraa1bb) || 1) && $this->valueHoldere39e4 = $valueHoldere39e4;
}
public function isProxyInitialized() : bool
{
return null !== $this->valueHoldere39e4;
}
public function getWrappedValueHolderValue() : ?object
{
return $this->valueHoldere39e4;
}
}