<?php
declare(strict_types=1);
namespace Juki\Bundle\AppBundle\EventListener;
use Doctrine\ORM\EntityRepository;
use Hitso\Bundle\FormBundle\Event\FormEvent;
use Juki\Bundle\AppBundle\Entity\Dictionary\Shop;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
/**
* Class SectionSubscriber
*
* @package Juki\Bundle\AppBundle\EventListener
*/
final class SectionSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
'section.form_init' => 'onSectionFormInit',
];
}
public function onSectionFormInit(FormEvent $event)
{
$builder = $event->getBuilder();
// $builder->remove('showButton');
// $builder->remove('buttonTitle');
// $builder->remove('buttonUrl');
}
}