File tree Expand file tree Collapse file tree 7 files changed +32
-50
lines changed
Expand file tree Collapse file tree 7 files changed +32
-50
lines changed Original file line number Diff line number Diff line change 1+ #### 安装roadrunner
2+ ``` shell
3+ php bin/console roadrunner:get
4+ ```
5+
6+ #### 运行
7+ ``` shell
8+ php bin/console start
9+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+
6+ require __DIR__ .'/../vendor/autoload.php ' ;
7+
8+ date_default_timezone_set ('Asia/Shanghai ' );
9+
10+ ! defined ('BASE_PATH ' ) && define ('BASE_PATH ' , __DIR__ . '/../ ' );
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
3-
43declare (strict_types=1 );
54
6- use Symfony \Component \Console \Application ;
7-
8- require __DIR__ .'/../vendor/autoload.php ' ;
9-
10- date_default_timezone_set ('Asia/Shanghai ' );
11-
12- $ application = new Application ();
13-
14- $ commands = require __DIR__ .'/../config/commands.php ' ;
5+ use MicroPHP \Framework \ConsoleApplication ;
156
16- $ application ->addCommands (array_map (static function (string $ command ) {
17- return new $ command ();
18- }, $ commands ));
7+ require_once 'bootstrap.php ' ;
198
209/** @noinspection PhpUnhandledExceptionInspection */
21- $ application -> run ();
10+ ConsoleApplication:: boot ();
Original file line number Diff line number Diff line change 44
55use MicroPHP \Framework \Application ;
66
7- require __DIR__ .'/../vendor/autoload.php ' ;
8-
9- date_default_timezone_set ('Asia/Shanghai ' );
10-
11- ! defined ('BASE_PATH ' ) && define ('BASE_PATH ' , __DIR__ . '/../ ' );
7+ require_once 'bootstrap.php ' ;
128
139/** @noinspection PhpUnhandledExceptionInspection */
14- Application::boot ();
10+ Application::run ();
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- return [];
5+ return [
6+ 'scanner ' => [
7+ 'directories ' => [
8+ 'app ' ,
9+ 'vendor/microphp/framework/src ' ,
10+ ]
11+ ]
12+ ];
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- use App \Command \GetRoadRunnerCommand ;
65
76return [
8- GetRoadRunnerCommand::class,
97];
You can’t perform that action at this time.
0 commit comments