mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
refactor rest to use new init configs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../init.php';
|
||||
require_once __DIR__ . '/../init/http.php';
|
||||
|
||||
use Ahc\Jwt\JWT;
|
||||
use Appwrite\Auth\Auth;
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ use Utopia\WebSocket\Server;
|
||||
/**
|
||||
* @var \Utopia\Registry\Registry $register
|
||||
*/
|
||||
require_once __DIR__ . '/init.php';
|
||||
require_once __DIR__ . '/init/http.php';
|
||||
|
||||
Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="app/init.php"
|
||||
bootstrap="app/init/http.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
|
||||
@@ -7,7 +7,7 @@ use InvalidArgumentException;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Utopia\Queue\Client;
|
||||
|
||||
require_once __DIR__ . '/../../../app/init.php';
|
||||
require_once __DIR__ . '/../../../app/init/http.php';
|
||||
|
||||
class EventTest extends TestCase
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ abstract class MigrationTest extends TestCase
|
||||
*/
|
||||
public function testMigrationVersions(): void
|
||||
{
|
||||
require_once __DIR__ . '/../../../app/init.php';
|
||||
require_once __DIR__ . '/../../../app/init/http.php';
|
||||
|
||||
foreach (Migration::$versions as $class) {
|
||||
$this->assertTrue(class_exists('Appwrite\\Migration\\Version\\' . $class));
|
||||
|
||||
Reference in New Issue
Block a user