Skip to content

Commit

Permalink
Force register Datalogix\Translation\TranslationServiceProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Oct 19, 2021
1 parent 85faa43 commit 407f65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/UtilsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,6 +20,7 @@ class UtilsServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->register(TranslationServiceProvider::class, true);
$this->mergeConfigFrom(__DIR__.'/../config/utils.php', 'utils');
}

Expand Down
12 changes: 0 additions & 12 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 407f65f

Please sign in to comment.