updateCommunication = $updateCommunication; $this->api = $api; } public function schedule() { $this->daily('clearAllCacheEntries', null, self::LOWEST_PRIORITY); $this->daily('sendNotificationIfUpdatesAvailable', null, self::LOWEST_PRIORITY); } public function clearAllCacheEntries() { $this->api->clearAllCacheEntries(); } public function sendNotificationIfUpdatesAvailable() { if ($this->updateCommunication->isEnabled()) { $this->updateCommunication->sendNotificationIfUpdatesAvailable(); } } }