Robo\Robo::hasService PHP Method

hasService() public static method

Indicates if a service is defined in the container.
public static hasService ( string $id ) : boolean
$id string The ID of the service to check.
return boolean TRUE if the specified service exists, FALSE otherwise.
    public static function hasService($id)
    {
        // Check hasContainer() first in order to always return a Boolean.
        return static::hasContainer() && static::getContainer()->has($id);
    }