joomla-projects / soc21_website-cronjob

GNU General Public License v2.0
5 stars 3 forks source link

Use dependency injection #17

Open nibra opened 3 years ago

nibra commented 3 years ago

https://github.com/joomla-projects/soc21_website-cronjob/blob/f445b0bd261946ff92f818573231832f747b6ad6/administrator/components/com_scheduler/src/Traits/TaskPluginTrait.php#L192

Either inject the logger (implement LoggerAwareInterface) or retrieve the logger from the application's container.