summaryrefslogtreecommitdiff
path: root/src/Http/UrlGeneratorServiceProvider.php
blob: 774e3e3589ea1b81683f6edd58722d602f86d1b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Engelsystem\Http;

use Engelsystem\Container\ServiceProvider;

class UrlGeneratorServiceProvider extends ServiceProvider
{
    public function register()
    {
        $urlGenerator = $this->app->make(UrlGenerator::class);
        $this->app->instance(UrlGenerator::class, $urlGenerator);
        $this->app->instance('http.urlGenerator', $urlGenerator);
        $this->app->bind(UrlGeneratorInterface::class, UrlGenerator::class);
    }
}