| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Cornford\Setter\Providers; |
||
| 35 | public function register() |
||
| 36 | { |
||
| 37 | $configPath = __DIR__ . '/../../config/config.php'; |
||
| 38 | $this->mergeConfigFrom($configPath, 'setting'); |
||
| 39 | |||
| 40 | $this->app->singleton( |
||
| 41 | 'setting', |
||
| 42 | function($app) |
||
| 43 | { |
||
| 44 | return new Setting( |
||
| 45 | $this->app->make('Illuminate\Database\DatabaseManager'), |
||
| 46 | $this->app->make('Illuminate\Config\Repository'), |
||
| 47 | $this->app->make('Illuminate\Cache\Repository'), |
||
| 48 | $app['config']->get('setting') |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | |||
| 65 |