mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Cleanup for Custom Translations
This commit is contained in:
parent
ab5dc13662
commit
c29c6ba480
@ -18,7 +18,20 @@ class NinjaTranslationServiceProvider extends TranslationServiceProvider
|
||||
{
|
||||
public function boot()
|
||||
{
|
||||
//parent::boot();
|
||||
|
||||
/**
|
||||
* To reset the translator instance we call
|
||||
*
|
||||
* App::forgetInstance('translator');
|
||||
*
|
||||
* Why? As the translator is a singleton it persists for its
|
||||
* lifecycle
|
||||
*
|
||||
* We _must_ reset the singleton when shifting between
|
||||
* clients/companies otherwise translations will
|
||||
* persist.
|
||||
*
|
||||
*/
|
||||
|
||||
$this->app->singleton('translator', function($app)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user