Skip to content

Commit ed67f08

Browse files
committed
update psr-worker
1 parent eb7a7d2 commit ed67f08

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/Commands/file/psr-worker.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use SDPMlab\Ci4Roadrunner\Debug\Exceptions;
1414
use SDPMlab\Ci4Roadrunner\Debug\Toolbar;
1515
use SDPMlab\Ci4Roadrunner\Debug\Dumper;
16+
use SDPMlab\Ci4Roadrunner\UploadedFileBridge;
1617

1718
// codeigniter4 public/index.php
1819
$minPHPVersion = '7.2';
@@ -44,11 +45,6 @@ function is_cli(): bool{
4445
$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT));
4546
$psr7 = new RoadRunner\PSR7Client($worker);
4647

47-
/**
48-
* PSR-File object global variable
49-
*/
50-
$psr7Files;
51-
5248
/**
5349
* Dump given value into target output.
5450
*
@@ -132,9 +128,8 @@ function init()
132128
ob_end_clean();
133129
} catch (\Throwable $th) {}
134130
\CodeIgniter\Config\Services::reset(true);
131+
UploadedFileBridge::reset();
135132
$appConfig = config(\Config\App::class);
136133
$app = new \CodeIgniter\CodeIgniter($appConfig);
137134
$app->initialize();
138-
$_FILES = [];
139-
$GLOBALS["psr7Files"] = null;
140135
}

0 commit comments

Comments
 (0)