phpvms/modules/Vacentral/Providers/AppServiceProvider.php
2018-08-26 13:50:08 -05:00

35 lines
698 B
PHP

<?php
namespace Modules\Vacentral\Providers;
use Illuminate\Support\ServiceProvider;
use App\Services\ModuleService;
class AppServiceProvider extends ServiceProvider
{
protected $moduleSvc;
/**
* Boot the application events.
*/
public function boot()
{
$this->moduleSvc = app(ModuleService::class);
$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'
);
}
}