refactor: Response Models init

This commit is contained in:
Binyamin Yawitz 2024-07-15 13:26:32 -04:00
parent 6d22474af9
commit b1e766d61a
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -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,

View file

@ -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();