blessing-skin-server/app/Providers/TranslationServiceProvider.php
2018-07-22 11:06:16 +08:00

17 lines
457 B
PHP

<?php
namespace App\Providers;
use App\Services\TranslationLoader;
use Illuminate\Translation\TranslationServiceProvider as IlluminateTranslationServiceProvider;
class TranslationServiceProvider extends IlluminateTranslationServiceProvider
{
protected function registerLoader()
{
$this->app->singleton('translation.loader', function ($app) {
return new TranslationLoader($app['files'], $app['path.lang']);
});
}
}