درس قبلی
پیدا کردن خودکار وابستگی ها

پیدا کردن خودکار وابستگی ها

Automatically Resolve Dependencies

قسمت 39
درس بعدی

درباره این درس

Now that you understand the basics of a service container, let's switch over to Laravel's implementation. As you'll see, in addition to the basics, it can also, in some cases, automatically construct objects for you. This means you can "ask" for what you need, and Laravel will do its best - using PHP's reflection API - to read the dependency graph and construct what you need!
دیدگاه های کاربران

× در حال پاسخ به: