Skip to content

Feature: DI: PHP 8.4 Lazy Objects #20315

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

Open
arkhamvm opened this issue Jan 22, 2025 · 2 comments
Open

Feature: DI: PHP 8.4 Lazy Objects #20315

arkhamvm opened this issue Jan 22, 2025 · 2 comments

Comments

@arkhamvm
Copy link
Contributor

PHP 8.4 introduced to us Lazy Objects, it would be nice to use them in DI.

https://www.php.net/manual/en/language.oop5.lazy-objects.php

@agussuhartono
Copy link

I think, using PHP 8.4's Lazy Objects will cause BC Break.
using ocramius/proxy-manager is better solution for now

@mtangoo
Copy link
Contributor

mtangoo commented Apr 5, 2025

@agussuhartono can you make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants