protected function addConsumer(ArrayNodeDefinition $node)
    {
        $consumerChildren = $node
            ->children()
                ->arrayNode('consumer')
                ->addDefaultsIfNotSet()
                    ->children();

        $general = $consumerChildren
                        ->arrayNode('general');
        $this->addGeneralConsumerConfiguration($general);

        $individualPrototype = $consumerChildren
                        ->arrayNode('individual')
                            ->useAttributeAsKey('consumer')
                            ->prototype('array');
        $this->addIndividualConsumerConfiguration($individualPrototype);
    }
protected function addConsumer(ArrayNodeDefinition $node)
    {
        $consumerChildren = $node
            ->children()
                ->arrayNode('consumer')
                ->addDefaultsIfNotSet()
                    ->children();

        $general = $consumerChildren
                        ->arrayNode('general');
        $this->addGeneralConsumerConfiguration($general);

        $individualPrototype = $consumerChildren
                        ->arrayNode('individual')
                            ->useAttributeAsKey('consumer')
                            ->prototype('array');
        $this->addIndividualConsumerConfiguration($individualPrototype);
    }
protected function addConsumer ( ArrayNodeDefinition $ node ) { $ consumerChildren = $ node -> children ( ) -> arrayNode ( 'consumer' ) -> addDefaultsIfNotSet ( ) -> children ( ) ; $ general = $ consumerChildren -> arrayNode ( 'general' ) ; $ this -> addGeneralConsumerConfiguration ( $ general ) ; $ individualPrototype = $ consumerChildren -> arrayNode ( 'individual' ) -> useAttributeAsKey ( 'consumer' ) -> prototype ( 'array' ) ; $ this -> addIndividualConsumerConfiguration ( $ individualPrototype ) ; }
Add general and individual consumer configuration

@param ArrayNodeDefinition $node
Add general and individual consumer configuration