private static function registerCollectorsFromConfig(
        ContainerInterface $container,
        ProfilerContract $profiler,
        array $options
    ): void {
        if ($collectors = $options['collectors']) {
            foreach ($collectors as $collector) {
                $profiler->addCollector($container->get($collector));
            }
        }
    }
private static function registerCollectorsFromConfig(
        ContainerInterface $container,
        ProfilerContract $profiler,
        array $options
    ): void {
        if ($collectors = $options['collectors']) {
            foreach ($collectors as $collector) {
                $profiler->addCollector($container->get($collector));
            }
        }
    }
private static function registerCollectorsFromConfig ( ContainerInterface $ container , ProfilerContract $ profiler , array $ options ) : void { if ( $ collectors = $ options [ 'collectors' ] ) { foreach ( $ collectors as $ collector ) { $ profiler -> addCollector ( $ container -> get ( $ collector ) ) ; } } }
Register all found collectors in config.

@param \Psr\Container\ContainerInterface             $container
@param \Viserio\Component\Contract\Profiler\Profiler $profiler
@param array                                         $options

@return void
Register all found collectors in config .