laracasts / Commander

Easily leverage commands and domain events in your Laravel projects.
https://laracasts.com/series/commands-and-domain-events
MIT License
279 stars 68 forks source link

If we've passed a command instance, just use that. #53

Closed RyanThompson closed 8 years ago

RyanThompson commented 9 years ago

This is much cleaner if we don't necessarily care about mapping input.

We use this pattern all over the place - not just in controllers and this really shines in those cases.

Eager to hear your feedback - cheers!

Douglasdc3 commented 9 years ago

I agree with this change. it should be possible to pass the command through instead of resolving it out of the IoC container.