public function process(ContainerBuilder $container)
    {
        $taggedServices = $container->findTaggedServiceIds('ongr_cookie.cookie');
        $injectorDefinition = $container->getDefinition('ongr_cookie.injector');

        foreach ($taggedServices as $id => $tagAttributes) {
            $injectorDefinition->addMethodCall('addCookieModel', [new Reference($id)]);
        }
    }
public function process(ContainerBuilder $container)
    {
        $taggedServices = $container->findTaggedServiceIds('ongr_cookie.cookie');
        $injectorDefinition = $container->getDefinition('ongr_cookie.injector');

        foreach ($taggedServices as $id => $tagAttributes) {
            $injectorDefinition->addMethodCall('addCookieModel', [new Reference($id)]);
        }
    }
public function process ( ContainerBuilder $ container ) { $ taggedServices = $ container -> findTaggedServiceIds ( 'ongr_cookie.cookie' ) ; $ injectorDefinition = $ container -> getDefinition ( 'ongr_cookie.injector' ) ; foreach ( $ taggedServices as $ id => $ tagAttributes ) { $ injectorDefinition -> addMethodCall ( 'addCookieModel' , [ new Reference ( $ id ) ] ) ; } }
Finds all services tagged with 'cookie' tag and adds them to cookie factory.

@param ContainerBuilder $container
Finds all services tagged with cookie tag and adds them to cookie factory .