Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge 91eeaa8 into 1177ce5
Browse files Browse the repository at this point in the history
  • Loading branch information
tux-rampage committed Nov 16, 2017
2 parents 1177ce5 + 91eeaa8 commit d0544c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/book/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The configuration array respects the following keys (unknown keys are ignored):
declared in the constructor method of the associated class name. See the
[Parameters](#parameters) section below for details.

- `aliasOf`: String that contains a class name. It declares that the
- `typeOf`: String that contains a class name. It declares that the
associated key is an alias of the given class name. This class must exist.
It cannot not be another alias.

Expand Down Expand Up @@ -61,7 +61,7 @@ $config = new \Zend\Di\Config([

// Define an alias
'Alias.Name' => [
'aliasOf' => ClassName::class,
'typeOf' => ClassName::class,

'preferences' => [],
'parameters' => [],
Expand All @@ -81,7 +81,7 @@ The resolver will look up the name finally passed to the container in the
following way (the first match will be used):

1. The preference defined in the type configuration of the class if it satifies
the typehint (implements, extends, or aliasOf).
the typehint (implements, extends, or typeOf).
2. If there is a global preference defined and it satisfies the typehint.
3. Use the typehinted name directly.

Expand Down

0 comments on commit d0544c3

Please sign in to comment.