public function addClassLoader(ClassLoaderInterface $classLoader, ClassLoaderNodeInterface $configuration)
    {

        // bind the class loader callback to the naming directory => the application itself
        $this->getNamingDirectory()->bind(sprintf('php:global/%s/%s', $this->getUniqueName(), $configuration->getName()), array(&$this, 'getClassLoader'), array($configuration->getName()));

        // add the class loader instance to the application
        $this->classLoaders[$configuration->getName()] = $classLoader;
    }
public function addClassLoader(ClassLoaderInterface $classLoader, ClassLoaderNodeInterface $configuration)
    {

        // bind the class loader callback to the naming directory => the application itself
        $this->getNamingDirectory()->bind(sprintf('php:global/%s/%s', $this->getUniqueName(), $configuration->getName()), array(&$this, 'getClassLoader'), array($configuration->getName()));

        // add the class loader instance to the application
        $this->classLoaders[$configuration->getName()] = $classLoader;
    }
public function addClassLoader ( ClassLoaderInterface $ classLoader , ClassLoaderNodeInterface $ configuration ) { // bind the class loader callback to the naming directory => the application itself $ this -> getNamingDirectory ( ) -> bind ( sprintf ( 'php:global/%s/%s' , $ this -> getUniqueName ( ) , $ configuration -> getName ( ) ) , array ( & $ this , 'getClassLoader' ) , array ( $ configuration -> getName ( ) ) ) ; // add the class loader instance to the application $ this -> classLoaders [ $ configuration -> getName ( ) ] = $ classLoader ; }
Injects an additional class loader.

@param \AppserverIo\Appserver\Core\Interfaces\ClassLoaderInterface   $classLoader   A class loader to put on the class loader stack
@param \AppserverIo\Appserver\Core\Api\Node\ClassLoaderNodeInterface $configuration The class loader's configuration

@return void
Injects an additional class loader .