Skip to content

Commit 70eace4

Browse files
authored
Merge pull request #17 from SDPM-lab/dev
new version
2 parents 31b5d88 + 3696663 commit 70eace4

7 files changed

Lines changed: 9 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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^
1717
2. Composer
1818
3. Enable `php-curl` extension
1919
4. Enable `php-zip` extension

README_zh-TW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 以上
1515
2. Composer
1616
3. 安裝並開啟 php-curl 擴充套件
1717
4. 安裝並開啟 php-zip 擴充套件

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
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
},

src/Debug/Exceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

src/ResponseBridge.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ;

test/.rr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ http:
44
command: "php psr-worker.php"
55
pool:
66
numWorkers: 1
7-
# maxJobs: 500
7+
# maxJobs: 50
88

99
static:
1010
enable: true

test/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
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.*",

0 commit comments

Comments
 (0)