public static function getBool(string $key, bool $defaultValue = false, ?string $app = null): bool
    {
        return self::repository($app)->getBool($key, $defaultValue);
    }
public static function getBool(string $key, bool $defaultValue = false, ?string $app = null): bool
    {
        return self::repository($app)->getBool($key, $defaultValue);
    }
public static function getBool ( string $ key , bool $ defaultValue = false , ? string $ app = null ) : bool { return self :: repository ( $ app ) -> getBool ( $ key , $ defaultValue ) ; }
Get boolean.

@param string $key
@param bool $defaultValue Default false.
@param string $app Default null which means default app '*'.
@return bool
@throws ConfigException
Get boolean .