@@ -25,8 +25,8 @@ until you interact with the proxy in some way.
25
25
26
26
.. caution ::
27
27
28
- Lazy services do not support `final `_ classes. You can use ` Interface
29
- Proxifying `_ to work around this limitation.
28
+ Lazy services do not support `final `_ classes, but you can use
29
+ ` Interface Proxifying `_ to work around this limitation.
30
30
31
31
In PHP versions prior to 8.0 lazy services do not support parameters with
32
32
default values for built-in PHP classes (e.g. ``PDO ``).
@@ -105,10 +105,10 @@ Interface Proxifying
105
105
--------------------
106
106
107
107
Under the hood, proxies generated to lazily load services inherit from the class
108
- used by the service. But sometimes this is not possible at all (` final `_ classes
109
- can not be extended for example ) or not convenient.
108
+ used by the service. However, sometimes this is not possible at all (e.g. because
109
+ the class is ` final `_ and can not be extended) or not convenient.
110
110
111
- To workaround this limitation, you can configure a proxy to only implements
111
+ To workaround this limitation, you can configure a proxy to only implement
112
112
specific interfaces.
113
113
114
114
.. versionadded :: 4.2
@@ -164,17 +164,17 @@ specific interfaces.
164
164
};
165
165
166
166
The virtual `proxy `_ injected into other services will only implement the
167
- specified interfaces and will not extend the original service class allowing to
168
- lazy load service using `final `_ classes. You can configure the proxy to
169
- implement multiple interfaces by repeating the "proxy" tag .
167
+ specified interfaces and will not extend the original service class, allowing to
168
+ lazy load services using `final `_ classes. You can configure the proxy to
169
+ implement multiple interfaces by adding new "proxy" tags .
170
170
171
171
.. tip ::
172
172
173
- This features can also act as a " safe guard". Because the proxy does not
174
- extends the original class, only the methods defined by the interfaces can
175
- be called, preventing to call implementation specific one . It also prevents
176
- injecting the dependency at all if you type hinted a concrete implementation
177
- instead of the interface.
173
+ This feature can also act as a safe guard: given that the proxy does not
174
+ extend the original class, only the methods defined by the interface can
175
+ be called, preventing to call implementation specific methods . It also
176
+ prevents injecting the dependency at all if you type- hinted a concrete
177
+ implementation instead of the interface.
178
178
179
179
Additional Resources
180
180
--------------------
0 commit comments