Move related event things in Event folder

This commit is contained in:
Jeremy Benoist 2016-10-30 09:58:39 +01:00
parent 156bf62758
commit 535bfcbe80
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
8 changed files with 10 additions and 9 deletions

3
.gitignore vendored
View file

@ -25,6 +25,8 @@ web/uploads/
!web/bundles !web/bundles
web/bundles/* web/bundles/*
!web/bundles/wallabagcore !web/bundles/wallabagcore
/web/assets/images/*
!web/assets/images/.gitkeep
# Build # Build
/app/build /app/build
@ -34,7 +36,6 @@ web/bundles/*
/composer.phar /composer.phar
# Data for wallabag # Data for wallabag
data/assets/*
data/db/wallabag*.sqlite data/db/wallabag*.sqlite
# Docker container logs and data # Docker container logs and data

View file

@ -32,13 +32,13 @@ services:
- { name: twig.extension } - { name: twig.extension }
wallabag.locale_listener: wallabag.locale_listener:
class: Wallabag\CoreBundle\EventListener\LocaleListener class: Wallabag\CoreBundle\Event\Listener\LocaleListener
arguments: ["%kernel.default_locale%"] arguments: ["%kernel.default_locale%"]
tags: tags:
- { name: kernel.event_subscriber } - { name: kernel.event_subscriber }
wallabag.user_locale_listener: wallabag.user_locale_listener:
class: Wallabag\CoreBundle\EventListener\UserLocaleListener class: Wallabag\CoreBundle\Event\Listener\UserLocaleListener
arguments: ["@session"] arguments: ["@session"]
tags: tags:
- { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin } - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin }

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\CoreBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\Event\GetResponseEvent;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\CoreBundle\EventListener; namespace Wallabag\CoreBundle\Event\Listener;
use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\CoreBundle\Subscriber; namespace Wallabag\CoreBundle\Event\Subscriber;
use Doctrine\Common\EventSubscriber; use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\ORM\Event\LifecycleEventArgs;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace Wallabag\CoreBundle\Subscriber; namespace Wallabag\CoreBundle\Event\Subscriber;
use Doctrine\Common\EventSubscriber; use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\LoadClassMetadataEventArgs; use Doctrine\ORM\Event\LoadClassMetadataEventArgs;

View file

@ -30,7 +30,7 @@ services:
- "@doctrine" - "@doctrine"
wallabag_core.subscriber.table_prefix: wallabag_core.subscriber.table_prefix:
class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
arguments: arguments:
- "%database_table_prefix%" - "%database_table_prefix%"
tags: tags:
@ -131,7 +131,7 @@ services:
- '%kernel.debug%' - '%kernel.debug%'
wallabag_core.subscriber.sqlite_cascade_delete: wallabag_core.subscriber.sqlite_cascade_delete:
class: Wallabag\CoreBundle\Subscriber\SQLiteCascadeDeleteSubscriber class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
arguments: arguments:
- "@doctrine" - "@doctrine"
tags: tags: