2FAuth/app/Listeners/ToggleIconReplicationToDatabase.php

23 lines
433 B
PHP
Raw Normal View History

2024-10-18 14:28:45 +02:00
<?php
namespace App\Listeners;
2024-11-09 14:12:08 +01:00
use App\Events\StoreIconsInDatabaseSettingChanged;
2024-10-18 14:28:45 +02:00
use App\Facades\IconStore;
class ToggleIconReplicationToDatabase
{
/**
* Create the event listener.
*/
2024-11-09 10:18:45 +01:00
public function __construct() {}
2024-10-18 14:28:45 +02:00
/**
* Handle the event.
*/
2024-11-09 14:12:08 +01:00
public function handle(StoreIconsInDatabaseSettingChanged $event) : void
2024-10-18 14:28:45 +02:00
{
IconStore::setDatabaseReplication($event->newValue);
}
}