From 34d65ee298afadafda5ce61b63b837fe3b1aeebd Mon Sep 17 00:00:00 2001 From: Antoine Bellion Date: Tue, 27 Feb 2018 23:20:41 +0100 Subject: [PATCH 1/2] Add translator alias --- src/Application.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Application.php b/src/Application.php index 0c45e516..9101ef6f 100644 --- a/src/Application.php +++ b/src/Application.php @@ -821,6 +821,7 @@ protected function registerContainerAliases() 'Laravel\Lumen\Routing\UrlGenerator' => 'url', 'Illuminate\Contracts\Validation\Factory' => 'validator', 'Illuminate\Contracts\View\Factory' => 'view', + 'Illuminate\Contracts\Translation\Translator' => 'translator', ]; } From bdd114939fee77b3ee64ff7d49696fde837804e8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 28 Feb 2018 07:33:26 -0600 Subject: [PATCH 2/2] Update Application.php --- src/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.php b/src/Application.php index 9101ef6f..bb8aaaa7 100644 --- a/src/Application.php +++ b/src/Application.php @@ -818,10 +818,10 @@ protected function registerContainerAliases() 'Illuminate\Contracts\Queue\Queue' => 'queue.connection', 'request' => 'Illuminate\Http\Request', 'Laravel\Lumen\Routing\Router' => 'router', + 'Illuminate\Contracts\Translation\Translator' => 'translator', 'Laravel\Lumen\Routing\UrlGenerator' => 'url', 'Illuminate\Contracts\Validation\Factory' => 'validator', 'Illuminate\Contracts\View\Factory' => 'view', - 'Illuminate\Contracts\Translation\Translator' => 'translator', ]; }