File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313use SDPMlab \Ci4Roadrunner \Debug \Exceptions ;
1414use SDPMlab \Ci4Roadrunner \Debug \Toolbar ;
1515use 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}
You can’t perform that action at this time.
0 commit comments