DependencyInjection/BridgeExtension.php
private function generateActions(array $actions, $parentId, Definition $parent, ContainerBuilder $container)
    {
        foreach ($actions as $actionName => $action) {
            $actionId = $parentId.'.'.$actionName;

            $actionDefinition = $this->createComponentDefinition($actionName, $action['class'], $action['options']);
            $actionDefinition->addMethodCall('setGroup', array(new Reference($parentId)));

            $container->setDefinition($actionId, $actionDefinition);

            $parent->addMethodCall('addAction', array(new Reference($actionId)));
        }
    }
private function generateActions(array $actions, $parentId, Definition $parent, ContainerBuilder $container)
    {
        foreach ($actions as $actionName => $action) {
            $actionId = $parentId.'.'.$actionName;

            $actionDefinition = $this->createComponentDefinition($actionName, $action['class'], $action['options']);
            $actionDefinition->addMethodCall('setGroup', array(new Reference($parentId)));

            $container->setDefinition($actionId, $actionDefinition);

            $parent->addMethodCall('addAction', array(new Reference($actionId)));
        }
    }
private function generateActions ( array $ actions , $ parentId , Definition $ parent , ContainerBuilder $ container ) { foreach ( $ actions as $ actionName => $ action ) { $ actionId = $ parentId . '.' . $ actionName ; $ actionDefinition = $ this -> createComponentDefinition ( $ actionName , $ action [ 'class' ] , $ action [ 'options' ] ) ; $ actionDefinition -> addMethodCall ( 'setGroup' , array ( new Reference ( $ parentId ) ) ) ; $ container -> setDefinition ( $ actionId , $ actionDefinition ) ; $ parent -> addMethodCall ( 'addAction' , array ( new Reference ( $ actionId ) ) ) ; } }
Generates service definitions for actions associated to service groups.

@param array            $actions   Actions
@param string           $parentId  Parent component ID
@param Definition       $parent    Parent definition
@param ContainerBuilder $container Container builder
Generates service definitions for actions associated to service groups .