| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | // Automatically apply the package configuration |
||
| 34 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'lever'); |
||
| 35 | |||
| 36 | // Register the main class to use with the facade |
||
| 37 | $this->app->singleton('lever-php', static function () { |
||
| 38 | return new LeverPhp(config('lever.key'), null, new LaravelRateLimiterStore()); |
||
| 39 | }); |
||
| 40 | |||
| 41 | $this->app->alias(Lever::class, 'Lever'); |
||
| 42 | } |
||
| 44 |