| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function register(): void |
||
| 39 | { |
||
| 40 | $configPath = realpath(dirname(__DIR__).'/config/blameable.php'); |
||
| 41 | |||
| 42 | if ($configPath !== false) { |
||
| 43 | $this->mergeConfigFrom($configPath, 'blameable'); |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->app->singleton(BlameableObserver::class, function (): BlameableObserver { |
||
| 47 | return new BlameableObserver(); |
||
| 48 | }); |
||
| 49 | |||
| 50 | $this->app->singleton(BlameableService::class, function (): BlameableService { |
||
| 51 | return new BlameableService(); |
||
| 52 | }); |
||
| 55 |