public function remove($service)
    {
        if ($this->has($service)) {
            unset($this->container[$service]);
            return true;
        } else {
            trigger_error(sprintf(
                'Attempted to un-register non-existing service "%s"', $service
            ));

            return false;
        }
    }
public function remove($service)
    {
        if ($this->has($service)) {
            unset($this->container[$service]);
            return true;
        } else {
            trigger_error(sprintf(
                'Attempted to un-register non-existing service "%s"', $service
            ));

            return false;
        }
    }
public function remove ( $ service ) { if ( $ this -> has ( $ service ) ) { unset ( $ this -> container [ $ service ] ) ; return true ; } else { trigger_error ( sprintf ( 'Attempted to un-register non-existing service "%s"' , $ service ) ) ; return false ; } }
Removes a registered service

@param string $service
@throws \InvalidArgumentException if $service_name wasn't string
@return boolean Depending on success
Removes a registered service