src/Resource/FileResource.php
private function import2Resource($import, array $imported_resources)
    {
        $resource = $this->createResource($import);

        if ($resource) {
            $imported_resources = $this->importResource($resource, $imported_resources);
        }

        return $imported_resources;
    }
private function import2Resource($import, array $imported_resources)
    {
        $resource = $this->createResource($import);

        if ($resource) {
            $imported_resources = $this->importResource($resource, $imported_resources);
        }

        return $imported_resources;
    }
Creates the resource from the import then imports it

@param array|string $import The string|array to be converted to a resource
@param array $imported_resources The array of imported resources

@return array The imported resources