phpvms/modules/Vacentral/Providers/AppServiceProvider.php

36 lines
710 B
PHP
Raw Normal View History

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;
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(
__DIR__.'/../Config/config.php',
'vacentral'
2017-12-06 11:49:07 +08:00
);
}
}