2017-12-06 11:49:07 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Vacentral\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2018-08-27 02:50:08 +08:00
|
|
|
use App\Services\ModuleService;
|
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'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|