public static function addPsr4($paths)
    {
        $loader = new ClassLoader();

        foreach ($paths as $namespace => $path) {
            $loader->addPsr4($namespace, $path);
        }

        $loader->register();
    }
public static function addPsr4($paths)
    {
        $loader = new ClassLoader();

        foreach ($paths as $namespace => $path) {
            $loader->addPsr4($namespace, $path);
        }

        $loader->register();
    }
public static function addPsr4 ( $ paths ) { $ loader = new ClassLoader ( ) ; foreach ( $ paths as $ namespace => $ path ) { $ loader -> addPsr4 ( $ namespace , $ path ) ; } $ loader -> register ( ) ; }
Tool to register Psr4 'namespaces vs paths'.

@param array $paths a pairs of namespace and path to register
Tool to register Psr4 namespaces vs paths .