Skip to content
Merged
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
5 changes: 2 additions & 3 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Utopia\DI\Container;
use Utopia\Http\Http;
use Utopia\Http\Response;
use Utopia\Http\Adapter\Swoole\Server;
use Utopia\Http\Adapter\SwooleCoroutine\Server;
use Utopia\System\System;
use Utopia\Orchestration\Orchestration;

Expand Down Expand Up @@ -48,8 +48,7 @@
);
$container->set(
'networks',
fn (): array => $network->getAvailable(),
[]
$network->getAvailable(...)
);

/* Pull images */
Expand Down
6 changes: 1 addition & 5 deletions app/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Utopia\Orchestration\Adapter\DockerAPI;
use Utopia\Orchestration\Orchestration;
use Utopia\System\System;
use Utopia\Registry\Registry;
use Utopia\Config\Config;

const MAX_LOG_SIZE = 5 * 1024 * 1024;
Expand All @@ -19,13 +18,10 @@
Config::load('errors', __DIR__ . '/config/errors.php');

$container = new Container();
$registry = new Registry();

$registry->set('runtimes', fn (): Runtimes => new Runtimes());

$container->set(
'runtimes',
fn (): Runtimes => $registry->get('runtimes')
fn (): Runtimes => new Runtimes()
);

$container->set(
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@
"utopia-php/console": "0.0.*",
"utopia-php/di": "0.3.*",
"utopia-php/dsn": "0.2.*",
"utopia-php/fetch": "0.5.*",
"utopia-php/framework": "0.34.*",
"utopia-php/orchestration": "0.19.*",
"utopia-php/preloader": "0.2.*",
"utopia-php/registry": "0.5.*",
"utopia-php/storage": "0.18.*",
"utopia-php/system": "0.10.*"
},
"require-dev": {
"laravel/pint": "1.*",
"utopia-php/fetch": "0.5.*",
"phpstan/phpstan": "2.*",
"phpunit/phpunit": "9.*",
"rector/rector": "2.3.8",
Expand Down
Loading