Skip to content

Commit

Permalink
allow use without publishing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bottelet committed Sep 15, 2024
1 parent 058140f commit dacfae9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TranslationCheckerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class TranslationCheckerServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->mergeConfigFrom(
__DIR__.'/../config/translator.php', 'translator'
);

$this->app->bind(TranslationManager::class, function ($app) {
return new TranslationManager(
$app->make(SorterContract::class),
Expand Down

0 comments on commit dacfae9

Please sign in to comment.