1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00
invoiceninja/app/Providers/ConfigServiceProvider.php

30 lines
739 B
PHP
Raw Normal View History

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()
{
// 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([
'config/packages/zizaco/confide/config.php'
]);*/
2015-03-12 01:44:39 +01:00
}
}