protected function loadBuilders(array $builders, ContainerBuilder $container)
    {
        foreach ($builders as $builderName => $builder) {
            $definition = $container
                ->register(
                    'elcodi.sitemap_builder.' . $builderName,
                    'Elcodi\Component\Sitemap\Builder\SitemapBuilder'
                )
                ->addArgument(new Reference($builder['renderer']))
                ->addArgument($builder['path'])
                ->setPublic(true);

            $this
                ->addBuilderElements(
                    $definition,
                    $builder['statics'],
                    'static'
                )
                ->addBuilderElements(
                    $definition,
                    $builder['blocks'],
                    'entity'
                );
        }

        return $this;
    }
protected function loadBuilders(array $builders, ContainerBuilder $container)
    {
        foreach ($builders as $builderName => $builder) {
            $definition = $container
                ->register(
                    'elcodi.sitemap_builder.' . $builderName,
                    'Elcodi\Component\Sitemap\Builder\SitemapBuilder'
                )
                ->addArgument(new Reference($builder['renderer']))
                ->addArgument($builder['path'])
                ->setPublic(true);

            $this
                ->addBuilderElements(
                    $definition,
                    $builder['statics'],
                    'static'
                )
                ->addBuilderElements(
                    $definition,
                    $builder['blocks'],
                    'entity'
                );
        }

        return $this;
    }
protected function loadBuilders ( array $ builders , ContainerBuilder $ container ) { foreach ( $ builders as $ builderName => $ builder ) { $ definition = $ container -> register ( 'elcodi.sitemap_builder.' . $ builderName , 'Elcodi\Component\Sitemap\Builder\SitemapBuilder' ) -> addArgument ( new Reference ( $ builder [ 'renderer' ] ) ) -> addArgument ( $ builder [ 'path' ] ) -> setPublic ( true ) ; $ this -> addBuilderElements ( $ definition , $ builder [ 'statics' ] , 'static' ) -> addBuilderElements ( $ definition , $ builder [ 'blocks' ] , 'entity' ) ; } return $ this ; }
Load builders.

@param array            $builders  Builders
@param ContainerBuilder $container Container

@return $this self Object
Load builders .