Skip to content

Commit adebcb5

Browse files
committed
add runtime
1 parent 5a9fdee commit adebcb5

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ vendor
1111
composer.lock
1212
.rr.yaml
1313
rr
14+
runtime
1415

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
],
2020
"require": {
2121
"php": ">=8.0",
22-
"microphp/framework": "dev-master"
22+
"microphp/framework": "dev-master",
23+
"microphp/workerman": "dev-master",
24+
"microphp/roadrunner": "dev-master"
2325
},
2426
"require-dev": {
2527
"friendsofphp/php-cs-fixer": "^3.22.0",
@@ -31,5 +33,11 @@
3133
]
3234
},
3335
"minimum-stability": "dev",
34-
"prefer-stable": true
36+
"prefer-stable": true,
37+
"repositories": {
38+
"microphp": {
39+
"type": "path",
40+
"url": "../*"
41+
}
42+
}
3543
}

config/log.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [
6+
'enable_workerman_log' => true,
7+
];

config/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use App\Controller\Index;
66
use App\Middleware\NothingMiddleware;
7-
use League\Route\Router;
87
use MicroPHP\Framework\Http\Response;
8+
use MicroPHP\Framework\Router\Router;
99

1010
$router = new Router();
1111

0 commit comments

Comments
 (0)