Skip to content

Commit 71bc1df

Browse files
committed
Mention option in docs
1 parent ba75d27 commit 71bc1df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,14 @@ autoDI:
136136
- %appDir%
137137
- %appDir%/../vendor
138138
```
139+
140+
## Register services on configuration
141+
142+
Compiler extensions such as AutoDIExtension manipulates the DI container
143+
in two phases (configuration loading and before compilation).
144+
By default this extension registers all services before compilation.
145+
This may not be optimal if you wan't to use this extension with other extensions
146+
such as decorator.
147+
148+
You can enforce registration in configuration phase
149+
by setting `registerOnConfiguration` option to true.

0 commit comments

Comments
 (0)