BookStack/app/Providers/TranslationServiceProvider.php

23 lines
588 B
PHP
Raw Normal View History

2021-06-26 23:23:15 +08:00
<?php
namespace BookStack\Providers;
use BookStack\Translation\FileLoader;
use Illuminate\Translation\TranslationServiceProvider as BaseProvider;
class TranslationServiceProvider extends BaseProvider
{
/**
* Register the translation line loader.
* Overrides the default register action from Laravel so a custom loader can be used.
2021-06-26 23:23:15 +08:00
*
* @return void
*/
protected function registerLoader()
{
$this->app->singleton('translation.loader', function ($app) {
return new FileLoader($app['files'], $app['path.lang']);
});
}
2021-03-08 06:24:05 +08:00
}