mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
feat: Adding plans, updating server and exception class
This commit is contained in:
parent
1b80ec289b
commit
0bd9426aa7
3 changed files with 14 additions and 8 deletions
|
|
@ -696,7 +696,7 @@ Http::error()
|
|||
}
|
||||
|
||||
switch ($class) {
|
||||
case 'Utopia\Exception':
|
||||
case 'Utopia\Servers\Exception':
|
||||
$error = new AppwriteException(AppwriteException::GENERAL_UNKNOWN, $message, $code, $error);
|
||||
switch ($code) {
|
||||
case 400:
|
||||
|
|
|
|||
|
|
@ -383,6 +383,7 @@ $global->set('promiseAdapter', function () {
|
|||
$log = new Dependency();
|
||||
$mode = new Dependency();
|
||||
$user = new Dependency();
|
||||
$plan = new Dependency();
|
||||
$pools = new Dependency();
|
||||
$geodb = new Dependency();
|
||||
$cache = new Dependency();
|
||||
|
|
@ -399,9 +400,9 @@ $project = new Dependency();
|
|||
$clients = new Dependency();
|
||||
$servers = new Dependency();
|
||||
$registry = new Dependency();
|
||||
$getProjectDB = new Dependency();
|
||||
$localeCodes = new Dependency();
|
||||
$connections = new Dependency();
|
||||
$localeCodes = new Dependency();
|
||||
$getProjectDB = new Dependency();
|
||||
$dbForProject = new Dependency();
|
||||
$dbForConsole = new Dependency();
|
||||
$queueForUsage = new Dependency();
|
||||
|
|
@ -413,9 +414,9 @@ $deviceForFiles = new Dependency();
|
|||
$queueForEvents = new Dependency();
|
||||
$queueForAudits = new Dependency();
|
||||
$promiseAdapter = new Dependency();
|
||||
$requestTimestamp = new Dependency();
|
||||
$deviceForBuilds = new Dependency();
|
||||
$queueForDeletes = new Dependency();
|
||||
$requestTimestamp = new Dependency();
|
||||
$queueForDatabase = new Dependency();
|
||||
$queueForMessaging = new Dependency();
|
||||
$queueForFunctions = new Dependency();
|
||||
|
|
@ -425,6 +426,10 @@ $passwordsDictionary = new Dependency();
|
|||
$queueForCertificates = new Dependency();
|
||||
|
||||
|
||||
$plan
|
||||
->setName('plan')
|
||||
->setCallback(fn() => []);
|
||||
|
||||
$mode
|
||||
->setName('mode')
|
||||
->inject('request')
|
||||
|
|
@ -1188,6 +1193,7 @@ $schema
|
|||
$container->set($log);
|
||||
$container->set($mode);
|
||||
$container->set($user);
|
||||
$container->set($plan);
|
||||
$container->set($pools);
|
||||
$container->set($cache);
|
||||
$container->set($pools);
|
||||
|
|
|
|||
8
composer.lock
generated
8
composer.lock
generated
|
|
@ -2672,12 +2672,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/servers.git",
|
||||
"reference": "e7eee7f82399c89adc28cf79912a9a41d7bb3233"
|
||||
"reference": "4ce97c42158c20c7dcf0cdcdcf79080b879a1ee7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/servers/zipball/e7eee7f82399c89adc28cf79912a9a41d7bb3233",
|
||||
"reference": "e7eee7f82399c89adc28cf79912a9a41d7bb3233",
|
||||
"url": "https://api.github.com/repos/utopia-php/servers/zipball/4ce97c42158c20c7dcf0cdcdcf79080b879a1ee7",
|
||||
"reference": "4ce97c42158c20c7dcf0cdcdcf79080b879a1ee7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -2735,7 +2735,7 @@
|
|||
"source": "https://github.com/utopia-php/servers/tree/dev",
|
||||
"issues": "https://github.com/utopia-php/servers/issues"
|
||||
},
|
||||
"time": "2024-04-22T21:23:28+00:00"
|
||||
"time": "2024-06-06T14:41:32+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/storage",
|
||||
|
|
|
|||
Loading…
Reference in a new issue