Menu

## DefinitionNormalizer
in package

DefinitionNormalizer.php : 23

Turns raw definitions/definition helpers into definitions ready to be resolved or compiled.

##### Tags

author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Properties

$autowiring : Autowiring

#### Methods

__construct() : mixed
normalizeNestedDefinition() : mixed
  Normalize a definition that is nested in another one.
normalizeRootDefinition() : Definition
  Normalize a definition that is *not* nested in another one.

### Properties

#### $autowiring

DefinitionNormalizer.php : 26
`private Autowiring $autowiring`

### Methods

#### __construct()

DefinitionNormalizer.php : 25
`public __construct(Autowiring $autowiring) : mixed`

##### Parameters

$autowiring : Autowiring

#### normalizeNestedDefinition()

DefinitionNormalizer.php : 83

Normalize a definition that is nested in another one.

`public normalizeNestedDefinition(mixed $definition) : mixed`

##### Parameters

$definition : mixed

##### Tags

throws
  InvalidDefinition

#### normalizeRootDefinition()

DefinitionNormalizer.php : 40

Normalize a definition that is *not* nested in another one.

`public normalizeRootDefinition(mixed $definition, string $name[, array<string|int, string> $wildcardsReplacements = null ]) : Definition`

This is usually a definition declared at the root of a definition array.

##### Parameters

$definition : mixed
$name : string

  The definition name.

$wildcardsReplacements : array<string|int, string> = null

  Replacements for wildcard definitions.

##### Tags

throws
  InvalidDefinition

##### Return values

Definition

## Search results