mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-22 01:21:00 -04:00
35 lines
550 B
PHP
35 lines
550 B
PHP
<?php namespace App\Listeners;
|
|
|
|
use Auth;
|
|
|
|
use App\Events\UserSettingsChanged;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Contracts\Queue\ShouldBeQueued;
|
|
|
|
class HandleUserSettingsChanged {
|
|
|
|
/**
|
|
* Create the event handler.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @param UserSettingsChanged $event
|
|
* @return void
|
|
*/
|
|
public function handle(UserSettingsChanged $event)
|
|
{
|
|
$account = Auth::user()->account;
|
|
$account->loadLocalizationSettings();
|
|
}
|
|
|
|
}
|