private function registerDataCollector(ContainerBuilder $container): self
    {
        $container->register('contentful.delivery.data_collector', ClientDataCollector::class)
            ->addArgument(new TaggedIteratorArgument('contentful.delivery.client'))
            ->addArgument(new Parameter('contentful.delivery.clients.info'))
            ->addTag('data_collector', [
                'id' => 'contentful.delivery',
                'template' => '@Contentful/Collector/contentful.html.twig',
                'priority' => '250',
            ])
        ;

        return $this;
    }
private function registerDataCollector(ContainerBuilder $container): self
    {
        $container->register('contentful.delivery.data_collector', ClientDataCollector::class)
            ->addArgument(new TaggedIteratorArgument('contentful.delivery.client'))
            ->addArgument(new Parameter('contentful.delivery.clients.info'))
            ->addTag('data_collector', [
                'id' => 'contentful.delivery',
                'template' => '@Contentful/Collector/contentful.html.twig',
                'priority' => '250',
            ])
        ;

        return $this;
    }
private function registerDataCollector ( ContainerBuilder $ container ) : self { $ container -> register ( 'contentful.delivery.data_collector' , ClientDataCollector :: class ) -> addArgument ( new TaggedIteratorArgument ( 'contentful.delivery.client' ) ) -> addArgument ( new Parameter ( 'contentful.delivery.clients.info' ) ) -> addTag ( 'data_collector' , [ 'id' => 'contentful.delivery' , 'template' => '@Contentful/Collector/contentful.html.twig' , 'priority' => '250' , ] ) ; return $ this ; }
Registers the data collector, which will display info about the configured clients
and the queries being made to the API.

@param ContainerBuilder $container

@return ContentfulExtension
Registers the data collector which will display info about the configured clients and the queries being made to the API .