| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 28 | public function register() |
||
| 29 | { |
||
| 30 | $this->app->singleton('ChuckSite', function () { |
||
| 31 | $site = Site::first(); |
||
| 32 | if ($site == null) { |
||
| 33 | throw new Exception('Whoops! No Site Defined...'); |
||
| 34 | } |
||
| 35 | |||
| 36 | return new \Chuckbe\Chuckcms\Chuck\Accessors\Site($site, \App::make(SiteRepository::class), \App::make(ModuleRepository::class)); |
||
| 37 | }); |
||
| 40 |