public function addManager(ManagerInterface $manager, ManagerNodeInterface $configuration)
    {

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

        // add the manager instance to the application
        $this->managers[$configuration->getName()] = $manager;
    }
public function addManager(ManagerInterface $manager, ManagerNodeInterface $configuration)
    {

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

        // add the manager instance to the application
        $this->managers[$configuration->getName()] = $manager;
    }
public function addManager ( ManagerInterface $ manager , ManagerNodeInterface $ configuration ) { // bind the manager callback to the naming directory => the application itself $ this -> getNamingDirectory ( ) -> bind ( sprintf ( 'php:global/%s/%s' , $ this -> getUniqueName ( ) , $ configuration -> getName ( ) ) , array ( & $ this , 'getManager' ) , array ( $ configuration -> getName ( ) ) ) ; // add the manager instance to the application $ this -> managers [ $ configuration -> getName ( ) ] = $ manager ; }
Injects manager instance and the configuration.

@param \AppserverIo\Psr\Application\ManagerInterface             $manager       A manager instance
@param \AppserverIo\Appserver\Core\Api\Node\ManagerNodeInterface $configuration The managers configuration

@return void
Injects manager instance and the configuration .