Menu

## Autowiring
in

Autowiring.php : 15

Source of definitions for entries of the container.

##### Tags

author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Methods

autowire() : ObjectDefinition|null
  Autowire the given definition.

### Methods

#### autowire()

Autowiring.php : 22

Autowire the given definition.

`public autowire(string $name[, ObjectDefinition|null $definition = null ]) : ObjectDefinition|null`

##### Parameters

$name : string
$definition : ObjectDefinition|null = null

##### Tags

throws
  InvalidDefinition

  An invalid definition was found.

##### Return values

ObjectDefinition|null

## Search results