2015-03-12 01:44:39 +01:00
|
|
|
<?php namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ConfigServiceProvider extends ServiceProvider {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Overwrite any vendor / package configuration.
|
|
|
|
*
|
|
|
|
* This service provider is intended to provide a convenient location for you
|
|
|
|
* to overwrite any "vendor" or package configuration that you may want to
|
|
|
|
* modify before the application handles the incoming request / command.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2015-03-24 08:27:43 +01:00
|
|
|
// Surely there has to be a better way than this?
|
|
|
|
|
|
|
|
app('config')->set('confide', require $this->app->basePath() . '/config/packages/zizaco/confide/config.php');
|
|
|
|
|
|
|
|
/*
|
|
|
|
This doesn't work:
|
2015-03-12 01:44:39 +01:00
|
|
|
config([
|
2015-03-24 08:27:43 +01:00
|
|
|
'config/packages/zizaco/confide/config.php'
|
|
|
|
]);*/
|
2015-03-12 01:44:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|