I love this pattern ! It's really clean. You could even simplify it using tagged_iterator.
tagged_iterator
_instanceof: App\ChannelHandlerInterface: tags: ['app.channel_handler'] App\ChannelFactory: arguments: - !tagged_iterator app.channel_handler
Thanks to DI feature, you do not have to declare anything manually !
The idea come from Thibault Richard (github.com/t-richard) :)
Wow! looks awesome! even better, thanks for sharing
I think you could update your post with it ;)
Done! many thanks :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I love this pattern ! It's really clean.
You could even simplify it using
tagged_iterator
.Thanks to DI feature, you do not have to declare anything manually !
The idea come from Thibault Richard (github.com/t-richard) :)
Wow! looks awesome! even better, thanks for sharing
I think you could update your post with it ;)
Done! many thanks :)