Skip to content

Commit 2743d6f

Browse files
committed
Add note about final classes
1 parent 3ba2ad8 commit 2743d6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service_container/lazy_services.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Configuring lazy services is one answer to this. With a lazy service, a
2323
just like the ``mailer``, except that the ``mailer`` isn't actually instantiated
2424
until you interact with the proxy in some way.
2525

26+
.. caution::
27+
28+
Lazy services do not support `final`_ classes.
29+
2630
Installation
2731
------------
2832

@@ -106,3 +110,4 @@ in the `documentation of ProxyManager`_.
106110
.. _`proxy`: https://en.wikipedia.org/wiki/Proxy_pattern
107111
.. _`documentation of ProxyManager`: https://github.com/Ocramius/ProxyManager/blob/master/docs/lazy-loading-value-holder.md
108112
.. _`ocramius/proxy-manager`: https://github.com/Ocramius/ProxyManager
113+
.. _`final`: https://www.php.net/manual/en/language.oop5.final.php

0 commit comments

Comments
 (0)