2FAuth/app/Listeners/ToggleIconReplicationToDatabase.php
2024-11-09 10:18:45 +01:00

23 lines
433 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);
}
}