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

Breadcrumb

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

function PhpDumper::initializeMethodNamesMap

Initializes the method names map to avoid conflicts with the Container methods.

1 call to PhpDumper::initializeMethodNamesMap()
PhpDumper::dump in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
Dumps the service container as a PHP class.

File

vendor/symfony/dependency-injection/Dumper/PhpDumper.php, line 2087

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function initializeMethodNamesMap(string $class) : void {
    $this->serviceIdToMethodNameMap = [];
    $this->usedMethodNames = [];
    if ($reflectionClass = $this->container
        ->getReflectionClass($class)) {
        foreach ($reflectionClass->getMethods() as $method) {
            $this->usedMethodNames[strtolower($method->getName())] = true;
        }
    }
}
RSS feed
Powered by Drupal