Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| UrlGeneratorServiceProvider | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| register | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Engelsystem\Http; |
| 6 | |
| 7 | use Engelsystem\Container\ServiceProvider; |
| 8 | |
| 9 | class UrlGeneratorServiceProvider extends ServiceProvider |
| 10 | { |
| 11 | public function register(): void |
| 12 | { |
| 13 | $urlGenerator = $this->app->make(UrlGenerator::class); |
| 14 | $this->app->instance(UrlGenerator::class, $urlGenerator); |
| 15 | $this->app->instance('http.urlGenerator', $urlGenerator); |
| 16 | $this->app->bind(UrlGeneratorInterface::class, UrlGenerator::class); |
| 17 | } |
| 18 | } |