hmazter / laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands
MIT License
94 stars 14 forks source link

Resolve the Schedule class from the container instead of DI, fixes #30 #31

Closed hmazter closed 5 years ago

hmazter commented 5 years ago

The Schedule class is resolved from the Container with the global app() function when needed in the ScheduleList::all method instead of Dependecy injection in the construction. This is to make sure that Laravel has resolved the class itself and filled in with all schduled tasks and we get the same instance.