Bolt\Configuration\ResourceManager::useLoader PHP Method

useLoader() public method

public useLoader ( Composer\Autoload\ClassLoader $loader ) : Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface
$loader Composer\Autoload\ClassLoader
return Eloquent\Pathogen\RelativePathInterface | Eloquent\Pathogen\AbsolutePathInterface
    public function useLoader(ClassLoader $loader)
    {
        $this->classLoader = $loader;
        $loaderPath = dirname($loader->findFile('Composer\\Autoload\\ClassLoader'));
        // Remove last vendor/* off loaderPath to get our root path
        list($rootPath) = explode('vendor', $loaderPath, -1);
        return $this->setPath('root', $rootPath);
    }