Skip to content

Commit 29d4007

Browse files
committed
minor symfony#19520 [DependencyInjection] Add readonly statement to the Lazy Services docs (akmandev)
This PR was submitted for the 7.0 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [DependencyInjection] Add readonly statement to the Lazy Services docs The DI container cannot generate a lazy proxy for read-only services. This will add the missing `readonly` statement to the [docs](https://symfony.com/doc/current/service_container/lazy_services.html) as the title describes. Commits ------- c9654fb [DependencyInjection] Add readonly statement to the Lazy Services docs
2 parents 1811309 + c9654fb commit 29d4007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/lazy_services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ until you interact with the proxy in some way.
2323

2424
.. caution::
2525

26-
Lazy services do not support `final`_ classes, but you can use
26+
Lazy services do not support `final`_ or `readonly` classes, but you can use
2727
`Interface Proxifying`_ to work around this limitation.
2828

2929
In PHP versions prior to 8.0 lazy services do not support parameters with

0 commit comments

Comments
 (0)