public Config setMatcher(final Matcher matcher) {
        CommonHelper.assertNotNull("matcher", matcher);
        this.matchers.put(matcher.getClass().getSimpleName(), matcher);
        return this;
    }
<p>setMatcher.</p>

@param matcher a {@link Matcher} object
@return a {@link Config} object
pac4j-core/src/main/java/org/pac4j/core/config/Config.java