wallabag/src/Event/ConfigUpdatedEvent.php

27 lines
465 B
PHP
Raw Normal View History

<?php
2024-02-19 00:30:12 +00:00
namespace Wallabag\Event;
use Symfony\Contracts\EventDispatcher\Event;
2024-02-19 00:30:12 +00:00
use Wallabag\Entity\Config;
/**
* This event is fired as soon as user configuration is updated.
*/
class ConfigUpdatedEvent extends Event
{
public const NAME = 'config.updated';
protected $config;
public function __construct(Config $entry)
{
$this->config = $entry;
}
public function getConfig(): Config
{
return $this->config;
}
}