mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Changed autoloading order
This commit is contained in:
parent
351b9318d4
commit
09e9483d94
4 changed files with 5 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/init2.php';
|
||||
|
||||
use Appwrite\Event\Audit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue