Symfony 5 security.interactive_login event not called

I want to use the security.interactive_login event to update my User’s last login field. The event is successfully registered: php bin/console debug:event-dispatcher security.interactive_login Registered Listeners for "security.interactive_login" Event =========================================================== ——- ———————————————————————— ———- Order Callable Priority ——- ———————————————————————— ———- #1 AppEventSubscriberUserLocaleSubscriber::onSecurityInteractiveLogin()…

How can I use checkboxType Field in Symfony formbuilder?

I am using checkboxType Field with Symfony formbuilder (https://symfony.com/doc/current/reference/forms/types/checkbox.html) $options = [ ‘attr’ => array(‘class’ => ‘checkbox’), ‘data’ => true, ‘mapped’ => false, ‘data_class’ => null, ‘required’ => true, ]; It works well, when the value is set to TRUE….

Symfony Exception Subscriber not triggered

I need to format error messages and output it in JSON format. I have the following event subscriber: namespace AppEventSubscriber; use SymfonyComponentEventDispatcherEventSubscriberInterface; use SymfonyComponentHttpKernelEventExceptionEvent; use SymfonyComponentHttpKernelKernelEvents; final class ExceptionSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents(): array { return [KernelEvents::EXCEPTION…

Why mysql cannot apply fulltext index when I use two different fulltext index in two different table on the same query?

I have just learn FULL TEXT SEARCH in Mysql because search LIKE ‘%%’ is too slow. I have two tables : user(id, email) , user_detail(id, user_id, first_name, last_name). I created two full text index on these tables : ALTER TABLE…

Unable to override and use FOS Registration form

I’ve overrided the FOS RegistrationFormType like this <?php namespace AdminBundleForm; use SymfonyComponentFormAbstractType; use SymfonyComponentFormFormBuilderInterface; use SymfonyComponentOptionsResolverOptionsResolver; use FOSUserBundleFormTypeRegistrationFormType as BaseRegistrationFormType; class RegistrationType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add(‘tel’) ->add(‘sexe’) ->add(‘date_naiss’) ->add(‘ville’)…