mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
Weekly tips #4
This commit is contained in:
parent
72fff055f4
commit
018ed8a873
15 changed files with 139 additions and 3 deletions
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: 'Laravel''s container can be used for resolving variadic dependencies'
|
||||
tweet_id: '1487081929123897344'
|
||||
thread_slug: weekly-thread-2022-04
|
||||
author_username: cerbero90
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/FJ7_971aUAoMZF5.png'
|
||||
created_at: 2022-01-28T15:15:35+00:00
|
||||
slug: laravels-container-can-be-used-for-resolving-variadic-dependencies
|
||||
---
|
||||
Since @laravelphp 8.79 it is possible to resolve variadic dependencies out of the IoC container.
|
||||
|
||||
This is quite useful for type-hinting and static analysis and allows us to bind a set of concrete implementations to an abstraction layer.
|
||||
|
||||
#Laravel #PHP
|
||||
Loading…
Add table
Add a link
Reference in a new issue