var/cache/dev/ContainerQ4z9KJv/Handler_6696e1f.php line 69

Open in your IDE?
  1. <?php
  2. namespace ContainerQ4z9KJv;
  3. include_once \dirname(__DIR__, 4).'/vendor/ibexa/core/src/lib/Persistence/Legacy/Content/UrlAlias/Handler.php';
  4. class Handler_6696e1f extends \Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Handler implements \ProxyManager\Proxy\VirtualProxyInterface
  5. {
  6.     /**
  7.      * @var \Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Handler|null wrapped object, if the proxy is initialized
  8.      */
  9.     private $valueHolder351bd = null;
  10.     /**
  11.      * @var \Closure|null initializer responsible for generating the wrapped object
  12.      */
  13.     private $initializer779d1 = null;
  14.     /**
  15.      * @var bool[] map of public properties of the parent class
  16.      */
  17.     private static $publicProperties8ebfa = [
  18.         
  19.     ];
  20.     public function publishUrlAliasForLocation($locationId, $parentLocationId, $name, $languageCode, $alwaysAvailable = false, $updatePathIdentificationString = false) : string
  21.     {
  22.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'publishUrlAliasForLocation', array('locationId' => $locationId, 'parentLocationId' => $parentLocationId, 'name' => $name, 'languageCode' => $languageCode, 'alwaysAvailable' => $alwaysAvailable, 'updatePathIdentificationString' => $updatePathIdentificationString), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  23.         return $this->valueHolder351bd->publishUrlAliasForLocation($locationId, $parentLocationId, $name, $languageCode, $alwaysAvailable, $updatePathIdentificationString);
  24.     }
  25.     public function createCustomUrlAlias($locationId, $path, $forwarding = false, $languageCode = null, $alwaysAvailable = false)
  26.     {
  27.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'createCustomUrlAlias', array('locationId' => $locationId, 'path' => $path, 'forwarding' => $forwarding, 'languageCode' => $languageCode, 'alwaysAvailable' => $alwaysAvailable), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  28.         return $this->valueHolder351bd->createCustomUrlAlias($locationId, $path, $forwarding, $languageCode, $alwaysAvailable);
  29.     }
  30.     public function createGlobalUrlAlias($resource, $path, $forwarding = false, $languageCode = null, $alwaysAvailable = false)
  31.     {
  32.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'createGlobalUrlAlias', array('resource' => $resource, 'path' => $path, 'forwarding' => $forwarding, 'languageCode' => $languageCode, 'alwaysAvailable' => $alwaysAvailable), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  33.         return $this->valueHolder351bd->createGlobalUrlAlias($resource, $path, $forwarding, $languageCode, $alwaysAvailable);
  34.     }
  35.     public function listURLAliasesForLocation($locationId, $custom = false)
  36.     {
  37.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'listURLAliasesForLocation', array('locationId' => $locationId, 'custom' => $custom), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  38.         return $this->valueHolder351bd->listURLAliasesForLocation($locationId, $custom);
  39.     }
  40.     public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1)
  41.     {
  42.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'listGlobalURLAliases', array('languageCode' => $languageCode, 'offset' => $offset, 'limit' => $limit), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  43.         return $this->valueHolder351bd->listGlobalURLAliases($languageCode, $offset, $limit);
  44.     }
  45.     public function removeURLAliases(array $urlAliases)
  46.     {
  47.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'removeURLAliases', array('urlAliases' => $urlAliases), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  48.         return $this->valueHolder351bd->removeURLAliases($urlAliases);
  49.     }
  50.     public function lookup($url)
  51.     {
  52.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'lookup', array('url' => $url), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  53.         return $this->valueHolder351bd->lookup($url);
  54.     }
  55.     public function loadUrlAlias($id)
  56.     {
  57.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'loadUrlAlias', array('id' => $id), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  58.         return $this->valueHolder351bd->loadUrlAlias($id);
  59.     }
  60.     public function locationMoved($locationId, $oldParentId, $newParentId)
  61.     {
  62.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'locationMoved', array('locationId' => $locationId, 'oldParentId' => $oldParentId, 'newParentId' => $newParentId), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  63.         return $this->valueHolder351bd->locationMoved($locationId, $oldParentId, $newParentId);
  64.     }
  65.     public function locationCopied($locationId, $newLocationId, $newParentId)
  66.     {
  67.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'locationCopied', array('locationId' => $locationId, 'newLocationId' => $newLocationId, 'newParentId' => $newParentId), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  68.         return $this->valueHolder351bd->locationCopied($locationId, $newLocationId, $newParentId);
  69.     }
  70.     public function locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId)
  71.     {
  72.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'locationSwapped', array('location1Id' => $location1Id, 'location1ParentId' => $location1ParentId, 'location2Id' => $location2Id, 'location2ParentId' => $location2ParentId), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  73.         return $this->valueHolder351bd->locationSwapped($location1Id, $location1ParentId, $location2Id, $location2ParentId);
  74.     }
  75.     public function locationDeleted($locationId) : array
  76.     {
  77.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'locationDeleted', array('locationId' => $locationId), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  78.         return $this->valueHolder351bd->locationDeleted($locationId);
  79.     }
  80.     public function translationRemoved(array $locationIds, $languageCode)
  81.     {
  82.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'translationRemoved', array('locationIds' => $locationIds, 'languageCode' => $languageCode), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  83.         return $this->valueHolder351bd->translationRemoved($locationIds, $languageCode);
  84.     }
  85.     public function archiveUrlAliasesForDeletedTranslations($locationId, $parentLocationId, array $languageCodes)
  86.     {
  87.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'archiveUrlAliasesForDeletedTranslations', array('locationId' => $locationId, 'parentLocationId' => $parentLocationId, 'languageCodes' => $languageCodes), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  88.         return $this->valueHolder351bd->archiveUrlAliasesForDeletedTranslations($locationId, $parentLocationId, $languageCodes);
  89.     }
  90.     public function deleteCorruptedUrlAliases()
  91.     {
  92.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'deleteCorruptedUrlAliases', array(), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  93.         return $this->valueHolder351bd->deleteCorruptedUrlAliases();
  94.     }
  95.     public function repairBrokenUrlAliasesForLocation(int $locationId)
  96.     {
  97.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'repairBrokenUrlAliasesForLocation', array('locationId' => $locationId), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  98.         return $this->valueHolder351bd->repairBrokenUrlAliasesForLocation($locationId);
  99.     }
  100.     /**
  101.      * Constructor for lazy initialization
  102.      *
  103.      * @param \Closure|null $initializer
  104.      */
  105.     public static function staticProxyConstructor($initializer)
  106.     {
  107.         static $reflection;
  108.         $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  109.         $instance   = $reflection->newInstanceWithoutConstructor();
  110.         unset($instance->gateway, $instance->locationGateway, $instance->mapper, $instance->languageHandler, $instance->slugConverter, $instance->contentGateway, $instance->maskGenerator);
  111.         \Closure::bind(function (\Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Handler $instance) {
  112.             unset($instance->transactionHandler);
  113.         }, $instance, 'Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler')->__invoke($instance);
  114.         $instance->initializer779d1 = $initializer;
  115.         return $instance;
  116.     }
  117.     public function __construct(\Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Gateway $gateway, \Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Mapper $mapper, \Ibexa\Core\Persistence\Legacy\Content\Location\Gateway $locationGateway, \Ibexa\Contracts\Core\Persistence\Content\Language\Handler $languageHandler, \Ibexa\Core\Persistence\Legacy\Content\UrlAlias\SlugConverter $slugConverter, \Ibexa\Core\Persistence\Legacy\Content\Gateway $contentGateway, \Ibexa\Core\Persistence\Legacy\Content\Language\MaskGenerator $maskGenerator, \Ibexa\Contracts\Core\Persistence\TransactionHandler $transactionHandler)
  118.     {
  119.         static $reflection;
  120.         if (! $this->valueHolder351bd) {
  121.             $reflection = $reflection ?? new \ReflectionClass('Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler');
  122.             $this->valueHolder351bd = $reflection->newInstanceWithoutConstructor();
  123.         unset($this->gateway, $this->locationGateway, $this->mapper, $this->languageHandler, $this->slugConverter, $this->contentGateway, $this->maskGenerator);
  124.         \Closure::bind(function (\Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Handler $instance) {
  125.             unset($instance->transactionHandler);
  126.         }, $this, 'Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler')->__invoke($this);
  127.         }
  128.         $this->valueHolder351bd->__construct($gateway, $mapper, $locationGateway, $languageHandler, $slugConverter, $contentGateway, $maskGenerator, $transactionHandler);
  129.     }
  130.     public function & __get($name)
  131.     {
  132.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__get', ['name' => $name], $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  133.         if (isset(self::$publicProperties8ebfa[$name])) {
  134.             return $this->valueHolder351bd->$name;
  135.         }
  136.         $realInstanceReflection = new \ReflectionClass('Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler');
  137.         if (! $realInstanceReflection->hasProperty($name)) {
  138.             $targetObject = $this->valueHolder351bd;
  139.             $backtrace = debug_backtrace(false, 1);
  140.             trigger_error(
  141.                 sprintf(
  142.                     'Undefined property: %s::$%s in %s on line %s',
  143.                     $realInstanceReflection->getName(),
  144.                     $name,
  145.                     $backtrace[0]['file'],
  146.                     $backtrace[0]['line']
  147.                 ),
  148.                 \E_USER_NOTICE
  149.             );
  150.             return $targetObject->$name;
  151.         }
  152.         $targetObject = $this->valueHolder351bd;
  153.         $accessor = function & () use ($targetObject, $name) {
  154.             return $targetObject->$name;
  155.         };
  156.         $backtrace = debug_backtrace(true, 2);
  157.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  158.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  159.         $returnValue = & $accessor();
  160.         return $returnValue;
  161.     }
  162.     public function __set($name, $value)
  163.     {
  164.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  165.         $realInstanceReflection = new \ReflectionClass('Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler');
  166.         if (! $realInstanceReflection->hasProperty($name)) {
  167.             $targetObject = $this->valueHolder351bd;
  168.             $targetObject->$name = $value;
  169.             return $targetObject->$name;
  170.         }
  171.         $targetObject = $this->valueHolder351bd;
  172.         $accessor = function & () use ($targetObject, $name, $value) {
  173.             $targetObject->$name = $value;
  174.             return $targetObject->$name;
  175.         };
  176.         $backtrace = debug_backtrace(true, 2);
  177.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  178.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  179.         $returnValue = & $accessor();
  180.         return $returnValue;
  181.     }
  182.     public function __isset($name)
  183.     {
  184.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__isset', array('name' => $name), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  185.         $realInstanceReflection = new \ReflectionClass('Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler');
  186.         if (! $realInstanceReflection->hasProperty($name)) {
  187.             $targetObject = $this->valueHolder351bd;
  188.             return isset($targetObject->$name);
  189.         }
  190.         $targetObject = $this->valueHolder351bd;
  191.         $accessor = function () use ($targetObject, $name) {
  192.             return isset($targetObject->$name);
  193.         };
  194.         $backtrace = debug_backtrace(true, 2);
  195.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  196.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  197.         $returnValue = $accessor();
  198.         return $returnValue;
  199.     }
  200.     public function __unset($name)
  201.     {
  202.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__unset', array('name' => $name), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  203.         $realInstanceReflection = new \ReflectionClass('Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler');
  204.         if (! $realInstanceReflection->hasProperty($name)) {
  205.             $targetObject = $this->valueHolder351bd;
  206.             unset($targetObject->$name);
  207.             return;
  208.         }
  209.         $targetObject = $this->valueHolder351bd;
  210.         $accessor = function () use ($targetObject, $name) {
  211.             unset($targetObject->$name);
  212.             return;
  213.         };
  214.         $backtrace = debug_backtrace(true, 2);
  215.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  216.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  217.         $accessor();
  218.     }
  219.     public function __clone()
  220.     {
  221.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__clone', array(), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  222.         $this->valueHolder351bd = clone $this->valueHolder351bd;
  223.     }
  224.     public function __sleep()
  225.     {
  226.         $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, '__sleep', array(), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  227.         return array('valueHolder351bd');
  228.     }
  229.     public function __wakeup()
  230.     {
  231.         unset($this->gateway, $this->locationGateway, $this->mapper, $this->languageHandler, $this->slugConverter, $this->contentGateway, $this->maskGenerator);
  232.         \Closure::bind(function (\Ibexa\Core\Persistence\Legacy\Content\UrlAlias\Handler $instance) {
  233.             unset($instance->transactionHandler);
  234.         }, $this, 'Ibexa\\Core\\Persistence\\Legacy\\Content\\UrlAlias\\Handler')->__invoke($this);
  235.     }
  236.     public function setProxyInitializer(\Closure $initializer = null) : void
  237.     {
  238.         $this->initializer779d1 = $initializer;
  239.     }
  240.     public function getProxyInitializer() : ?\Closure
  241.     {
  242.         return $this->initializer779d1;
  243.     }
  244.     public function initializeProxy() : bool
  245.     {
  246.         return $this->initializer779d1 && ($this->initializer779d1->__invoke($valueHolder351bd, $this, 'initializeProxy', array(), $this->initializer779d1) || 1) && $this->valueHolder351bd = $valueHolder351bd;
  247.     }
  248.     public function isProxyInitialized() : bool
  249.     {
  250.         return null !== $this->valueHolder351bd;
  251.     }
  252.     public function getWrappedValueHolderValue()
  253.     {
  254.         return $this->valueHolder351bd;
  255.     }
  256. }
  257. if (!\class_exists('Handler_6696e1f', false)) {
  258.     \class_alias(__NAMESPACE__.'\\Handler_6696e1f', 'Handler_6696e1f', false);
  259. }