Skip to content

Lazy services warning is not updated with PHP 8.4 #21560

@garak

Description

@garak

https://symfony.com/doc/current/service_container/lazy_services.html warns that you can't use lazy services with final or readonly classes, and proposes a workaround based on the interface-proxifying.
We should clarify that this is no longer necessary with PHP 8.4+ and Symfony 7.3+, as native lazy ghost objects are used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions