DependencyInjection/ContainerInjectionManager.php
public function inject(ContainerBuilder $container)
    {
        foreach ($this->schema as $parameter) {

            $value = $parameter['default'];

            if ($this->parametersStorage->has($parameter['key'])) {
                $value = $this->parametersStorage->get($parameter['key']);
            }

            $container->setParameter($this->getParametersName($parameter['key']), $this->protectParameterValue($value));
        }
    }
public function inject(ContainerBuilder $container)
    {
        foreach ($this->schema as $parameter) {

            $value = $parameter['default'];

            if ($this->parametersStorage->has($parameter['key'])) {
                $value = $this->parametersStorage->get($parameter['key']);
            }

            $container->setParameter($this->getParametersName($parameter['key']), $this->protectParameterValue($value));
        }
    }
public function inject ( ContainerBuilder $ container ) { foreach ( $ this -> schema as $ parameter ) { $ value = $ parameter [ 'default' ] ; if ( $ this -> parametersStorage -> has ( $ parameter [ 'key' ] ) ) { $ value = $ this -> parametersStorage -> get ( $ parameter [ 'key' ] ) ; } $ container -> setParameter ( $ this -> getParametersName ( $ parameter [ 'key' ] ) , $ this -> protectParameterValue ( $ value ) ) ; } }
Inject dynamic parameters in the container builder

@param ContainerBuilder $container
Inject dynamic parameters in the container builder