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

47 lines
1.8 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-12-14 09:44:46 +00:00
use Appwrite\Platform\Tasks\PatchCreateMissingSchedules;
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-03-22 18:52:43 +00:00
use Appwrite\Platform\Tasks\PatchDeleteScheduleUpdatedAtAttribute;
2023-05-02 11:21:08 +00:00
use Appwrite\Platform\Tasks\ClearCardCache;
2022-11-14 10:01:41 +00:00
use Appwrite\Platform\Tasks\Usage;
use Appwrite\Platform\Tasks\Vars;
use Appwrite\Platform\Tasks\Version;
use Appwrite\Platform\Tasks\VolumeSync;
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())
->addAction(Usage::getName(), new Usage())
->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(Maintenance::getName(), new Maintenance())
2022-12-14 09:44:46 +00:00
->addAction(PatchCreateMissingSchedules::getName(), new PatchCreateMissingSchedules())
2023-05-02 11:21:08 +00:00
->addAction(ClearCardCache::getName(), new ClearCardCache())
2023-03-22 18:52:43 +00:00
->addAction(PatchDeleteScheduleUpdatedAtAttribute::getName(), new PatchDeleteScheduleUpdatedAtAttribute())
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())
2022-08-02 01:58:36 +00:00
->addAction(Specs::getName(), new Specs());
2022-07-08 02:27:06 +00:00
}
}