Skip to content

Commit 16021d6

Browse files
committed
minor #6087 Add a note about needing to install proxy-manager (mcfedr)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #6087). Discussion ---------- 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. Commits ------- 37fb204 Add a note about needing to install proxy-manager
2 parents 41716df + 37fb204 commit 16021d6

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)