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

Breadcrumb

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

function ContainerConfigurator::withPath

File

vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php, line 88

Class

ContainerConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

public final function withPath(string $path) : static {
    $clone = clone $this;
    $clone->path = $clone->file = $path;
    $clone->loader
        ->setCurrentDir(\dirname($path));
    return $clone;
}
RSS feed
Powered by Drupal