Robo\Robo::hasService PHP 메소드

hasService() 공개 정적인 메소드

Indicates if a service is defined in the container.
public static hasService ( string $id ) : boolean
$id string The ID of the service to check.
리턴 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);
    }