Move specification enum into an autoloaded directory

This commit is contained in:
Bradley Schofield 2024-08-05 15:53:09 +09:00
parent eaef82b613
commit 4c56de8348
3 changed files with 20 additions and 18 deletions

View file

@ -1,6 +1,6 @@
<?php
require_once __DIR__ . '/enum.php';
use Appwrite\Functions\Specifications;
return [
Specifications::S_1VCPU_512MB->value => [

34
composer.lock generated
View file

@ -1720,16 +1720,16 @@
},
{
"name": "utopia-php/database",
"version": "0.50.1",
"version": "0.50.2",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "1745147bef29a9bddf5dd03fd9174ec29e2c26f0"
"reference": "c712d1f6c8ec37886a7a1ad4d60a8cd75dec00aa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/1745147bef29a9bddf5dd03fd9174ec29e2c26f0",
"reference": "1745147bef29a9bddf5dd03fd9174ec29e2c26f0",
"url": "https://api.github.com/repos/utopia-php/database/zipball/c712d1f6c8ec37886a7a1ad4d60a8cd75dec00aa",
"reference": "c712d1f6c8ec37886a7a1ad4d60a8cd75dec00aa",
"shasum": ""
},
"require": {
@ -1770,9 +1770,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/0.50.1"
"source": "https://github.com/utopia-php/database/tree/0.50.2"
},
"time": "2024-07-26T11:56:05+00:00"
"time": "2024-07-31T10:12:19+00:00"
},
{
"name": "utopia-php/domains",
@ -1922,16 +1922,16 @@
},
{
"name": "utopia-php/framework",
"version": "0.33.6",
"version": "0.33.7",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/http.git",
"reference": "8fe57da0cecd57e3b17cd395b4a666a24f4c07a6"
"reference": "78d293d99a262bd63ece750bbf989c7e0643b825"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/http/zipball/8fe57da0cecd57e3b17cd395b4a666a24f4c07a6",
"reference": "8fe57da0cecd57e3b17cd395b4a666a24f4c07a6",
"url": "https://api.github.com/repos/utopia-php/http/zipball/78d293d99a262bd63ece750bbf989c7e0643b825",
"reference": "78d293d99a262bd63ece750bbf989c7e0643b825",
"shasum": ""
},
"require": {
@ -1961,9 +1961,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/http/issues",
"source": "https://github.com/utopia-php/http/tree/0.33.6"
"source": "https://github.com/utopia-php/http/tree/0.33.7"
},
"time": "2024-03-21T18:10:57+00:00"
"time": "2024-08-01T14:01:04+00:00"
},
{
"name": "utopia-php/image",
@ -3158,16 +3158,16 @@
},
{
"name": "laravel/pint",
"version": "v1.17.0",
"version": "v1.17.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5"
"reference": "b5b6f716db298671c1dfea5b1082ec2c0ae7064f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5",
"reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5",
"url": "https://api.github.com/repos/laravel/pint/zipball/b5b6f716db298671c1dfea5b1082ec2c0ae7064f",
"reference": "b5b6f716db298671c1dfea5b1082ec2c0ae7064f",
"shasum": ""
},
"require": {
@ -3220,7 +3220,7 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2024-07-23T16:40:20+00:00"
"time": "2024-08-01T09:06:33+00:00"
},
{
"name": "matthiasmullie/minify",

View file

@ -1,5 +1,7 @@
<?php
namespace Appwrite\Functions;
enum Specifications: string
{
case S_1VCPU_512MB = 's-1vcpu-512mb';