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

Breadcrumb

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

function Container::load

Creates a service by requiring its factory file.

1 call to Container::load()
Container::getService in vendor/symfony/dependency-injection/Container.php
@internal

File

vendor/symfony/dependency-injection/Container.php, line 331

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

protected function load(string $file) : mixed {
    return require $file;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal