| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | // Automatically apply the package configuration |
||
| 27 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'doudian'); |
||
| 28 | |||
| 29 | // Register the main class to use with the facade |
||
| 30 | $this->app->singleton('doudian', function () { |
||
| 31 | $config = config('doudian'); |
||
| 32 | |||
| 33 | return new DouDian($config); |
||
| 34 | }); |
||
| 37 |