From b1e766d61a82fcc532e39e357d234f3ef80ac7f9 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:26:32 -0400 Subject: [PATCH] refactor: Response Models init --- app/http.php | 1 - app/init2.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/http.php b/app/http.php index 6f72f81d47..63896015ab 100644 --- a/app/http.php +++ b/app/http.php @@ -27,7 +27,6 @@ global $global, $container; $payloadSize = 12 * (1024 * 1024); // 12MB - adding slight buffer for headers and other data that might be sent with the payload - update later with valid testing $workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 2)); -Response\Models::init(); $server = new Server('0.0.0.0', '80', [ 'open_http2_protocol' => true, diff --git a/app/init2.php b/app/init2.php index ae67a6bb38..8a66302131 100644 --- a/app/init2.php +++ b/app/init2.php @@ -25,6 +25,7 @@ use Appwrite\Hooks\Hooks; use Appwrite\Network\Validator\Origin; use Appwrite\URL\URL; use Appwrite\Utopia\Queue\Connections; +use Appwrite\Utopia\Response\Models; use MaxMind\Db\Reader; use PHPMailer\PHPMailer\PHPMailer; use Swoole\Database\PDOConfig; @@ -1330,3 +1331,5 @@ $container->set($queueForMigrations); $container->set($deviceForFunctions); $container->set($passwordsDictionary); $container->set($queueForCertificates); + +Models::init();