public function unbindService($runlevel, $name)
    {

        // stop the service instance
        $this->runlevels[$runlevel][$name]->stop();

        // unbind the service from the naming directory
        $this->getNamingDirectory()->unbind(sprintf('php:services/%s/%s', $this->runlevelToString($runlevel), $name));

        // unset the service instance
        unset($this->runlevels[$runlevel][$name]);

        // print a message that the service has been stopped
        $this->getSystemLogger()->info(sprintf('Successfully stopped service %s', $name));
    }
public function unbindService($runlevel, $name)
    {

        // stop the service instance
        $this->runlevels[$runlevel][$name]->stop();

        // unbind the service from the naming directory
        $this->getNamingDirectory()->unbind(sprintf('php:services/%s/%s', $this->runlevelToString($runlevel), $name));

        // unset the service instance
        unset($this->runlevels[$runlevel][$name]);

        // print a message that the service has been stopped
        $this->getSystemLogger()->info(sprintf('Successfully stopped service %s', $name));
    }
public function unbindService ( $ runlevel , $ name ) { // stop the service instance $ this -> runlevels [ $ runlevel ] [ $ name ] -> stop ( ) ; // unbind the service from the naming directory $ this -> getNamingDirectory ( ) -> unbind ( sprintf ( 'php:services/%s/%s' , $ this -> runlevelToString ( $ runlevel ) , $ name ) ) ; // unset the service instance unset ( $ this -> runlevels [ $ runlevel ] [ $ name ] ) ; // print a message that the service has been stopped $ this -> getSystemLogger ( ) -> info ( sprintf ( 'Successfully stopped service %s' , $ name ) ) ; }
Unbind the service with the passed name and runlevel.

@param integer $runlevel The runlevel of the service
@param string  $name     The name of the service

@return void
Unbind the service with the passed name and runlevel .