2017-12-06 11:49:07 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Vacentral\Providers;
|
|
|
|
|
2018-08-27 02:50:08 +08:00
|
|
|
use App\Services\ModuleService;
|
2019-08-27 00:32:46 +08:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2017-12-06 11:49:07 +08:00
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
protected $moduleSvc;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Boot the application events.
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2018-08-27 02:50:08 +08:00
|
|
|
$this->moduleSvc = app(ModuleService::class);
|
2017-12-06 11:49:07 +08:00
|
|
|
$this->registerConfig();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register config.
|
|
|
|
*/
|
|
|
|
protected function registerConfig()
|
|
|
|
{
|
|
|
|
$this->publishes([
|
|
|
|
__DIR__.'/../Config/config.php' => config_path('vacentral.php'),
|
|
|
|
], 'config');
|
|
|
|
|
|
|
|
$this->mergeConfigFrom(
|
2020-03-06 09:19:12 +08:00
|
|
|
__DIR__.'/../Config/config.php',
|
|
|
|
'vacentral'
|
2017-12-06 11:49:07 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|