protected function createSourceExtractors(
        InputInterface $input,
        OutputInterface $output,
        $config,
        CacheInterface $cachePool
    ) {
        // Remark: a plugin system would be really nice here, so others could simply hook themselves into the checking.
        $extractors = [];
        foreach ([
                'bower'     => AuthorExtractor\BowerAuthorExtractor::class,
                'composer'  => AuthorExtractor\ComposerAuthorExtractor::class,
                'packages'  => AuthorExtractor\NodeAuthorExtractor::class,
                'php-files' => AuthorExtractor\PhpDocAuthorExtractor::class,
            ] as $option => $class) {
            if ($input->getOption($option)) {
                $extractors[$option] = new $class($config, $output, $cachePool);
            }
        }

        return $extractors;
    }
protected function createSourceExtractors(
        InputInterface $input,
        OutputInterface $output,
        $config,
        CacheInterface $cachePool
    ) {
        // Remark: a plugin system would be really nice here, so others could simply hook themselves into the checking.
        $extractors = [];
        foreach ([
                'bower'     => AuthorExtractor\BowerAuthorExtractor::class,
                'composer'  => AuthorExtractor\ComposerAuthorExtractor::class,
                'packages'  => AuthorExtractor\NodeAuthorExtractor::class,
                'php-files' => AuthorExtractor\PhpDocAuthorExtractor::class,
            ] as $option => $class) {
            if ($input->getOption($option)) {
                $extractors[$option] = new $class($config, $output, $cachePool);
            }
        }

        return $extractors;
    }
protected function createSourceExtractors ( InputInterface $ input , OutputInterface $ output , $ config , CacheInterface $ cachePool ) { // Remark: a plugin system would be really nice here, so others could simply hook themselves into the checking. $ extractors = [ ] ; foreach ( [ 'bower' => AuthorExtractor \ BowerAuthorExtractor :: class , 'composer' => AuthorExtractor \ ComposerAuthorExtractor :: class , 'packages' => AuthorExtractor \ NodeAuthorExtractor :: class , 'php-files' => AuthorExtractor \ PhpDocAuthorExtractor :: class , ] as $ option => $ class ) { if ( $ input -> getOption ( $ option ) ) { $ extractors [ $ option ] = new $ class ( $ config , $ output , $ cachePool ) ; } } return $ extractors ; }
Create all source extractors as specified on the command line.

@param InputInterface         $input     The input interface.
@param OutputInterface        $output    The output interface to use for logging.
@param Config                 $config    The configuration.
@param CacheInterface         $cachePool The cache.

@return AuthorExtractor[]
Create all source extractors as specified on the command line .