| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function register(Application $app) |
||
| 12 | { |
||
| 13 | $app['config'] = function ($app) { |
||
| 14 | return (new Config) |
||
| 15 | ->setApiPath($app['config.api_path']) |
||
| 16 | ->setDirectory($app['config.directory']) |
||
| 17 | ->setExt($app['config.ext']); |
||
| 18 | }; |
||
| 19 | |||
| 20 | $app['config.datasources'] = function ($app) { |
||
| 21 | return $app['config'] |
||
| 22 | ->setFileName('datasource'); |
||
| 23 | }; |
||
| 24 | |||
| 25 | $app['config.path'] = function ($app) { |
||
| 26 | return $app['config'] |
||
| 27 | ->setFileName('path'); |
||
| 28 | }; |
||
| 29 | } |
||
| 30 | |||
| 35 |