| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 225 | public function register() |
|
| 24 | { |
||
| 25 | 225 | $prefix = 'Rocket\Taxonomy\Repositories'; |
|
| 26 | 225 | $this->app->bind("$prefix\TermRepositoryInterface", "$prefix\TermRepository"); |
|
| 27 | 225 | $this->app->bind("$prefix\TermHierarchyRepositoryInterface", "$prefix\TermHierarchyRepository"); |
|
| 28 | |||
| 29 | 225 | $this->app->singleton( |
|
| 30 | 192 | 'taxonomy', |
|
| 31 | 192 | function ($app) { |
|
| 32 | return $app->make(\Rocket\Taxonomy\Taxonomy::class); |
||
| 33 | 225 | } |
|
| 34 | 225 | ); |
|
| 35 | } |
||
| 36 | |||
| 55 |