public PatternMatchingService(ILogger <PatternMatchingService> logger, IWikiContentFactory wikiContentFactory, IWikiComponentFactory wikiComponentFactory, IMatchSpecificationProvider matchSpecificationProvider) { _logger = logger; _wikiContentFactory = wikiContentFactory; _wikiComponentFactory = wikiComponentFactory; _templateSpecifications = matchSpecificationProvider.GetTemplateSpecifications(); }
public MwParserApi(ILogger <MwParserApi> logger, IAstParser astTranslator, IWikiContentFactory wikiContentFactory, IWikiComponentFactory wikiComponentFactory) { _logger = logger; _astTranslator = astTranslator; _wikiContentFactory = wikiContentFactory; _wikiComponentFactory = wikiComponentFactory; _parser = new WikitextParser(); }