protected function getRulesFactory(IContainer $container) : RulesFactory
    {
        return new RulesFactory(
            $this->ruleExtensionRegistry,
            $this->errorTemplateRegistry,
            $this->errorTemplateCompiler
        );
    }