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

Breadcrumb

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

function AutowireMethodOf::buildDefinition

Overrides AutowireCallable::buildDefinition

File

vendor/symfony/dependency-injection/Attribute/AutowireMethodOf.php, line 32

Class

AutowireMethodOf
Tells which method should be turned into a Closure based on the name of the parameter it's attached to.

Namespace

Symfony\Component\DependencyInjection\Attribute

Code

public function buildDefinition(mixed $value, ?string $type, \ReflectionParameter $parameter) : Definition {
    $value[1] = $parameter->name;
    return parent::buildDefinition($value, $type, $parameter);
}

API Navigation

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