1
0
Fork 0
mirror of synced 2024-10-02 02:07:04 +13:00

refactor namespace and naming

This commit is contained in:
Damodar Lohani 2022-11-14 10:01:41 +00:00
parent ab7eb01438
commit ae0b9e78aa
15 changed files with 38 additions and 38 deletions

2
composer.lock generated
View file

@ -5245,5 +5245,5 @@
"platform-overrides": {
"php": "8.0"
},
"plugin-api-version": "2.2.0"
"plugin-api-version": "2.3.0"
}

View file

@ -1,13 +0,0 @@
<?php
namespace Appwrite\CLI;
use Utopia\Platform\Platform;
class Tasks extends Platform
{
public function __construct()
{
$this->addService('cliTasks', new TasksService());
}
}

View file

@ -0,0 +1,13 @@
<?php
namespace Appwrite\Platform;
use Utopia\Platform\Platform;
class Appwrite extends Platform
{
public function __construct()
{
$this->addService('tasks', new Tasks());
}
}

View file

@ -1,21 +1,21 @@
<?php
namespace Appwrite\CLI;
namespace Appwrite\Platform;
use Utopia\Platform\Service;
use Appwrite\CLI\Tasks\Doctor;
use Appwrite\CLI\Tasks\Install;
use Appwrite\CLI\Tasks\Maintenance;
use Appwrite\CLI\Tasks\Migrate;
use Appwrite\CLI\Tasks\SDKs;
use Appwrite\CLI\Tasks\Specs;
use Appwrite\CLI\Tasks\SSL;
use Appwrite\CLI\Tasks\Usage;
use Appwrite\CLI\Tasks\Vars;
use Appwrite\CLI\Tasks\Version;
use VolumeSync;
use Appwrite\Platform\Tasks\Doctor;
use Appwrite\Platform\Tasks\Install;
use Appwrite\Platform\Tasks\Maintenance;
use Appwrite\Platform\Tasks\Migrate;
use Appwrite\Platform\Tasks\SDKs;
use Appwrite\Platform\Tasks\Specs;
use Appwrite\Platform\Tasks\SSL;
use Appwrite\Platform\Tasks\Usage;
use Appwrite\Platform\Tasks\Vars;
use Appwrite\Platform\Tasks\Version;
use Appwrite\Platform\Tasks\VolumeSync;
class TasksService extends Service
class Tasks extends Service
{
public function __construct()
{

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\App;
use Utopia\CLI\Console;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Appwrite\Auth\Auth;
use Appwrite\Docker\Compose;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Appwrite\Auth\Auth;
use Appwrite\Event\Certificate;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\Platform\Action;
use Utopia\CLI\Console;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\Platform\Action;
use Utopia\Config\Config;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\Platform\Action;
use Appwrite\Event\Certificate;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\Platform\Action;
use Utopia\Validator\Text;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Appwrite\Platform\Task;
use Appwrite\Usage\Calculators\Aggregator;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\App;
use Utopia\Config\Config;

View file

@ -1,6 +1,6 @@
<?php
namespace Appwrite\CLI\Tasks;
namespace Appwrite\Platform\Tasks;
use Utopia\App;
use Utopia\CLI\Console;

View file

@ -1,6 +1,6 @@
<?php
global $cli;
namespace Appwrite\Platform\Tasks;
use Utopia\CLI\Console;
use Utopia\Database\DateTime;