public function bindService($runlevel, $service)
    {

        // bind the service to the runlevel
        $this->runlevels[$runlevel][$service->getName()] = $service;

        // bind the service callback to the naming directory
        $this->getNamingDirectory()->bindCallback(
            sprintf('php:services/%s/%s', $this->runlevelToString($runlevel), $service->getName()),
            array(&$this, 'getService'),
            array($runlevel, $service->getName())
        );
    }
public function bindService($runlevel, $service)
    {

        // bind the service to the runlevel
        $this->runlevels[$runlevel][$service->getName()] = $service;

        // bind the service callback to the naming directory
        $this->getNamingDirectory()->bindCallback(
            sprintf('php:services/%s/%s', $this->runlevelToString($runlevel), $service->getName()),
            array(&$this, 'getService'),
            array($runlevel, $service->getName())
        );
    }
public function bindService ( $ runlevel , $ service ) { // bind the service to the runlevel $ this -> runlevels [ $ runlevel ] [ $ service -> getName ( ) ] = $ service ; // bind the service callback to the naming directory $ this -> getNamingDirectory ( ) -> bindCallback ( sprintf ( 'php:services/%s/%s' , $ this -> runlevelToString ( $ runlevel ) , $ service -> getName ( ) ) , array ( & $ this , 'getService' ) , array ( $ runlevel , $ service -> getName ( ) ) ) ; }
Binds the passed service to the runlevel.

@param integer $runlevel The runlevel to bound the service to
@param object  $service  The service to bound

@return void
Binds the passed service to the runlevel .