Skip to content

Commit 208f099

Browse files
committed
config initservice
1 parent 4c1f4bb commit 208f099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OmnipayServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public function boot()
2727
$this->loadMigrationsFrom(__DIR__.'/Databases/migrations');
2828
// 加载配置
2929
$this->mergeConfigFrom(__DIR__.'/Config/laravel-omnipay.php', 'laravel-omnipay');
30-
$this->mergeConfigFrom(__DIR__.'/Config/config.php', 'omnipay');
31-
$this->initService();
3230
}
3331

3432
/**
@@ -38,13 +36,15 @@ public function boot()
3836
*/
3937
public function register()
4038
{
41-
39+
$this->initService();
4240
}
4341
/**
4442
* 初始化服务
4543
*/
4644
public function initService()
4745
{
46+
47+
$this->mergeConfigFrom(__DIR__.'/Config/config.php', 'omnipay');
4848
//注册providers服务
4949
$this->registerProviders();
5050
}

0 commit comments

Comments
 (0)