Skip to content

Add note about final classes #13157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions service_container/lazy_services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Configuring lazy services is one answer to this. With a lazy service, a
just like the ``mailer``, except that the ``mailer`` isn't actually instantiated
until you interact with the proxy in some way.

.. caution::

Lazy services do not support `final`_ classes.

Installation
------------

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