storageConfigurations = $storageConfigurations; } /** * Retrieve storage collector (which hold dynamic configurations) by its namespace * * @param string $namespace * @return FrontendStorageConfigurationInterface | bool * @throws LocalizedException */ public function get($namespace) { if (isset($this->storageConfigurations[$namespace])) { if (!$this->storageConfigurations[$namespace] instanceof FrontendStorageConfigurationInterface) { throw new LocalizedException( __(sprintf("Invalid pool type with namespace: %s", $namespace)) ); } } else { return false; } return $this->storageConfigurations[$namespace]; } }