From 5c9d7d68c4723455c085ff370334b83aba808a91 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Sun, 13 Sep 2015 21:05:19 -0400 Subject: [PATCH] Changed Namespace --- README.md | 4 ++-- composer.json | 2 +- src/LocaleSwitcher.php | 3 ++- src/Middleware/SwitchLocale.php | 5 +++-- src/ServiceProvider.php | 8 ++++---- tests/LocaleSwitcherTest.php | 2 +- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5b85e44..0124e8e 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ composer require lykegenes/laravel-locale-switcher Then, add this to your Service Providers : ``` php -Lykegenes\LaravelLocaleSwitcher\ServiceProvider::class, +Lykegenes\LocaleSwitcher\ServiceProvider::class, ``` Optionally, you can publish and edit the configuration file : ``` bash -php artisan vendor:publish --provider="Lykegenes\LaravelLocaleSwitcher\ServiceProvider" --tag=config +php artisan vendor:publish --provider="Lykegenes\LocaleSwitcher\ServiceProvider" --tag=config ``` ## Usage diff --git a/composer.json b/composer.json index ba5fcb3..3094421 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ }, "autoload": { "psr-4": { - "Lykegenes\\LaravelLocaleSwitcher\\": "src/" + "Lykegenes\\LocaleSwitcher\\": "src/" } }, "scripts": { diff --git a/src/LocaleSwitcher.php b/src/LocaleSwitcher.php index b0d70df..f535e19 100644 --- a/src/LocaleSwitcher.php +++ b/src/LocaleSwitcher.php @@ -1,4 +1,5 @@ -publishes([$configPath => $this->getConfigPath()], 'config'); $enabled = $this->app['config']->get('locale-switcher.enabled'); - if (!$enabled) - { + if (!$enabled) { return; } - $this->registerMiddleware('Lykegenes\LaravelLocaleSwitcher\Middleware\SwitchLocale'); + $this->registerMiddleware('Lykegenes\LocaleSwitcher\Middleware\SwitchLocale'); } /** diff --git a/tests/LocaleSwitcherTest.php b/tests/LocaleSwitcherTest.php index 2287b09..f66bea7 100644 --- a/tests/LocaleSwitcherTest.php +++ b/tests/LocaleSwitcherTest.php @@ -1,6 +1,6 @@