/** * @return StorageInterface */ public function getStorage(StorageSelection $selection) { if (!isset($this->storageCache[$selection])) { $provider = $this->get($selection->getProviderId()); $storage = $provider->storage($selection); $this->storageCache[$selection] = $storage; } return $this->storageCache[$selection]; }