2021-06-26 11:23:15 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Providers;
|
2019-10-26 07:12:35 -04:00
|
|
|
|
|
|
|
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 11:23:15 -04:00
|
|
|
*
|
2019-10-26 07:12:35 -04:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function registerLoader()
|
|
|
|
{
|
|
|
|
$this->app->singleton('translation.loader', function ($app) {
|
|
|
|
return new FileLoader($app['files'], $app['path.lang']);
|
|
|
|
});
|
|
|
|
}
|
2021-03-07 17:24:05 -05:00
|
|
|
}
|