appwrite/src/Appwrite/Platform/Services/Tasks.php

53 lines
2 KiB
PHP
Raw Normal View History

2022-07-08 02:27:06 +00:00
<?php
2022-07-14 02:04:31 +00:00
2022-11-14 10:10:47 +00:00
namespace Appwrite\Platform\Services;
2022-07-08 02:27:06 +00:00
2022-07-13 06:26:22 +00:00
use Utopia\Platform\Service;
2022-11-14 10:01:41 +00:00
use Appwrite\Platform\Tasks\Doctor;
use Appwrite\Platform\Tasks\Install;
use Appwrite\Platform\Tasks\Maintenance;
use Appwrite\Platform\Tasks\Migrate;
2022-11-15 10:37:07 +00:00
use Appwrite\Platform\Tasks\Schedule;
2022-11-14 10:01:41 +00:00
use Appwrite\Platform\Tasks\SDKs;
use Appwrite\Platform\Tasks\Specs;
use Appwrite\Platform\Tasks\SSL;
2023-01-25 20:56:33 +00:00
use Appwrite\Platform\Tasks\Hamster;
2023-10-15 17:41:09 +00:00
use Appwrite\Platform\Tasks\Usage;
2022-11-14 10:01:41 +00:00
use Appwrite\Platform\Tasks\Vars;
use Appwrite\Platform\Tasks\Version;
use Appwrite\Platform\Tasks\VolumeSync;
2023-05-30 15:06:51 +00:00
use Appwrite\Platform\Tasks\CalcTierStats;
use Appwrite\Platform\Tasks\Upgrade;
2023-10-26 14:45:23 +00:00
use Appwrite\Platform\Tasks\DeleteOrphanedProjects;
2023-11-14 14:06:58 +00:00
use Appwrite\Platform\Tasks\PatchRecreateRepositoriesDocuments;
use Appwrite\Platform\Tasks\ScheduleMessage;
2022-07-08 02:27:06 +00:00
2022-11-14 10:01:41 +00:00
class Tasks extends Service
2022-07-14 02:04:31 +00:00
{
2022-07-13 06:26:22 +00:00
public function __construct()
2022-07-08 02:27:06 +00:00
{
2022-07-13 06:26:22 +00:00
$this->type = self::TYPE_CLI;
2022-07-13 07:02:55 +00:00
$this
2022-08-02 01:58:36 +00:00
->addAction(Version::getName(), new Version())
2023-10-15 17:41:09 +00:00
->addAction(Usage::getName(), new Usage())
2022-08-02 01:58:36 +00:00
->addAction(Vars::getName(), new Vars())
->addAction(SSL::getName(), new SSL())
2023-01-25 20:56:33 +00:00
->addAction(Hamster::getName(), new Hamster())
2022-08-02 01:58:36 +00:00
->addAction(Doctor::getName(), new Doctor())
->addAction(Install::getName(), new Install())
->addAction(Upgrade::getName(), new Upgrade())
2022-08-02 01:58:36 +00:00
->addAction(Maintenance::getName(), new Maintenance())
->addAction(ScheduleMessage::getName(), new ScheduleMessage())
2022-11-15 10:37:07 +00:00
->addAction(Schedule::getName(), new Schedule())
2022-08-02 01:58:36 +00:00
->addAction(Migrate::getName(), new Migrate())
->addAction(SDKs::getName(), new SDKs())
2022-11-13 08:36:31 +00:00
->addAction(VolumeSync::getName(), new VolumeSync())
2023-05-23 15:58:49 +00:00
->addAction(Specs::getName(), new Specs())
2023-05-30 17:11:25 +00:00
->addAction(CalcTierStats::getName(), new CalcTierStats())
2023-10-26 14:45:23 +00:00
->addAction(DeleteOrphanedProjects::getName(), new DeleteOrphanedProjects())
2023-11-14 14:06:58 +00:00
->addAction(PatchRecreateRepositoriesDocuments::getName(), new PatchRecreateRepositoriesDocuments())
2023-10-26 14:45:23 +00:00
2023-05-30 15:06:51 +00:00
;
2022-07-08 02:27:06 +00:00
}
}