function MockContainerAware::setContainer

Same name in this branch
  1. 10 core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\MockContainerAware::setContainer()

Sets the service container.

File

core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php, line 245

Class

MockContainerAware

Namespace

Drupal\Tests\Core\Controller

Code

public function setContainer(?ContainerInterface $container) : void {
    $this->container = $container;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.