murph-skeleton/core/EventSuscriber/SettingEventSubscriber.php
Simon Vieille aafa87ed41 add settings panel
Signed-off-by: Simon Vieille <simon@deblan.fr>
2021-05-02 20:17:39 +02:00

33 lines
708 B
PHP

<?php
namespace App\Core\EventSuscriber;
use App\Core\Event\Setting\SettingEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* class SettingEventSubscriber.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class SettingEventSubscriber implements EventSubscriberInterface
{
protected static int $priority = 0;
public static function getSubscribedEvents()
{
return [
SettingEvent::INIT_EVENT => ['onInit', self::$priority],
SettingEvent::FORM_INIT_EVENT => ['onFormInit', self::$priority],
];
}
public function onInit(SettingEvent $event)
{
}
public function onFormInit(SettingEvent $event)
{
}
}