Changed autoloading order

This commit is contained in:
Eldad Fux 2024-04-22 21:38:48 +02:00
parent 351b9318d4
commit 09e9483d94
4 changed files with 5 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<?php
require_once __DIR__ . '/init.php';
require_once __DIR__ . '/init2.php';
require_once __DIR__ . '/controllers/general.php';
use Appwrite\Event\Certificate;

View file

@ -1,6 +1,6 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/init2.php';
require_once __DIR__ . '/controllers/general.php';
use Appwrite\Utopia\Queue\Connections;
use Appwrite\Utopia\Request;
@ -22,9 +22,6 @@ use Utopia\Http\Adapter\Swoole\Server;
use Utopia\Http\Http;
use Utopia\System\System;
require_once __DIR__ . '/init2.php';
require_once __DIR__ . '/controllers/general.php';
$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6));
$payloadSize = 6 * (1024 * 1024); // 6MB

View file

@ -1,4 +1,5 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use PHPMailer\PHPMailer\PHPMailer;
use Utopia\VCS\Adapter\Git\GitHub;
@ -470,6 +471,7 @@ $user
try {
$payload = $jwt->decode($authJWT);
} catch (JWTException $error) {
$request->removeHeader('x-appwrite-jwt');
throw new Exception(Exception::USER_JWT_INVALID, 'Failed to verify JWT. ' . $error->getMessage());
}

View file

@ -1,6 +1,5 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/init2.php';
use Appwrite\Event\Audit;