public function import(array $data, $values = null, array &$imported = array())
    {
        if (false === isset($data['imports'])) {
            return $data;
        }

        $imports = $data['imports'];

        unset($data['imports']);

        foreach ($imports as $resource) {
            $data = array_replace_recursive(
                $this->get($resource, $values, $imported),
                $data
            );
        }

        return $data;
    }
public function import(array $data, $values = null, array &$imported = array())
    {
        if (false === isset($data['imports'])) {
            return $data;
        }

        $imports = $data['imports'];

        unset($data['imports']);

        foreach ($imports as $resource) {
            $data = array_replace_recursive(
                $this->get($resource, $values, $imported),
                $data
            );
        }

        return $data;
    }
public function import ( array $ data , $ values = null , array & $ imported = array ( ) ) { if ( false === isset ( $ data [ 'imports' ] ) ) { return $ data ; } $ imports = $ data [ 'imports' ] ; unset ( $ data [ 'imports' ] ) ; foreach ( $ imports as $ resource ) { $ data = array_replace_recursive ( $ this -> get ( $ resource , $ values , $ imported ) , $ data ) ; } return $ data ; }
Manages the "imports" directive in configuration files.

@param array        $data      The current data.
@param array|object $values    The new replacement values.
@param array        &$imported The list of imported resources.

@return array The data merged with the imported resources.

@throws LogicException If a circular reference is detected.
Manages the imports directive in configuration files .