src/DrupalExtension/Context/ServiceContainerContext.php
public function overrideParameters(array $parameters) {
    $this->setServiceProvider();

    // Cast service parameters.
    foreach ($parameters as $name => $value) {
      $parameters[$name] = $this->castParameter($value);
    }

    \Drupal::state()->set('nuvole_web.drupal_extension.parameter_overrides', $parameters);
    \Drupal::service('kernel')->rebuildContainer();
  }
public function overrideParameters(array $parameters) {
    $this->setServiceProvider();

    // Cast service parameters.
    foreach ($parameters as $name => $value) {
      $parameters[$name] = $this->castParameter($value);
    }

    \Drupal::state()->set('nuvole_web.drupal_extension.parameter_overrides', $parameters);
    \Drupal::service('kernel')->rebuildContainer();
  }
public function overrideParameters ( array $ parameters ) { $ this -> setServiceProvider ( ) ; // Cast service parameters. foreach ( $ parameters as $ name => $ value ) { $ parameters [ $ name ] = $ this -> castParameter ( $ value ) ; } \ Drupal :: state ( ) -> set ( 'nuvole_web.drupal_extension.parameter_overrides' , $ parameters ) ; \ Drupal :: service ( 'kernel' ) -> rebuildContainer ( ) ; }
Apply parameters overrides and rebuild container.

@param array $parameters
List of parameters to be overridden.
Apply parameters overrides and rebuild container .