diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-04 18:35:13 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-04 21:13:28 +0200 |
commit | b52444af8a289e089d1239657cdf6ff06b21b29d (patch) | |
tree | c2754b3049a50ad6743841a609ab0574f241720d /src/Routing/RoutingServiceProvider.php | |
parent | b320fc779063ee80b8f0ba505cb323287ccccbf5 (diff) | |
parent | a1bc763a16ee8be109de5c9053fbc5eded53824e (diff) |
Merge remote-tracking branch 'MyIgel/routing'
Diffstat (limited to 'src/Routing/RoutingServiceProvider.php')
-rw-r--r-- | src/Routing/RoutingServiceProvider.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/Routing/RoutingServiceProvider.php b/src/Routing/RoutingServiceProvider.php deleted file mode 100644 index beaa6a94..00000000 --- a/src/Routing/RoutingServiceProvider.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -namespace Engelsystem\Routing; - -use Engelsystem\Container\ServiceProvider; - -/** - * Registers the url generator depending on config. - */ -class RoutingServiceProvider extends ServiceProvider -{ - - public function register() - { - $config = $this->app->get('config'); - $class = UrlGenerator::class; - if (! $config->get('rewrite_urls', true)) { - $class = LegacyUrlGenerator::class; - } - - $urlGenerator = $this->app->make($class); - $this->app->instance('routing.urlGenerator', $urlGenerator); - $this->app->bind(UrlGeneratorInterface::class, 'routing.urlGenerator'); - } -} |