DependencyInjection/LLSSQSExtension.php
public function loadQueues(ContainerBuilder $container, array $config)
    {
        foreach ($config as $name => $attributes) {
            $container
                ->setDefinition(
                    self::getQueueServiceKey($name),
                    new Definition(
                        $container->getParameter('llssqs.model.queue.class'),
                        array(
                            new Reference(
                                LLSAWSExtension::getServiceServiceKey($attributes['service'])
                            ),
                            new Reference('llssqs.model.message.factory'),
                            $attributes['name']
                        )
                    )
                );
        }

        return $this;
    }
public function loadQueues(ContainerBuilder $container, array $config)
    {
        foreach ($config as $name => $attributes) {
            $container
                ->setDefinition(
                    self::getQueueServiceKey($name),
                    new Definition(
                        $container->getParameter('llssqs.model.queue.class'),
                        array(
                            new Reference(
                                LLSAWSExtension::getServiceServiceKey($attributes['service'])
                            ),
                            new Reference('llssqs.model.message.factory'),
                            $attributes['name']
                        )
                    )
                );
        }

        return $this;
    }
public function loadQueues ( ContainerBuilder $ container , array $ config ) { foreach ( $ config as $ name => $ attributes ) { $ container -> setDefinition ( self :: getQueueServiceKey ( $ name ) , new Definition ( $ container -> getParameter ( 'llssqs.model.queue.class' ) , array ( new Reference ( LLSAWSExtension :: getServiceServiceKey ( $ attributes [ 'service' ] ) ) , new Reference ( 'llssqs.model.message.factory' ) , $ attributes [ 'name' ] ) ) ) ; } return $ this ; }
Load queues from user configuration

@param ContainerBuilder $container SF2 Container Builder
@param array            $config    Configuration array

@return {$this}
Load queues from user configuration