mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 22:01:45 +01:00
25 lines
441 B
PHP
25 lines
441 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Listeners;
|
||
|
|
||
|
use App\Events\storeIconsInDatabaseSettingChanged;
|
||
|
use App\Facades\IconStore;
|
||
|
|
||
|
class ToggleIconReplicationToDatabase
|
||
|
{
|
||
|
/**
|
||
|
* Create the event listener.
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Handle the event.
|
||
|
*/
|
||
|
public function handle(storeIconsInDatabaseSettingChanged $event): void
|
||
|
{
|
||
|
IconStore::setDatabaseReplication($event->newValue);
|
||
|
}
|
||
|
}
|