38 lines
758 B
PHP
38 lines
758 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\Vacentral\Providers;
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use Illuminate\Database\Eloquent\Factory;
|
||
|
use Route;
|
||
|
|
||
|
|
||
|
class AppServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
protected $defer = false;
|
||
|
protected $moduleSvc;
|
||
|
|
||
|
/**
|
||
|
* Boot the application events.
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
$this->moduleSvc = app('App\Services\ModuleService');
|
||
|
$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'
|
||
|
);
|
||
|
}
|
||
|
}
|