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

Breadcrumb

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

function ClosureLoader::supports

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

File

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

Class

ClosureLoader
ClosureLoader loads service definitions from a PHP closure.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

public function supports(mixed $resource, ?string $type = null) : bool {
    return $resource instanceof \Closure;
}

API Navigation

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