Support the ongoing development of Laravel.io →
IOC Architecture
Last updated 2 years ago.
0

nobody here has any idea???

Last updated 2 years ago.
0

Dear tzookb,

What version are you using of Laravel Framework?

Are you using into the register method into a custom ServicesProvider?

At last, are you updating your classmap in the composer.json?

Thanks.

Last updated 2 years ago.
0

I use the latest version, but I ask generally for the container object, as I notice it performs the closure even if the alias is not called in the request.

Last updated 2 years ago.
0

Did you by any chance set the service provider as not deferred?

Last updated 2 years ago.
0

I used the continer not in a laravel project, I added it to some pure php project.

I simply ask if it is right that the closure executes foreach request.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tzookb tzookb Joined 9 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.