From ee2cdf45a38830cb8ab1f72586ad07ad7b7e4e64 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Mon, 18 Mar 2019 18:08:23 +0800 Subject: [PATCH] fix bug --- src/Providers/BaseServiceProvider.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Providers/BaseServiceProvider.php b/src/Providers/BaseServiceProvider.php index 73372d9..38f9db5 100644 --- a/src/Providers/BaseServiceProvider.php +++ b/src/Providers/BaseServiceProvider.php @@ -29,14 +29,16 @@ class BaseServiceProvider extends ServiceProvider protected function setupConfig() { $source = realpath(__DIR__ . '/../../config/rpc.php'); - - if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { - $this->publishes([$source => config_path('rpc.php')], 'rpc'); - } elseif ($this->app instanceof LumenApplication) { - $this->app->configure('rpc'); - } - + $this->app->configure('rpc'); +// if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { +// $this->publishes([$source => config_path('rpc.php')], 'rpc'); +// } elseif ($this->app instanceof LumenApplication) { +// $this->app->configure('rpc'); +// } +// var_dump($this->app instanceof LumenApplication); // false +// exit(); $this->mergeConfigFrom($source, 'rpc'); + } public function register()