Move User event listeners to Core

This commit is contained in:
Yassine Guedidi 2023-12-30 23:54:25 +01:00
parent d8f2d3c7ee
commit 615adc81ff
7 changed files with 10 additions and 10 deletions

View file

@ -328,7 +328,7 @@ services:
confirmation: '%fos_user.registration.confirmation.from_email%' confirmation: '%fos_user.registration.confirmation.from_email%'
resetting: '%fos_user.resetting.email.from_email%' resetting: '%fos_user.resetting.email.from_email%'
Wallabag\UserBundle\EventListener\CreateConfigListener: Wallabag\CoreBundle\Event\Listener\CreateConfigListener:
arguments: arguments:
$itemsOnPage: "%wallabag_core.items_on_page%" $itemsOnPage: "%wallabag_core.items_on_page%"
$feedLimit: "%wallabag_core.feed_limit%" $feedLimit: "%wallabag_core.feed_limit%"
@ -338,7 +338,7 @@ services:
$listMode: "%wallabag_core.list_mode%" $listMode: "%wallabag_core.list_mode%"
$displayThumbnails: "%wallabag_core.display_thumbnails%" $displayThumbnails: "%wallabag_core.display_thumbnails%"
Wallabag\UserBundle\EventListener\AuthenticationFailureListener: Wallabag\CoreBundle\Event\Listener\AuthenticationFailureListener:
tags: tags:
- { name: kernel.event_listener, event: security.authentication.failure, method: onAuthenticationFailure } - { name: kernel.event_listener, event: security.authentication.failure, method: onAuthenticationFailure }

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\UserBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\UserBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use FOS\UserBundle\Event\UserEvent; use FOS\UserBundle\Event\UserEvent;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\UserBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use FOS\UserBundle\Event\FormEvent; use FOS\UserBundle\Event\FormEvent;
use FOS\UserBundle\FOSUserEvents; use FOS\UserBundle\FOSUserEvents;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\UserBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use FOS\UserBundle\Event\GetResponseUserEvent; use FOS\UserBundle\Event\GetResponseUserEvent;
use FOS\UserBundle\FOSUserEvents; use FOS\UserBundle\FOSUserEvents;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Tests\Wallabag\UserBundle\EventListener; namespace Tests\Wallabag\CoreBundle\Event\Listener;
use Monolog\Handler\TestHandler; use Monolog\Handler\TestHandler;
use Monolog\Logger; use Monolog\Logger;
@ -12,7 +12,7 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\AuthenticationEvents; use Symfony\Component\Security\Core\AuthenticationEvents;
use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent; use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent;
use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Wallabag\UserBundle\EventListener\AuthenticationFailureListener; use Wallabag\CoreBundle\Event\Listener\AuthenticationFailureListener;
class AuthenticationFailureListenerTest extends TestCase class AuthenticationFailureListenerTest extends TestCase
{ {

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Tests\Wallabag\UserBundle\EventListener; namespace Tests\Wallabag\CoreBundle\Event\Listener;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;
use FOS\UserBundle\Event\FilterUserResponseEvent; use FOS\UserBundle\Event\FilterUserResponseEvent;
@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Config;
use Wallabag\CoreBundle\Entity\User; use Wallabag\CoreBundle\Entity\User;
use Wallabag\UserBundle\EventListener\CreateConfigListener; use Wallabag\CoreBundle\Event\Listener\CreateConfigListener;
class CreateConfigListenerTest extends TestCase class CreateConfigListenerTest extends TestCase
{ {