![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/knplabs/gaufrette/src/Gaufrette/Adapter/ |
<?php namespace Gaufrette\Adapter; use Gaufrette\Adapter\OpenStackCloudFiles\ObjectStoreFactoryInterface; @trigger_error('The ' . __NAMESPACE__ . '\LazyOpenCloud adapter is deprecated since version 0.4 and will be removed in 1.0. Use the OpenCloud adapter instead.', E_USER_DEPRECATED); /** * LazyOpenCloud. * * @author Daniel Richter <[email protected]> * * @deprecated The LazyOpenCloud adapter is deprecated since version 0.4 and will be removed in 1.0. Use the OpenCloud adapter instead. */ class LazyOpenCloud extends OpenCloud { /** * @var ObjectStoreFactoryInterface */ protected $objectStoreFactory; /** * @param ObjectStoreFactoryInterface $objectStoreFactory * @param string $containerName * @param bool $createContainer */ public function __construct(ObjectStoreFactoryInterface $objectStoreFactory, $containerName, $createContainer = false) { $this->objectStoreFactory = $objectStoreFactory; $this->containerName = $containerName; $this->createContainer = $createContainer; } /** * Override parent to lazy-load object store. * * {@inheritdoc} */ protected function getContainer() { if (!$this->objectStore) { $this->objectStore = $this->objectStoreFactory->getObjectStore(); } return parent::getContainer(); } }