8000 Add a note about needing to install proxy-manager · symfony/symfony-docs@37fb204 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37fb204

Browse files
mcfedrwouterj
authored andcommitted
Add a note about needing to install proxy-manager
When using symfony/symfony it 'provides' `symfony/proxy-manager-bridge` but it doesn't install `ocramius/proxy-manager`. This means that when you install the bridge you still don't get the proxy-manager and lazy services are not lazy.
1 parent 41716df commit 37fb204

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/dependency_injection/lazy_services.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ your lazy loaded services are working.
100100

101101
.. note::
102102

103-
If you don't install the `ProxyManager bridge`_, the container will
104-
just skip over the ``lazy`` flag and simply instantiate the service
105-
as it would normally do.
103+
If you don't install the `ProxyManager bridge`_ and the
104+
`ocramius/proxy-manager`_, the container will just skip over the ``lazy``
105+
flag and simply instantiate the service as it would normally do.
106106

107107
The proxy gets initialized and the actual service is instantiated as soon
108108
as you interact in any way with this object.
@@ -117,3 +117,4 @@ in the `documentation of ProxyManager`_.
117117
.. _`ProxyManager bridge`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/ProxyManager
118118
.. _`proxy`: https://en.wikipedia.org/wiki/Proxy_pattern
119119
.. _`documentation of ProxyManager`: https://github.com/Ocramius/ProxyManager/blob/master/docs/lazy-loading-value-holder.md
120+
.. _`ocramius/proxy-manager`: https://github.com/Ocramius/ProxyManager

0 commit comments

Comments
 (0)
0