Retrieve storage instance

@return \Zend\Authentication\Storage\StorageInterface

@ValuService\Exclude
3867
public function getStorage()
	{
	    if(!$this->storage && $this->getServiceLocator()->has(self::STORAGE_LOCATOR_KEY)){
	        $this->setStorage($this->getServiceLocator()->get(self::STORAGE_LOCATOR_KEY));
	    }
	    
	    return $this->storage;
	}
944019
public function get($name = null)
    {
        if ($name === null) {
            $name = $this->mainname;
        }
        if (!isset($this->dbs[$name])) {
            throw new Exceptions\StorageNotFound($name);
        }
        return $this->dbs[$name];
    }
412225
protected static function storage()
    {
        if (self::$storage) {
            return self::$storage;
        }
        $className = self::getStorageClassName();
        if (!class_exists($className)) {
            throw new LaravelSmsException("Generate storage failed, the class [$className] does not exists.");
        }
        $store = new $className();
        if (!($store instanceof Storage)) {
            throw new LaravelSmsException("Generate storage failed, the class [$className] does not implement the interface [Toplan\\Sms\\Storage].");
        }

        return self::$storage = $store;
    }
1209533
public static function storage($storage = null)
    {
        if ($storage === null) {
            $storage = Config::get('cache.storage') ?: 'memory';
        }

        if (!isset(static::$storages[$storage])) {
            static::$storages[$storage] = static::factory($storage);
        }

        return static::$storages[$storage];
    }
449466
function _storage()
    {
        if (! $this->_session ) {
            // Store in session by realm defined with this authentication domain
            $session = new SessionStore(self::STORAGE_IDENTITY_KEY.'_'.$this->getRealm());
            $this->_session = $session;
        }

        return $this->_session;
    }
58954
public static function instance()
    {
        if (null === self::$_instance) {
            $logger = new Monolog(Config::read('app.id'));
            $file_handler = new StreamHandler(self::getFilepath());
            $logger->pushHandler($file_handler);

            self::$_instance = $logger;
        }
        return self::$_instance;
    }
576508
public function getStorageModel()
    {
        if (!$this->storageModel) {
            $this->storageModel = $this->getServiceLocator()->get('HtProfileImage\StorageModel');
        }

        return $this->storageModel;
    }
1351463
public function getDefaultStorage(): ?Filesystem
    {
        // By default, the Storage Facade does not return the
        // any actual storage fisk, but rather an
        // instance of \Illuminate\Filesystem\FilesystemManager.
        // Therefore, we make sure only to obtain its
        // "disk", to make sure that its the correct
        // instance that we obtain.
        $manager = Storage::getFacadeRoot();
        if (isset($manager)) {
            return $manager->disk();
        }
        return $manager;
    }
987355
public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();

            // automatisches einloggen
            $autologin = Zend_Registry::get('config')->autologin;
            if ($autologin && Kwf_Setup::hasDb()) {
                $storage = self::$_instance->getStorage();
                $loginData = $storage->read();

                if (!isset($loginData['userId']) || !$loginData['userId']) {
                    $userModel = Zend_Registry::get('userModel');

                    $r = $userModel->getRow($userModel->select()->whereEquals('email', $autologin));
                    if (!$r) {
                        $msg = "Autologin email '$autologin' does not exists";
                        throw new Kwf_Exception("autologin failed: $msg");
                    }

                    $loginData['userId'] = $r->id;
                    $storage->write($loginData);
                }
            }
        }

        return self::$_instance;
    }
1070956
public static function getInstance()
    {
        $configuration = Configuration::getConfig(self::CONFIG_FILE_NAME);
        $idpListServiceType = $configuration->getString(self::PROPNAME_IDP_LIST_SERVICE_TYPE, self::CSV);
        if ($idpListServiceType === self::CSV) {
            return new IdpListsServiceCsv();
        } elseif ($idpListServiceType === self::DB) {
            return new IdpListsServiceDB();
        } else {
            throw new Exception(
                'Unknown idpListService type. Hint: try ' . self::CSV . ' or ' . self::DB
            );
        }
    }
231415
function storage()
	{
		if($this->storage)
			return $this->storage;

		$storage_class = $this->storage_engine();

		if($storage_class_name = $storage_class)
			return $this->storage = new $storage_class_name($this);

		bors_throw('Undefined storage engine for '.$this);
	}
456577
public function getStorageLocation()
    {
        if ($this->storageLocation === null) {
            $orm = $this->app['database/orm']->entityManager();
            /* @var \Doctrine\ORM\EntityManagerInterface $orm */
            $storageLocation = $orm->getRepository(StorageLocation::class)->findOneBy(['fslIsDefault' => true]);

            if ($storageLocation) {
                $this->storageLocation = $storageLocation;
            }
        }

        return $this->storageLocation;
    }
1363190
public function getFile()
    {
        if ($this->_file === null) {
            $this->_file = Yii::$app->storage->getFile($this->getFileId());
        }
        
        return $this->_file;
    }
194588
public function getStorage()
    {
        if ($this->hasToken()) {
            return $this->temporaryStorage->setToken($this->getToken());
        }

        return $this->storage;
    }
659191
public function getCache()
    {
        if ($this->cache) {
            return $this->cache;
        }

        if (property_exists($this, 'app') && $this->app instanceof ServiceContainer
            && isset($this->app['cache']) && $this->app['cache'] instanceof CacheInterface) {
            return $this->cache = $this->app['cache'];
        }

        return $this->cache = $this->createDefaultCache();
    }
298046
public function getCloudStorage(): ?Cloud
    {
        if (!$this->hasCloudStorage()) {
            $this->setCloudStorage($this->getDefaultCloudStorage());
        }
        return $this->cloudStorage;
    }
835451
public static function getInstance()
  {
    if (!isset(self::$instance)) {
      self::$instance = new self;
    }
    self::$instance->startSession();
    return self::$instance;
  }