Source/Loader/LoaderFactory.php
public function newInstance()
    {
        // Set the file locators in each loader instance.
        foreach($this->loaders as $loader) {
            if(false === $loader instanceof LoaderInterface) {
                throw new \InvalidArgumentException("Loaders must implement Affiniti\Config\Loader\LoaderInterface.");
            }
            
            $loader->setLocator($this->fileLocator);
        }
        
        return new DelegatingLoader(new LoaderResolver($this->loaders));
    }
public function newInstance()
    {
        // Set the file locators in each loader instance.
        foreach($this->loaders as $loader) {
            if(false === $loader instanceof LoaderInterface) {
                throw new \InvalidArgumentException("Loaders must implement Affiniti\Config\Loader\LoaderInterface.");
            }
            
            $loader->setLocator($this->fileLocator);
        }
        
        return new DelegatingLoader(new LoaderResolver($this->loaders));
    }
public function newInstance ( ) { // Set the file locators in each loader instance. foreach ( $ this -> loaders as $ loader ) { if ( false === $ loader instanceof LoaderInterface ) { throw new \ InvalidArgumentException ( "Loaders must implement Affiniti\Config\Loader\LoaderInterface." ) ; } $ loader -> setLocator ( $ this -> fileLocator ) ; } return new DelegatingLoader ( new LoaderResolver ( $ this -> loaders ) ) ; }
Returns a new DelegatingLoader which allows multiple loaders to be managed.

@return \Symfony\Component\Config\Loader\DelegatingLoader
The DelegatingLoader which contains all other defined loaders.

@throws \InvalidArgumentException
Returns a new DelegatingLoader which allows multiple loaders to be managed .