/** * {@inheritdoc} */ public function load($resource, $type = null) { $paths = $this->getLocator()->locate($resource, null, false); if (empty($paths)) { throw new \Exception('Config resource "' . $resource . '" not found'); } $config = new Config(); foreach ((array) $paths as $path) { $config->addResource(new FileResource($path)); $this->processData($config, $this->read($path), $type); } return $config; }