From 407f65f3ef7198eac8561cb8920fea97143ea126 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Tue, 19 Oct 2021 09:56:05 -0300 Subject: [PATCH] Force register `Datalogix\Translation\TranslationServiceProvider` --- src/UtilsServiceProvider.php | 2 ++ tests/TestCase.php | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/UtilsServiceProvider.php b/src/UtilsServiceProvider.php index e85cbd3..c4d31a3 100644 --- a/src/UtilsServiceProvider.php +++ b/src/UtilsServiceProvider.php @@ -2,6 +2,7 @@ namespace Datalogix\Utils; +use Datalogix\Translation\TranslationServiceProvider; use Datalogix\Utils\Http\Middleware\HttpsProtocolMiddleware; use Illuminate\Contracts\Http\Kernel; use Illuminate\Database\Eloquent\Model; @@ -19,6 +20,7 @@ class UtilsServiceProvider extends ServiceProvider */ public function register() { + $this->app->register(TranslationServiceProvider::class, true); $this->mergeConfigFrom(__DIR__.'/../config/utils.php', 'utils'); } diff --git a/tests/TestCase.php b/tests/TestCase.php index 2930e4d..ca08168 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,23 +2,11 @@ namespace Datalogix\Utils\Tests; -use Datalogix\Translation\TranslationServiceProvider; use Datalogix\Utils\UtilsServiceProvider; use GrahamCampbell\TestBench\AbstractPackageTestCase; abstract class TestCase extends AbstractPackageTestCase { - /** - * Get the required service providers. - * - * @param \Illuminate\Contracts\Foundation\Application $app - * @return string[] - */ - protected function getRequiredServiceProviders($app) - { - return [TranslationServiceProvider::class]; - } - /** * Get the service provider class. *