| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function register(): void |
||
| 24 | { |
||
| 25 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-urls-shortener'); |
||
| 26 | |||
| 27 | $this->app->bind(Shortener::class, function () { |
||
| 28 | $hash = $this->createHashids(); |
||
| 29 | $route = config('laravel-urls-shortener.route'); |
||
| 30 | |||
| 31 | return new Shortener($hash, $route); |
||
| 32 | }); |
||
| 33 | |||
| 34 | $this->app->alias(Shortener::class, 'shortener'); |
||
| 35 | } |
||
| 36 | |||
| 46 |