Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServiceLocator.php

function ServiceLocator::withContext

@internal

File

vendor/symfony/dependency-injection/ServiceLocator.php, line 71

Class

ServiceLocator
@author Robin Chalas <robin.chalas@gmail.com> @author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection

Code

public function withContext(string $externalId, Container $container) : static {
    $locator = clone $this;
    $locator->externalId = $externalId;
    $locator->container = $container;
    return $locator;
}
RSS feed
Powered by Drupal