protected function parseImports(array $content, $resource)
    {
        if (isset($content['imports'])) {
            $chdir = dirname($resource);

            foreach ($content['imports'] as $import) {
                self::addFile($chdir . DIRECTORY_SEPARATOR . $import['resource'], $resource);
            }

            unset($content['imports']);
        }

        return $content;
    }
protected function parseImports(array $content, $resource)
    {
        if (isset($content['imports'])) {
            $chdir = dirname($resource);

            foreach ($content['imports'] as $import) {
                self::addFile($chdir . DIRECTORY_SEPARATOR . $import['resource'], $resource);
            }

            unset($content['imports']);
        }

        return $content;
    }
protected function parseImports ( array $ content , $ resource ) { if ( isset ( $ content [ 'imports' ] ) ) { $ chdir = dirname ( $ resource ) ; foreach ( $ content [ 'imports' ] as $ import ) { self :: addFile ( $ chdir . DIRECTORY_SEPARATOR . $ import [ 'resource' ] , $ resource ) ; } unset ( $ content [ 'imports' ] ) ; } return $ content ; }
Parses the imports section of a resource and includes them.

@param array  $content
@param string $resource

@return array
Parses the imports section of a resource and includes them .