File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Codeigniter4-RoadRunner provides the synchroniztion of the Request and Response
1313## Install
1414
1515### Prerequisites
16- 1 . CodeIgniter Framework 4.*
16+ 1 . CodeIgniter Framework 4.1.1^
17172 . Composer
18183 . Enable ` php-curl ` extension
19194 . Enable ` php-zip ` extension
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Codeigniter4-RoadRunner 提供的是 Roadrunner-Worker 與 Codeigniter4 在 Requ
1111## 安裝
1212
1313### 需求
14- 1 . CodeIgniter Framework 4.*
14+ 1 . CodeIgniter Framework 4.1.1 以上
15152 . Composer
16163 . 安裝並開啟 php-curl 擴充套件
17174 . 安裝並開啟 php-zip 擴充套件
Original file line number Diff line number Diff line change 1616 ],
1717 "minimum-stability" : " stable" ,
1818 "require" : {
19- "php" : " ^7.2 " ,
20- "codeigniter4/framework" : " ^4" ,
19+ "php" : " ^7.3 " ,
20+ "codeigniter4/framework" : " ^4.1.1 " ,
2121 "spiral/roadrunner" : " ^1.8.1" ,
2222 "spiral/dumper" : " ^1.1"
2323 },
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function exceptionHandler($exception)
105105 if (! is_cli ())
106106 {
107107 $ this ->response ->setStatusCode ($ statusCode );
108- $ header = "HTTP/ {$ this ->request ->getProtocolVersion ()} {$ this ->response ->getStatusCode ()} {$ this ->response ->getReason ()}" ;
108+ $ header = "HTTP/ {$ this ->request ->getProtocolVersion ()} {$ this ->response ->getStatusCode ()} {$ this ->response ->getReasonPhrase ()}" ;
109109 header ($ header , true , $ statusCode );
110110 if (strpos ($ this ->rRequest ->getHeaderLine ('accept ' ), 'text/html ' ) === false )
111111 {
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ public function __construct(
2828 }
2929
3030 private function getCi4ContentType (\CodeIgniter \HTTP \Response $ ci4Response ) : string {
31- $ ci4headers = $ ci4Response ->getHeaders ();
32- return $ ci4headers ['Content-Type ' ]->getValueLine ();
31+ return $ ci4Response ->getHeaderLine ("Content-Type " );
3332 }
3433
3534 private function getCi4Headers (\CodeIgniter \HTTP \Response $ ci4Response ) : array {
@@ -54,7 +53,7 @@ private function getCi4Headers(\CodeIgniter\HTTP\Response $ci4Response) : array{
5453 session_write_close ();
5554 session_id (null );
5655 }
57- $ ci4headers = $ ci4Response ->getHeaders ();
56+ $ ci4headers = $ ci4Response ->headers ();
5857 $ headers = [];
5958 foreach ($ ci4headers as $ key => $ value ){
6059 if ($ key == "Content-Type " ) continue ;
Original file line number Diff line number Diff line change 44 command : " php psr-worker.php"
55 pool :
66 numWorkers : 1
7- # maxJobs: 500
7+ # maxJobs: 50
88
99static :
1010 enable : true
Original file line number Diff line number Diff line change 88 "php" : " >=7.2" ,
99 "codeigniter4/framework" : " ^4" ,
1010 "spiral/roadrunner" : " ^1.8" ,
11- "spiral/dumper" : " ^1.1" ,
12- "monken/cli-create" : " ^0.3.1"
11+ "spiral/dumper" : " ^1.1"
1312 },
1413 "require-dev" : {
1514 "mikey179/vfsstream" : " 1.6.*" ,
You can’t perform that action at this time.
0 commit comments