| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 32 | public function register(Container $container) |
|
| 26 | { |
||
| 27 | 32 | $dir = app()->getPath().'/config'; |
|
| 28 | 32 | $container->get('config')->load($dir.'/config.php'); |
|
| 29 | 32 | $container->get('config')->merge([ |
|
| 30 | 32 | 'database' => load($dir.'/database.php'), |
|
| 31 | 32 | 'cache' => load($dir.'/cache.php'), |
|
| 32 | 32 | ]); |
|
| 33 | 32 | if (file_exists(app()->getPath().'/.env.yml')) { |
|
| 34 | 32 | config()->merge(load(app()->getPath().'/.env.yml')); |
|
| 35 | 32 | } |
|
| 36 | 32 | } |
|
| 37 | } |
||
| 38 |