PPI\Framework\Config\Loader\YamlFileLoader::parseImports PHP Метод

parseImports() защищенный Метод

Parses all imports. We support this to make Symfony users happy.
protected parseImports ( array $content, string $file ) : array
$content array
$file string
Результат array
    protected function parseImports($content, $file)
    {
        if (!isset($content['imports'])) {
            return $content;
        }
        foreach ($content['imports'] as $import) {
            $this->setCurrentDir(dirname($file));
            $content = ArrayUtils::merge($this->import($import['resource'], null, isset($import['ignore_errors']) ? (bool) $import['ignore_errors'] : false, $file), $content);
        }
        unset($content['imports']);
        return $content;
    }