the recursion is only in var_dump or print_r I think
Feb 22, 2024
4
Level 10
Preventing Recursion in the ServiceProvider Pattern
Im building a framework for... fun? 😅
Can someone more knowledgable that me, help me understand how Laravel avoids recursion in the ServiceProviders when they are registered, seeing as they hold a reference to the Application & they are registered in the IoC container?
Level 122
https://github.com/laravel/framework/issues/14636
graham campbell suggests using symfony dump, which is probably what is behind laravel dump() and dd()
Please or to participate in this conversation.