2FAuth/app/Listeners/ToggleIconReplicationToDatabase.php

25 lines
441 B
PHP
Raw Normal View History

2024-10-18 14:28:45 +02:00
<?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);
}
}