diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-22 03:10:08 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-22 03:10:08 +0200 |
commit | 73c9d923e7cc77847cfcbff4b90ad4815699a4fa (patch) | |
tree | 76000712338c18a37a433b365cd32a72de2b1805 /src | |
parent | b0e7bc0df2eb4975223582089c7a928903e8cd14 (diff) |
Renamed RoutingServiceProvider to Http\UrlGeneratorServiceProvider
Diffstat (limited to 'src')
-rw-r--r-- | src/Http/UrlGenerator.php (renamed from src/Routing/UrlGenerator.php) | 2 | ||||
-rw-r--r-- | src/Http/UrlGeneratorServiceProvider.php (renamed from src/Routing/RoutingServiceProvider.php) | 6 | ||||
-rw-r--r-- | src/helpers.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/Routing/UrlGenerator.php b/src/Http/UrlGenerator.php index 6df52425..132fefc7 100644 --- a/src/Routing/UrlGenerator.php +++ b/src/Http/UrlGenerator.php @@ -1,6 +1,6 @@ <?php -namespace Engelsystem\Routing; +namespace Engelsystem\Http; class UrlGenerator { diff --git a/src/Routing/RoutingServiceProvider.php b/src/Http/UrlGeneratorServiceProvider.php index b7db1383..37304076 100644 --- a/src/Routing/RoutingServiceProvider.php +++ b/src/Http/UrlGeneratorServiceProvider.php @@ -1,14 +1,14 @@ <?php -namespace Engelsystem\Routing; +namespace Engelsystem\Http; use Engelsystem\Container\ServiceProvider; -class RoutingServiceProvider extends ServiceProvider +class UrlGeneratorServiceProvider extends ServiceProvider { public function register() { $urlGenerator = $this->app->make(UrlGenerator::class); - $this->app->instance('routing.urlGenerator', $urlGenerator); + $this->app->instance('http.urlGenerator', $urlGenerator); } } diff --git a/src/helpers.php b/src/helpers.php index 01fb10bd..a90b2462 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -6,7 +6,7 @@ use Engelsystem\Config\Config; use Engelsystem\Http\Request; use Engelsystem\Http\Response; use Engelsystem\Renderer\Renderer; -use Engelsystem\Routing\UrlGenerator; +use Engelsystem\Http\UrlGenerator; use Symfony\Component\HttpFoundation\Session\SessionInterface; /** @@ -125,7 +125,7 @@ function session($key = null, $default = null) */ function url($path = null, $parameters = []) { - $urlGenerator = app('routing.urlGenerator'); + $urlGenerator = app('http.urlGenerator'); if (is_null($path)) { return $urlGenerator; |