public function hasComponent($name)
    {
        $className = $this->resolve($name);
        if (!$className) {
            return false;
        }

        return isset($this->classMap[$className]);
    }
public function hasComponent($name)
    {
        $className = $this->resolve($name);
        if (!$className) {
            return false;
        }

        return isset($this->classMap[$className]);
    }
public function hasComponent ( $ name ) { $ className = $ this -> resolve ( $ name ) ; if ( ! $ className ) { return false ; } return isset ( $ this -> classMap [ $ className ] ) ; }
Checks to see if a component has been registered.
@param string $name A component class name or code.
@return bool Returns true if the component is registered, otherwise false.
Checks to see if a component has been registered .