Skip to content

Commit

Permalink
Manually register LocalizerServiceProvider (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdullahsari authored Oct 19, 2021
1 parent ee1e394 commit c18bf4b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/LocalizedRoutesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use CodeZero\LocalizedRoutes\Macros\UriTranslationMacro;
use CodeZero\LocalizedRoutes\Macros\LocalizedRoutesMacro;
use CodeZero\Localizer\Localizer;
use CodeZero\Localizer\LocalizerServiceProvider;
use Illuminate\Support\ServiceProvider;

class LocalizedRoutesServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -40,6 +41,7 @@ public function register()
$this->mergeConfig();
$this->registerUrlGenerator();
$this->registerLocaleHandler();
$this->registerProviders();
}

/**
Expand Down Expand Up @@ -79,6 +81,16 @@ protected function mergeConfig()
$this->mergeConfigFrom(__DIR__."/../config/{$this->name}.php", $this->name);
}

/**
* Registers the package dependencies
*
* @return void
*/
protected function registerProviders()
{
$this->app->register(LocalizerServiceProvider::class);
}

/**
* Register the URL generator service.
*
Expand Down

0 comments on commit c18bf4b

Please sign in to comment.