Skip to content

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Mar 1, 2020
1 parent ec04f50 commit 3c1914d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
// +----------------------------------------------------------------------
namespace think\app;

use think\facade\Event;
use think\Service as BaseService;

class Service extends BaseService
{
public function register()
public function boot()
{
Event::listen('HttpRun', function () {
$this->app->event->listen('HttpRun', function () {
$this->app->middleware->add(MultiApp::class);
});

Expand Down

0 comments on commit 3c1914d

Please # to comment.