public function getRuleProviderDefault() : RuleProviderInterface
    {
        $container = Dependency::container();
        return $container->has('validate') ? $container->get('validate') : Validate::getInstance();
    }
public function getRuleProviderDefault() : RuleProviderInterface
    {
        $container = Dependency::container();
        return $container->has('validate') ? $container->get('validate') : Validate::getInstance();
    }
public function getRuleProviderDefault ( ) : RuleProviderInterface { $ container = Dependency :: container ( ) ; return $ container -> has ( 'validate' ) ? $ container -> get ( 'validate' ) : Validate :: getInstance ( ) ; }
Get default rule provider from dependency injection container
or first instance of the Validate class.

@uses-dependency-container validate

@return RuleProviderInterface
Get default rule provider from dependency injection container or first instance of the Validate class .