mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-02 05:03:52 +01:00
23 lines
433 B
PHP
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);
|
|
}
|
|
}
|