private function setupServiceProvidersAutoloader($inputDirectory, array $services)
    {
        //creates the autoloader
        $loader = new Loader();

        //setup default path when is not defined
        foreach ($services as $className => $path) {
            if (!$path) {
                $services[$className] = $inputDirectory . sprintf('%s.php', $className);
            }
        }
        $loader->registerClasses($services, true);

        $loader->register();
    }