mirror of
https://github.com/wallabag/wallabag.git
synced 2024-09-28 14:22:02 +00:00
27 lines
487 B
PHP
27 lines
487 B
PHP
|
<?php
|
||
|
|
||
|
namespace Wallabag\CoreBundle\Event;
|
||
|
|
||
|
use Symfony\Contracts\EventDispatcher\Event;
|
||
|
use Wallabag\CoreBundle\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;
|
||
|
}
|
||
|
}
|