Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
UrlGeneratorServiceProvider
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Http;
6
7use Engelsystem\Container\ServiceProvider;
8
9class 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}