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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<?php
namespace Tests\Wallabag\UserBundle\EventListener;
namespace Tests\Wallabag\CoreBundle\Event\Listener;
use Monolog\Handler\TestHandler;
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\Event\AuthenticationFailureEvent;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Wallabag\UserBundle\EventListener\AuthenticationFailureListener;
use Wallabag\CoreBundle\Event\Listener\AuthenticationFailureListener;
class AuthenticationFailureListenerTest extends TestCase
{

View File

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