public function importMap (string $basePath, array $dependencyMap) : void
    {
        $basePath = rtrim($basePath, "/");

        foreach ($dependencyMap as $file => $dependencies)
        {
            foreach ($dependencies as $dependency)
            {
                if ("js" === pathinfo($dependency, PATHINFO_EXTENSION))
                {
                    $this->dependencyMap["{$basePath}/{$file}.js"][] = "{$basePath}/{$dependency}";
                }
            }
        }
    }
public function importMap (string $basePath, array $dependencyMap) : void
    {
        $basePath = rtrim($basePath, "/");

        foreach ($dependencyMap as $file => $dependencies)
        {
            foreach ($dependencies as $dependency)
            {
                if ("js" === pathinfo($dependency, PATHINFO_EXTENSION))
                {
                    $this->dependencyMap["{$basePath}/{$file}.js"][] = "{$basePath}/{$dependency}";
                }
            }
        }
    }
public function importMap ( string $ basePath , array $ dependencyMap ) : void { $ basePath = rtrim ( $ basePath , "/" ) ; foreach ( $ dependencyMap as $ file => $ dependencies ) { foreach ( $ dependencies as $ dependency ) { if ( "js" === pathinfo ( $ dependency , PATHINFO_EXTENSION ) ) { $ this -> dependencyMap [ "{$basePath}/{$file}.js" ] [ ] = "{$basePath}/{$dependency}" ; } } } }
Imports dependencies from the given map

@param string $basePath
@param array  $dependencyMap
Imports dependencies from the given map