src/Autoloader.php
public function importComposerAutoloaderConfiguration(string $composer_vendor_dir)
    {
        $cdir = $composer_vendor_dir . DIRECTORY_SEPARATOR . 'composer';
        $psr0 = $cdir . DIRECTORY_SEPARATOR . 'autoload_psr0.php';
        if (file_exists($psr0))
        {
            $namespaces = include($psr0);
            foreach ($namespaces as $ns => $paths)
                foreach ($paths as $path)
                    $this->registerNS($ns, $path, Autoloader::PSR0);
        }

        $psr4 = $cdir . DIRECTORY_SEPARATOR . 'autoload_psr4.php';
        if (file_exists($psr4))
        {
            $namespaces = include($psr4);
            foreach ($namespaces as $ns => $paths)
                foreach ($paths as $path)
                    $this->registerNS($ns, $path, Autoloader::PSR4);
        }
    }
public function importComposerAutoloaderConfiguration(string $composer_vendor_dir)
    {
        $cdir = $composer_vendor_dir . DIRECTORY_SEPARATOR . 'composer';
        $psr0 = $cdir . DIRECTORY_SEPARATOR . 'autoload_psr0.php';
        if (file_exists($psr0))
        {
            $namespaces = include($psr0);
            foreach ($namespaces as $ns => $paths)
                foreach ($paths as $path)
                    $this->registerNS($ns, $path, Autoloader::PSR0);
        }

        $psr4 = $cdir . DIRECTORY_SEPARATOR . 'autoload_psr4.php';
        if (file_exists($psr4))
        {
            $namespaces = include($psr4);
            foreach ($namespaces as $ns => $paths)
                foreach ($paths as $path)
                    $this->registerNS($ns, $path, Autoloader::PSR4);
        }
    }
Import the configuration from the Composer autoloader, by specifying the
class name of the Composer Autoloader. This is used to locate the
composer folder, which contains files autoload_psr0.ph and/or
autoload_psr4.php which return an array of namespace -> path mappings,
which are then registered in the Wedeto Autoloader.

@param string $composer_loader_class The fully qualified class name of
the Composer class loader.