var/cache/dev/ContainerC1MH1xT/PersistenceCachePurger_efd6bd3.php line 6

Open in your IDE?
  1. <?php
  2. namespace ContainerC1MH1xT;
  3. include_once \dirname(__DIR__, 4).'/vendor/symfony/http-kernel/CacheClearer/CacheClearerInterface.php';
  4. include_once \dirname(__DIR__, 4).'/vendor/se7enxweb/legacy-bridge/bundle/Cache/Switchable.php';
  5. include_once \dirname(__DIR__, 4).'/vendor/se7enxweb/legacy-bridge/bundle/Cache/PersistenceCachePurger.php';
  6. class PersistenceCachePurger_efd6bd3 extends \eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger implements \ProxyManager\Proxy\VirtualProxyInterface
  7. {
  8. /**
  9. * @var \eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger|null wrapped object, if the proxy is initialized
  10. */
  11. private $valueHolder83025 = null;
  12. /**
  13. * @var \Closure|null initializer responsible for generating the wrapped object
  14. */
  15. private $initializer8f361 = null;
  16. /**
  17. * @var bool[] map of public properties of the parent class
  18. */
  19. private static $publicPropertiesf1b7b = [
  20. ];
  21. public function all()
  22. {
  23. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'all', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  24. return $this->valueHolder83025->all();
  25. }
  26. public function isAllCleared()
  27. {
  28. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'isAllCleared', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  29. return $this->valueHolder83025->isAllCleared();
  30. }
  31. public function resetAllCleared()
  32. {
  33. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'resetAllCleared', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  34. return $this->valueHolder83025->resetAllCleared();
  35. }
  36. public function content($locationIds = null, ?array $contentIds = null)
  37. {
  38. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'content', array('locationIds' => $locationIds, 'contentIds' => $contentIds), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  39. return $this->valueHolder83025->content($locationIds, $contentIds);
  40. }
  41. public function contentVersion($contentId, $versionNo)
  42. {
  43. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'contentVersion', array('contentId' => $contentId, 'versionNo' => $versionNo), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  44. return $this->valueHolder83025->contentVersion($contentId, $versionNo);
  45. }
  46. public function contentType($id = null)
  47. {
  48. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'contentType', array('id' => $id), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  49. return $this->valueHolder83025->contentType($id);
  50. }
  51. public function contentTypeGroup($id)
  52. {
  53. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'contentTypeGroup', array('id' => $id), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  54. return $this->valueHolder83025->contentTypeGroup($id);
  55. }
  56. public function section($id)
  57. {
  58. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'section', array('id' => $id), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  59. return $this->valueHolder83025->section($id);
  60. }
  61. public function languages($ids)
  62. {
  63. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'languages', array('ids' => $ids), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  64. return $this->valueHolder83025->languages($ids);
  65. }
  66. public function stateAssign($contentId)
  67. {
  68. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'stateAssign', array('contentId' => $contentId), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  69. return $this->valueHolder83025->stateAssign($contentId);
  70. }
  71. public function user($id = null)
  72. {
  73. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'user', array('id' => $id), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  74. return $this->valueHolder83025->user($id);
  75. }
  76. public function clear($cacheDir)
  77. {
  78. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'clear', array('cacheDir' => $cacheDir), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  79. return $this->valueHolder83025->clear($cacheDir);
  80. }
  81. public function switchOn()
  82. {
  83. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'switchOn', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  84. return $this->valueHolder83025->switchOn();
  85. }
  86. public function switchOff()
  87. {
  88. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'switchOff', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  89. return $this->valueHolder83025->switchOff();
  90. }
  91. public function isSwitchedOn()
  92. {
  93. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'isSwitchedOn', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  94. return $this->valueHolder83025->isSwitchedOn();
  95. }
  96. public function isSwitchedOff()
  97. {
  98. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'isSwitchedOff', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  99. return $this->valueHolder83025->isSwitchedOff();
  100. }
  101. /**
  102. * Constructor for lazy initialization
  103. *
  104. * @param \Closure|null $initializer
  105. */
  106. public static function staticProxyConstructor($initializer)
  107. {
  108. static $reflection;
  109. $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  110. $instance = $reflection->newInstanceWithoutConstructor();
  111. unset($instance->cache, $instance->locationHandler, $instance->cacheIdentifierGenerator, $instance->allCleared);
  112. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger $instance) {
  113. unset($instance->clearAllSPICacheOnSymfonyClearCache, $instance->clearAllSPICacheFromLegacy, $instance->isSwitchedOn);
  114. }, $instance, 'eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger')->__invoke($instance);
  115. $instance->initializer8f361 = $initializer;
  116. return $instance;
  117. }
  118. public function __construct(\Symfony\Component\Cache\Adapter\TagAwareAdapterInterface $cache, \eZ\Publish\SPI\Persistence\Content\Location\Handler $locationHandler, \Ibexa\Core\Persistence\Cache\Identifier\CacheIdentifierGeneratorInterface $cacheIdentifierGenerator, bool $clearAllSPICacheOnSymfonyClearCache = true, bool $clearAllSPICacheFromLegacy = true)
  119. {
  120. static $reflection;
  121. if (! $this->valueHolder83025) {
  122. $reflection = $reflection ?? new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger');
  123. $this->valueHolder83025 = $reflection->newInstanceWithoutConstructor();
  124. unset($this->cache, $this->locationHandler, $this->cacheIdentifierGenerator, $this->allCleared);
  125. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger $instance) {
  126. unset($instance->clearAllSPICacheOnSymfonyClearCache, $instance->clearAllSPICacheFromLegacy, $instance->isSwitchedOn);
  127. }, $this, 'eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger')->__invoke($this);
  128. }
  129. $this->valueHolder83025->__construct($cache, $locationHandler, $cacheIdentifierGenerator, $clearAllSPICacheOnSymfonyClearCache, $clearAllSPICacheFromLegacy);
  130. }
  131. public function & __get($name)
  132. {
  133. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__get', ['name' => $name], $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  134. if (isset(self::$publicPropertiesf1b7b[$name])) {
  135. return $this->valueHolder83025->$name;
  136. }
  137. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger');
  138. if (! $realInstanceReflection->hasProperty($name)) {
  139. $targetObject = $this->valueHolder83025;
  140. $backtrace = debug_backtrace(false, 1);
  141. trigger_error(
  142. sprintf(
  143. 'Undefined property: %s::$%s in %s on line %s',
  144. $realInstanceReflection->getName(),
  145. $name,
  146. $backtrace[0]['file'],
  147. $backtrace[0]['line']
  148. ),
  149. \E_USER_NOTICE
  150. );
  151. return $targetObject->$name;
  152. }
  153. $targetObject = $this->valueHolder83025;
  154. $accessor = function & () use ($targetObject, $name) {
  155. return $targetObject->$name;
  156. };
  157. $backtrace = debug_backtrace(true, 2);
  158. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  159. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  160. $returnValue = & $accessor();
  161. return $returnValue;
  162. }
  163. public function __set($name, $value)
  164. {
  165. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  166. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger');
  167. if (! $realInstanceReflection->hasProperty($name)) {
  168. $targetObject = $this->valueHolder83025;
  169. $targetObject->$name = $value;
  170. return $targetObject->$name;
  171. }
  172. $targetObject = $this->valueHolder83025;
  173. $accessor = function & () use ($targetObject, $name, $value) {
  174. $targetObject->$name = $value;
  175. return $targetObject->$name;
  176. };
  177. $backtrace = debug_backtrace(true, 2);
  178. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  179. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  180. $returnValue = & $accessor();
  181. return $returnValue;
  182. }
  183. public function __isset($name)
  184. {
  185. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__isset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  186. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger');
  187. if (! $realInstanceReflection->hasProperty($name)) {
  188. $targetObject = $this->valueHolder83025;
  189. return isset($targetObject->$name);
  190. }
  191. $targetObject = $this->valueHolder83025;
  192. $accessor = function () use ($targetObject, $name) {
  193. return isset($targetObject->$name);
  194. };
  195. $backtrace = debug_backtrace(true, 2);
  196. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  197. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  198. $returnValue = $accessor();
  199. return $returnValue;
  200. }
  201. public function __unset($name)
  202. {
  203. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__unset', array('name' => $name), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  204. $realInstanceReflection = new \ReflectionClass('eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger');
  205. if (! $realInstanceReflection->hasProperty($name)) {
  206. $targetObject = $this->valueHolder83025;
  207. unset($targetObject->$name);
  208. return;
  209. }
  210. $targetObject = $this->valueHolder83025;
  211. $accessor = function () use ($targetObject, $name) {
  212. unset($targetObject->$name);
  213. return;
  214. };
  215. $backtrace = debug_backtrace(true, 2);
  216. $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  217. $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  218. $accessor();
  219. }
  220. public function __clone()
  221. {
  222. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__clone', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  223. $this->valueHolder83025 = clone $this->valueHolder83025;
  224. }
  225. public function __sleep()
  226. {
  227. $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, '__sleep', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  228. return array('valueHolder83025');
  229. }
  230. public function __wakeup()
  231. {
  232. unset($this->cache, $this->locationHandler, $this->cacheIdentifierGenerator, $this->allCleared);
  233. \Closure::bind(function (\eZ\Bundle\EzPublishLegacyBundle\Cache\PersistenceCachePurger $instance) {
  234. unset($instance->clearAllSPICacheOnSymfonyClearCache, $instance->clearAllSPICacheFromLegacy, $instance->isSwitchedOn);
  235. }, $this, 'eZ\\Bundle\\EzPublishLegacyBundle\\Cache\\PersistenceCachePurger')->__invoke($this);
  236. }
  237. public function setProxyInitializer(?\Closure $initializer = null): void
  238. {
  239. $this->initializer8f361 = $initializer;
  240. }
  241. public function getProxyInitializer(): ?\Closure
  242. {
  243. return $this->initializer8f361;
  244. }
  245. public function initializeProxy(): bool
  246. {
  247. return $this->initializer8f361 && ($this->initializer8f361->__invoke($valueHolder83025, $this, 'initializeProxy', array(), $this->initializer8f361) || 1) && $this->valueHolder83025 = $valueHolder83025;
  248. }
  249. public function isProxyInitialized(): bool
  250. {
  251. return null !== $this->valueHolder83025;
  252. }
  253. public function getWrappedValueHolderValue()
  254. {
  255. return $this->valueHolder83025;
  256. }
  257. }
  258. if (!\class_exists('PersistenceCachePurger_efd6bd3', false)) {
  259. \class_alias(__NAMESPACE__.'\\PersistenceCachePurger_efd6bd3', 'PersistenceCachePurger_efd6bd3', false);
  260. }