PhpSpec\Console\Application::registerCustomMatchers PHP Method

registerCustomMatchers() private method

private registerCustomMatchers ( IndexedServiceContainer $container, array $matchersClassnames )
$container PhpSpec\ServiceContainer\IndexedServiceContainer
$matchersClassnames array
    private function registerCustomMatchers(IndexedServiceContainer $container, array $matchersClassnames)
    {
        foreach ($matchersClassnames as $class) {
            $this->ensureIsValidMatcherClass($class);
            $container->define(sprintf('matchers.%s', $class), function () use($class) {
                return new $class();
            }, ['matchers']);
        }
    }