Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"license": "MIT",
"minimum-stability": "stable",
"autoload": {
"psr-4": {"Utopia\\Platform\\": "src/Platform"}
"psr-4": {
"Utopia\\Platform\\": "src/Platform",
"Utopia\\": "src"
}
},
"autoload-dev": {
"psr-4": {
Expand All @@ -18,8 +21,8 @@
"php": ">=8.0",
"ext-json": "*",
"ext-redis": "*",
"utopia-php/framework": "0.33.*",
"utopia-php/cli": "0.15.*",
"utopia-php/cli": "0.22.*",
"utopia-php/framework": "dev-backport-0.34-adapters as 0.33.38",
"utopia-php/queue": "0.15.*"
},
"require-dev": {
Expand Down
81 changes: 46 additions & 35 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Platform/Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

use Exception;
use Utopia\CLI\CLI;
use Utopia\Http;
use Utopia\Http\Http;
use Utopia\Http\Route;
use Utopia\Queue\Adapter\Swoole;
use Utopia\Queue\Server;
use Utopia\Route;

abstract class Platform
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Platform/TestActionInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Utopia\Tests;

use Utopia\Http\Response;
use Utopia\Platform\Action;
use Utopia\Response;

class TestActionInit extends Action
{
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/CLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testCLISetup(): void
{
ob_start();

$cli = new CLI(['test.php', 'build', '--email=me@example.com', '--list=item1', '--list=item2']); // Mock command request
$cli = new CLI(null, ['test.php', 'build', '--email=me@example.com', '--list=item1', '--list=item2']); // Mock command request

$platform = new TestPlatform();
$platform->setCli($cli);
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

require_once __DIR__.'/../../vendor/autoload.php';

use Utopia\Http;
use Utopia\Request;
use Utopia\Response;
use Utopia\Http\Adapter\FPM\Request;
use Utopia\Http\Adapter\FPM\Response;
use Utopia\Http\Http;
use Utopia\Tests\TestPlatform;

ini_set('memory_limit', '512M');
Expand Down