From 87a4d7db8823df7308520bc2e2bc7384805e854c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 11 Jan 2024 16:08:40 +1300 Subject: [PATCH] Update service refs --- src/Appwrite/Platform/Services/Tasks.php | 56 +++++++++++----------- src/Appwrite/Platform/Services/Workers.php | 12 ++--- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/Appwrite/Platform/Services/Tasks.php b/src/Appwrite/Platform/Services/Tasks.php index 51267e14fa..d1fb064999 100644 --- a/src/Appwrite/Platform/Services/Tasks.php +++ b/src/Appwrite/Platform/Services/Tasks.php @@ -2,27 +2,27 @@ namespace Appwrite\Platform\Services; -use Utopia\Platform\Service; +use Appwrite\Platform\Tasks\CalcTierStats; +use Appwrite\Platform\Tasks\DeleteOrphanedProjects; +use Appwrite\Platform\Tasks\DevGenerateTranslations; use Appwrite\Platform\Tasks\Doctor; +use Appwrite\Platform\Tasks\GetMigrationStats; +use Appwrite\Platform\Tasks\Hamster; use Appwrite\Platform\Tasks\Install; use Appwrite\Platform\Tasks\Maintenance; use Appwrite\Platform\Tasks\Migrate; -use Appwrite\Platform\Tasks\Schedule; +use Appwrite\Platform\Tasks\PatchRecreateRepositoriesDocuments; use Appwrite\Platform\Tasks\SDKs; -use Appwrite\Platform\Tasks\Specs; use Appwrite\Platform\Tasks\SSL; -use Appwrite\Platform\Tasks\Hamster; +use Appwrite\Platform\Tasks\ScheduleFunctions; +use Appwrite\Platform\Tasks\ScheduleMessages; +use Appwrite\Platform\Tasks\Specs; +use Appwrite\Platform\Tasks\Upgrade; use Appwrite\Platform\Tasks\Usage; use Appwrite\Platform\Tasks\Vars; use Appwrite\Platform\Tasks\Version; use Appwrite\Platform\Tasks\VolumeSync; -use Appwrite\Platform\Tasks\CalcTierStats; -use Appwrite\Platform\Tasks\Upgrade; -use Appwrite\Platform\Tasks\DeleteOrphanedProjects; -use Appwrite\Platform\Tasks\DevGenerateTranslations; -use Appwrite\Platform\Tasks\GetMigrationStats; -use Appwrite\Platform\Tasks\PatchRecreateRepositoriesDocuments; -use Appwrite\Platform\Tasks\ScheduleMessage; +use Utopia\Platform\Service; class Tasks extends Service { @@ -30,26 +30,26 @@ class Tasks extends Service { $this->type = self::TYPE_CLI; $this - ->addAction(Version::getName(), new Version()) - ->addAction(Usage::getName(), new Usage()) - ->addAction(Vars::getName(), new Vars()) - ->addAction(SSL::getName(), new SSL()) - ->addAction(Hamster::getName(), new Hamster()) - ->addAction(Doctor::getName(), new Doctor()) - ->addAction(Install::getName(), new Install()) - ->addAction(Upgrade::getName(), new Upgrade()) - ->addAction(Maintenance::getName(), new Maintenance()) - ->addAction(ScheduleMessage::getName(), new ScheduleMessage()) - ->addAction(Schedule::getName(), new Schedule()) - ->addAction(Migrate::getName(), new Migrate()) - ->addAction(SDKs::getName(), new SDKs()) - ->addAction(VolumeSync::getName(), new VolumeSync()) - ->addAction(Specs::getName(), new Specs()) ->addAction(CalcTierStats::getName(), new CalcTierStats()) ->addAction(DeleteOrphanedProjects::getName(), new DeleteOrphanedProjects()) - ->addAction(PatchRecreateRepositoriesDocuments::getName(), new PatchRecreateRepositoriesDocuments()) - ->addAction(GetMigrationStats::getName(), new GetMigrationStats()) ->addAction(DevGenerateTranslations::getName(), new DevGenerateTranslations()) + ->addAction(Doctor::getName(), new Doctor()) + ->addAction(GetMigrationStats::getName(), new GetMigrationStats()) + ->addAction(Hamster::getName(), new Hamster()) + ->addAction(Install::getName(), new Install()) + ->addAction(Maintenance::getName(), new Maintenance()) + ->addAction(Migrate::getName(), new Migrate()) + ->addAction(PatchRecreateRepositoriesDocuments::getName(), new PatchRecreateRepositoriesDocuments()) + ->addAction(SDKs::getName(), new SDKs()) + ->addAction(SSL::getName(), new SSL()) + ->addAction(ScheduleFunctions::getName(), new ScheduleFunctions()) + ->addAction(ScheduleMessages::getName(), new ScheduleMessages()) + ->addAction(Specs::getName(), new Specs()) + ->addAction(Upgrade::getName(), new Upgrade()) + ->addAction(Usage::getName(), new Usage()) + ->addAction(Vars::getName(), new Vars()) + ->addAction(Version::getName(), new Version()) + ->addAction(VolumeSync::getName(), new VolumeSync()) ; } diff --git a/src/Appwrite/Platform/Services/Workers.php b/src/Appwrite/Platform/Services/Workers.php index c5a0514760..ed6a5f44a0 100644 --- a/src/Appwrite/Platform/Services/Workers.php +++ b/src/Appwrite/Platform/Services/Workers.php @@ -22,16 +22,16 @@ class Workers extends Service $this->type = self::TYPE_WORKER; $this ->addAction(Audits::getName(), new Audits()) - ->addAction(Webhooks::getName(), new Webhooks()) - ->addAction(Mails::getName(), new Mails()) - ->addAction(Messaging::getName(), new Messaging()) + ->addAction(Builds::getName(), new Builds()) ->addAction(Certificates::getName(), new Certificates()) ->addAction(Databases::getName(), new Databases()) - ->addAction(Functions::getName(), new Functions()) - ->addAction(Builds::getName(), new Builds()) ->addAction(Deletes::getName(), new Deletes()) - ->addAction(Migrations::getName(), new Migrations()) + ->addAction(Functions::getName(), new Functions()) ->addAction(Hamster::getName(), new Hamster()) + ->addAction(Mails::getName(), new Mails()) + ->addAction(Messaging::getName(), new Messaging()) + ->addAction(Migrations::getName(), new Migrations()) + ->addAction(Webhooks::getName(), new Webhooks()) ; }