phpvms/app/Providers/AppServiceProvider.php

34 lines
721 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
2017-06-09 02:28:26 +08:00
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot()
{
# if there's a local.conf.php in the root, then merge that in
if(file_exists(base_path('local.conf.php'))) {
$local_conf = include(base_path('local.conf.php'));
$config = $this->app['config']->get('phpvms', []);
$this->app['config']->set(
'phpvms',
array_merge($config, $local_conf)
);
}
2017-06-09 02:28:26 +08:00
}
/**
* Register any application services.
*/
public function register()
{
2017-06-09 02:28:26 +08:00
}
}