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

Breadcrumb

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

function ClosureLoader::load

Same name in this branch
  1. 11.1.x vendor/symfony/routing/Loader/ClosureLoader.php \Symfony\Component\Routing\Loader\ClosureLoader::load()

File

vendor/symfony/dependency-injection/Loader/ClosureLoader.php, line 33

Class

ClosureLoader
ClosureLoader loads service definitions from a PHP closure.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function load(mixed $resource, ?string $type = null) : mixed {
    return $resource($this->container, $this->env);
}

API Navigation

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