protected function configureLoader(LoaderInterface $loader)
    {
        if ($loader instanceof Base) {
            $loader->setORM($this->getORM());
            if ($this->logger) {
                $loader->setLogger($this->logger);
            }
        }
        if (is_callable(array($loader, 'addProvider'))) { // new in Alice 1.7.2
            $loader->addProvider($this->providers);
        } else { // BC path
            $loader->setProviders($this->providers);
        }
    }
protected function configureLoader(LoaderInterface $loader)
    {
        if ($loader instanceof Base) {
            $loader->setORM($this->getORM());
            if ($this->logger) {
                $loader->setLogger($this->logger);
            }
        }
        if (is_callable(array($loader, 'addProvider'))) { // new in Alice 1.7.2
            $loader->addProvider($this->providers);
        } else { // BC path
            $loader->setProviders($this->providers);
        }
    }
protected function configureLoader ( LoaderInterface $ loader ) { if ( $ loader instanceof Base ) { $ loader -> setORM ( $ this -> getORM ( ) ) ; if ( $ this -> logger ) { $ loader -> setLogger ( $ this -> logger ) ; } } if ( is_callable ( array ( $ loader , 'addProvider' ) ) ) { // new in Alice 1.7.2 $ loader -> addProvider ( $ this -> providers ) ; } else { // BC path $ loader -> setProviders ( $ this -> providers ) ; } }
Sets all needed options and dependencies to a loader.

@param LoaderInterface $loader
Sets all needed options and dependencies to a loader .