reader = $reader; $this->deploymentConfig = $deploymentConfig; $this->configType = $configType; } /** * Return whole config data from config file for specified config type. * Ignore $path argument due to config source must return all config data * * @param string $path * @return array * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function get($path = '') { /** * Magento store configuration should not be read from file source if database is available * * @see \Magento\Store\Model\Config\Importer To import store configs */ if ($this->deploymentConfig->isAvailable()) { return []; } return $this->reader->load()[$this->configType] ?? []; } }