protected function loadStatics(array $statics, ContainerBuilder $container)
    {
        foreach ($statics as $staticName => $static) {
            $container
                ->register(
                    'elcodi.sitemap_element_generator.static_' . $staticName,
                    'Elcodi\Component\Sitemap\Element\StaticSitemapElementGenerator'
                )
                ->addArgument(new Reference('elcodi.factory.sitemap_element'))
                ->addArgument(new Reference($static['transformer']))
                ->addArgument($staticName)
                ->addArgument($static['changeFrequency'])
                ->addArgument($static['priority'])
                ->setPublic(false);
        }

        return $this;
    }
protected function loadStatics(array $statics, ContainerBuilder $container)
    {
        foreach ($statics as $staticName => $static) {
            $container
                ->register(
                    'elcodi.sitemap_element_generator.static_' . $staticName,
                    'Elcodi\Component\Sitemap\Element\StaticSitemapElementGenerator'
                )
                ->addArgument(new Reference('elcodi.factory.sitemap_element'))
                ->addArgument(new Reference($static['transformer']))
                ->addArgument($staticName)
                ->addArgument($static['changeFrequency'])
                ->addArgument($static['priority'])
                ->setPublic(false);
        }

        return $this;
    }
protected function loadStatics ( array $ statics , ContainerBuilder $ container ) { foreach ( $ statics as $ staticName => $ static ) { $ container -> register ( 'elcodi.sitemap_element_generator.static_' . $ staticName , 'Elcodi\Component\Sitemap\Element\StaticSitemapElementGenerator' ) -> addArgument ( new Reference ( 'elcodi.factory.sitemap_element' ) ) -> addArgument ( new Reference ( $ static [ 'transformer' ] ) ) -> addArgument ( $ staticName ) -> addArgument ( $ static [ 'changeFrequency' ] ) -> addArgument ( $ static [ 'priority' ] ) -> setPublic ( false ) ; } return $ this ; }
Load statics.

@param array            $statics   Statics
@param ContainerBuilder $container Container

@return $this self Object
Load statics .