public function addProvisioner(ProvisionerInterface $provisioner, ProvisionerConfigurationInterface $configuration)
    {

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

        // add the provisioner instance to the application
        $this->provisioners[$configuration->getName()] = $provisioner;
    }
public function addProvisioner(ProvisionerInterface $provisioner, ProvisionerConfigurationInterface $configuration)
    {

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

        // add the provisioner instance to the application
        $this->provisioners[$configuration->getName()] = $provisioner;
    }
public function addProvisioner ( ProvisionerInterface $ provisioner , ProvisionerConfigurationInterface $ configuration ) { // bind the provisioner callback to the naming directory => the application itself $ this -> getNamingDirectory ( ) -> bind ( sprintf ( 'php:global/%s/%s' , $ this -> getUniqueName ( ) , $ configuration -> getName ( ) ) , array ( & $ this , 'getProvisioner' ) , array ( $ configuration -> getName ( ) ) ) ; // add the provisioner instance to the application $ this -> provisioners [ $ configuration -> getName ( ) ] = $ provisioner ; }
Injects the provisioner instance and the configuration.

@param \AppserverIo\Psr\Application\ProvisionerInterface                         $provisioner   A provisioner instance
@param \AppserverIo\Provisioning\Configuration\ProvisionerConfigurationInterface $configuration The provisioner configuration

@return void
Injects the provisioner instance and the configuration .