DependencyInjection/SidusEAVDataGridExtension.php
protected function addDataGridServiceDefinition($code, array $dataGridConfiguration, ContainerBuilder $container)
    {
        $dataGridConfiguration = $this->finalizeConfiguration($code, $dataGridConfiguration, $container);

        $definition = new Definition(
            new Parameter('sidus_eav_data_grid.model.datagrid.class'),
            [
                $code,
                $dataGridConfiguration,
                new Reference('translator'),
            ]
        );
        $definition->addTag('sidus.datagrid');
        $definition->setPublic(false);
        $container->setDefinition('sidus_eav_data_grid.datagrid.'.$code, $definition);
    }
protected function addDataGridServiceDefinition($code, array $dataGridConfiguration, ContainerBuilder $container)
    {
        $dataGridConfiguration = $this->finalizeConfiguration($code, $dataGridConfiguration, $container);

        $definition = new Definition(
            new Parameter('sidus_eav_data_grid.model.datagrid.class'),
            [
                $code,
                $dataGridConfiguration,
                new Reference('translator'),
            ]
        );
        $definition->addTag('sidus.datagrid');
        $definition->setPublic(false);
        $container->setDefinition('sidus_eav_data_grid.datagrid.'.$code, $definition);
    }
protected function addDataGridServiceDefinition ( $ code , array $ dataGridConfiguration , ContainerBuilder $ container ) { $ dataGridConfiguration = $ this -> finalizeConfiguration ( $ code , $ dataGridConfiguration , $ container ) ; $ definition = new Definition ( new Parameter ( 'sidus_eav_data_grid.model.datagrid.class' ) , [ $ code , $ dataGridConfiguration , new Reference ( 'translator' ) , ] ) ; $ definition -> addTag ( 'sidus.datagrid' ) ; $ definition -> setPublic ( false ) ; $ container -> setDefinition ( 'sidus_eav_data_grid.datagrid.' . $ code , $ definition ) ; }
Add a new Filter service based on the configuration passed inside the datagrid

@param string           $code
@param array            $dataGridConfiguration
@param ContainerBuilder $container

@throws BadMethodCallException
@throws UnexpectedValueException
@throws InvalidArgumentException
Add a new Filter service based on the configuration passed inside the datagrid