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

Allow mapping input to public properties. #12

Closed ratiw closed 10 years ago

ratiw commented 10 years ago

Sometimes when we have a DTO class which will contain a lot of properties (more than 5 or 6 properties), it does not do any good defining all those properties in the constructor.

This PR will allow mapping input to the "public properties" instead of using the constructor.

ratiw commented 10 years ago

Hmm, this does not really work as expected because I overlook the newInstanceArgs() method.