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

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

Process the array for @include. We support this to make Zend users happy.
См. также: http://framework.zend.com/manual/2.0/en/modules/zend.config.reader.html#zend-config-reader-yaml
protected parseIncludes ( array $content, string $file ) : array
$content array
$file string
Результат array
    protected function parseIncludes(array $content, $file)
    {
        foreach ($content as $key => $value) {
            if (is_array($value)) {
                $content[$key] = $this->parseIncludes($value, $file);
            }
            if ('@include' === trim($key)) {
                $this->setCurrentDir(dirname($file));
                unset($content[$key]);
                $content = array_replace_recursive($content, $this->import($value, null, false, $file));
            }
        }
        return $content;
    }