public function getLoader()
    {
        if (null === $this->loader) {
            $locator  = new FileLocator($this->paths);
            $resolver = new LoaderResolver(array(
                new YamlFileLoader($locator),
                new PhpFileLoader($locator),
                new IniFileLoader($locator),
                new ArrayLoader(),
            ));

            $this->loader = new DelegatingLoader($resolver);
        }

        return $this->loader;
    }
public function getLoader()
    {
        if (null === $this->loader) {
            $locator  = new FileLocator($this->paths);
            $resolver = new LoaderResolver(array(
                new YamlFileLoader($locator),
                new PhpFileLoader($locator),
                new IniFileLoader($locator),
                new ArrayLoader(),
            ));

            $this->loader = new DelegatingLoader($resolver);
        }

        return $this->loader;
    }
public function getLoader ( ) { if ( null === $ this -> loader ) { $ locator = new FileLocator ( $ this -> paths ) ; $ resolver = new LoaderResolver ( array ( new YamlFileLoader ( $ locator ) , new PhpFileLoader ( $ locator ) , new IniFileLoader ( $ locator ) , new ArrayLoader ( ) , ) ) ; $ this -> loader = new DelegatingLoader ( $ resolver ) ; } return $ this -> loader ; }
Returns a loader to handle config loading.

@return DelegatingLoader The loader
Returns a loader to handle config loading .