original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Sets all needed options and dependencies to a loader.
  
  @param LoaderInterface $loader
docstring_tokens: Sets all needed options and dependencies to a loader .