diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-22 10:16:34 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-15 09:35:38 +0100 |
commit | 619cc45359ead519b64129181a07e14160fbbfcb (patch) | |
tree | 328691553a67be72a1156ff976036ed0ac7b85bb /src/Wallabag | |
parent | 516022d60ea5c4e0c18a222590d23190a2c7765f (diff) | |
download | wallabag-619cc45359ead519b64129181a07e14160fbbfcb.tar.gz wallabag-619cc45359ead519b64129181a07e14160fbbfcb.tar.zst wallabag-619cc45359ead519b64129181a07e14160fbbfcb.zip |
Symfony Upgrade Fixer FTW
symfony-upgrade-fixer fix src/Wallabag/
Diffstat (limited to 'src/Wallabag')
41 files changed, 136 insertions, 112 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 354a6f8e..f8a2745a 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -3,13 +3,13 @@ | |||
3 | namespace Wallabag\ApiBundle\Controller; | 3 | namespace Wallabag\ApiBundle\Controller; |
4 | 4 | ||
5 | use FOS\RestBundle\Controller\FOSRestController; | 5 | use FOS\RestBundle\Controller\FOSRestController; |
6 | use Hateoas\Configuration\Route; | ||
7 | use Hateoas\Representation\Factory\PagerfantaFactory; | ||
6 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; | 8 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
7 | use Symfony\Component\HttpFoundation\Request; | 9 | use Symfony\Component\HttpFoundation\Request; |
8 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 11 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\CoreBundle\Entity\Tag; | 12 | use Wallabag\CoreBundle\Entity\Tag; |
11 | use Hateoas\Configuration\Route; | ||
12 | use Hateoas\Representation\Factory\PagerfantaFactory; | ||
13 | 13 | ||
14 | class WallabagRestController extends FOSRestController | 14 | class WallabagRestController extends FOSRestController |
15 | { | 15 | { |
diff --git a/src/Wallabag/ApiBundle/Entity/AccessToken.php b/src/Wallabag/ApiBundle/Entity/AccessToken.php index b1f4e7de..2ff63a83 100644 --- a/src/Wallabag/ApiBundle/Entity/AccessToken.php +++ b/src/Wallabag/ApiBundle/Entity/AccessToken.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\ApiBundle\Entity; | 3 | namespace Wallabag\ApiBundle\Entity; |
4 | 4 | ||
5 | use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken; | ||
6 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken; | ||
7 | 7 | ||
8 | /** | 8 | /** |
9 | * @ORM\Table("oauth2_access_tokens") | 9 | * @ORM\Table("oauth2_access_tokens") |
diff --git a/src/Wallabag/ApiBundle/Entity/AuthCode.php b/src/Wallabag/ApiBundle/Entity/AuthCode.php index 81398158..4d4b09fe 100644 --- a/src/Wallabag/ApiBundle/Entity/AuthCode.php +++ b/src/Wallabag/ApiBundle/Entity/AuthCode.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\ApiBundle\Entity; | 3 | namespace Wallabag\ApiBundle\Entity; |
4 | 4 | ||
5 | use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode; | ||
6 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode; | ||
7 | 7 | ||
8 | /** | 8 | /** |
9 | * @ORM\Table("oauth2_auth_codes") | 9 | * @ORM\Table("oauth2_auth_codes") |
diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php index d449870a..c04ed0f6 100644 --- a/src/Wallabag/ApiBundle/Entity/Client.php +++ b/src/Wallabag/ApiBundle/Entity/Client.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\ApiBundle\Entity; | 3 | namespace Wallabag\ApiBundle\Entity; |
4 | 4 | ||
5 | use FOS\OAuthServerBundle\Entity\Client as BaseClient; | ||
6 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use FOS\OAuthServerBundle\Entity\Client as BaseClient; | ||
7 | 7 | ||
8 | /** | 8 | /** |
9 | * @ORM\Table("oauth2_clients") | 9 | * @ORM\Table("oauth2_clients") |
diff --git a/src/Wallabag/ApiBundle/Entity/RefreshToken.php b/src/Wallabag/ApiBundle/Entity/RefreshToken.php index be2c1d2e..6d0cab68 100644 --- a/src/Wallabag/ApiBundle/Entity/RefreshToken.php +++ b/src/Wallabag/ApiBundle/Entity/RefreshToken.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\ApiBundle\Entity; | 3 | namespace Wallabag\ApiBundle\Entity; |
4 | 4 | ||
5 | use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken; | ||
6 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken; | ||
7 | 7 | ||
8 | /** | 8 | /** |
9 | * @ORM\Table("oauth2_refresh_tokens") | 9 | * @ORM\Table("oauth2_refresh_tokens") |
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index e791d4dd..941cb8cd 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -3,15 +3,16 @@ | |||
3 | namespace Wallabag\CoreBundle\Command; | 3 | namespace Wallabag\CoreBundle\Command; |
4 | 4 | ||
5 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | 5 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
6 | use Symfony\Component\Console\Helper\Table; | ||
7 | use Symfony\Component\Console\Input\ArrayInput; | ||
6 | use Symfony\Component\Console\Input\InputInterface; | 8 | use Symfony\Component\Console\Input\InputInterface; |
7 | use Symfony\Component\Console\Input\InputOption; | 9 | use Symfony\Component\Console\Input\InputOption; |
8 | use Symfony\Component\Console\Input\ArrayInput; | ||
9 | use Symfony\Component\Console\Output\OutputInterface; | ||
10 | use Symfony\Component\Console\Output\NullOutput; | 10 | use Symfony\Component\Console\Output\NullOutput; |
11 | use Symfony\Component\Console\Question\Question; | 11 | use Symfony\Component\Console\Output\OutputInterface; |
12 | use Symfony\Component\Console\Question\ConfirmationQuestion; | 12 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
13 | use Symfony\Component\Console\Helper\Table; | 13 | use Symfony\Component\Console\Question\Question; |
14 | use Wallabag\CoreBundle\Entity\Config; | 14 | use Wallabag\CoreBundle\Entity\Config; |
15 | use Wallabag\UserBundle\Entity\User; | ||
15 | 16 | ||
16 | class InstallCommand extends ContainerAwareCommand | 17 | class InstallCommand extends ContainerAwareCommand |
17 | { | 18 | { |
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 7a187710..f51ccaa4 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -4,17 +4,17 @@ namespace Wallabag\CoreBundle\Controller; | |||
4 | 4 | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | use Symfony\Component\HttpFoundation\Request; | ||
8 | use Symfony\Component\HttpFoundation\JsonResponse; | 7 | use Symfony\Component\HttpFoundation\JsonResponse; |
8 | use Symfony\Component\HttpFoundation\Request; | ||
9 | use Wallabag\CoreBundle\Entity\Config; | 9 | use Wallabag\CoreBundle\Entity\Config; |
10 | use Wallabag\CoreBundle\Entity\TaggingRule; | 10 | use Wallabag\CoreBundle\Entity\TaggingRule; |
11 | use Wallabag\UserBundle\Entity\User; | ||
12 | use Wallabag\CoreBundle\Form\Type\ChangePasswordType; | 11 | use Wallabag\CoreBundle\Form\Type\ChangePasswordType; |
13 | use Wallabag\CoreBundle\Form\Type\UserInformationType; | ||
14 | use Wallabag\CoreBundle\Form\Type\TaggingRuleType; | ||
15 | use Wallabag\CoreBundle\Form\Type\NewUserType; | 12 | use Wallabag\CoreBundle\Form\Type\NewUserType; |
16 | use Wallabag\CoreBundle\Form\Type\RssType; | 13 | use Wallabag\CoreBundle\Form\Type\RssType; |
14 | use Wallabag\CoreBundle\Form\Type\TaggingRuleType; | ||
15 | use Wallabag\CoreBundle\Form\Type\UserInformationType; | ||
17 | use Wallabag\CoreBundle\Tools\Utils; | 16 | use Wallabag\CoreBundle\Tools\Utils; |
17 | use Wallabag\UserBundle\Entity\User; | ||
18 | 18 | ||
19 | class ConfigController extends Controller | 19 | class ConfigController extends Controller |
20 | { | 20 | { |
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 37f7ab60..c1b5a71b 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -2,16 +2,16 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Controller; | 3 | namespace Wallabag\CoreBundle\Controller; |
4 | 4 | ||
5 | use Pagerfanta\Adapter\DoctrineORMAdapter; | ||
6 | use Pagerfanta\Pagerfanta; | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 8 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | use Symfony\Component\HttpFoundation\Request; | 9 | use Symfony\Component\HttpFoundation\Request; |
8 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | 10 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
9 | use Wallabag\CoreBundle\Entity\Entry; | 11 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\CoreBundle\Form\Type\NewEntryType; | ||
11 | use Wallabag\CoreBundle\Form\Type\EditEntryType; | ||
12 | use Wallabag\CoreBundle\Filter\EntryFilterType; | 12 | use Wallabag\CoreBundle\Filter\EntryFilterType; |
13 | use Pagerfanta\Adapter\DoctrineORMAdapter; | 13 | use Wallabag\CoreBundle\Form\Type\EditEntryType; |
14 | use Pagerfanta\Pagerfanta; | 14 | use Wallabag\CoreBundle\Form\Type\NewEntryType; |
15 | 15 | ||
16 | class EntryController extends Controller | 16 | class EntryController extends Controller |
17 | { | 17 | { |
diff --git a/src/Wallabag/CoreBundle/Controller/RssController.php b/src/Wallabag/CoreBundle/Controller/RssController.php index 023a6228..2b7ef598 100644 --- a/src/Wallabag/CoreBundle/Controller/RssController.php +++ b/src/Wallabag/CoreBundle/Controller/RssController.php | |||
@@ -2,13 +2,13 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Controller; | 3 | namespace Wallabag\CoreBundle\Controller; |
4 | 4 | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 5 | use Pagerfanta\Adapter\DoctrineORMAdapter; |
6 | use Pagerfanta\Pagerfanta; | ||
6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
8 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 9 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | use Wallabag\UserBundle\Entity\User; | ||
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Pagerfanta\Adapter\DoctrineORMAdapter; | 11 | use Wallabag\UserBundle\Entity\User; |
11 | use Pagerfanta\Pagerfanta; | ||
12 | 12 | ||
13 | class RssController extends Controller | 13 | class RssController extends Controller |
14 | { | 14 | { |
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 64d53f0c..682cc6e6 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -5,9 +5,9 @@ namespace Wallabag\CoreBundle\Controller; | |||
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | use Wallabag\CoreBundle\Form\Type\NewTagType; | ||
9 | use Wallabag\CoreBundle\Entity\Tag; | ||
10 | use Wallabag\CoreBundle\Entity\Entry; | 8 | use Wallabag\CoreBundle\Entity\Entry; |
9 | use Wallabag\CoreBundle\Entity\Tag; | ||
10 | use Wallabag\CoreBundle\Form\Type\NewTagType; | ||
11 | 11 | ||
12 | class TagController extends Controller | 12 | class TagController extends Controller |
13 | { | 13 | { |
diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index 330cc957..9ff9b732 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |||
@@ -2,10 +2,10 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\DependencyInjection; | 3 | namespace Wallabag\CoreBundle\DependencyInjection; |
4 | 4 | ||
5 | use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
6 | use Symfony\Component\Config\FileLocator; | 5 | use Symfony\Component\Config\FileLocator; |
7 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
8 | use Symfony\Component\DependencyInjection\Loader; | 7 | use Symfony\Component\DependencyInjection\Loader; |
8 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; | ||
9 | 9 | ||
10 | class WallabagCoreExtension extends Extension | 10 | class WallabagCoreExtension extends Extension |
11 | { | 11 | { |
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index f11a7786..24b24dbb 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -4,10 +4,10 @@ namespace Wallabag\CoreBundle\Entity; | |||
4 | 4 | ||
5 | use Doctrine\Common\Collections\ArrayCollection; | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | use Doctrine\ORM\Mapping as ORM; | 6 | use Doctrine\ORM\Mapping as ORM; |
7 | use Symfony\Component\Validator\Constraints as Assert; | ||
8 | use Hateoas\Configuration\Annotation as Hateoas; | 7 | use Hateoas\Configuration\Annotation as Hateoas; |
9 | use JMS\Serializer\Annotation\Groups; | 8 | use JMS\Serializer\Annotation\Groups; |
10 | use JMS\Serializer\Annotation\XmlRoot; | 9 | use JMS\Serializer\Annotation\XmlRoot; |
10 | use Symfony\Component\Validator\Constraints as Assert; | ||
11 | use Wallabag\UserBundle\Entity\User; | 11 | use Wallabag\UserBundle\Entity\User; |
12 | 12 | ||
13 | /** | 13 | /** |
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 0689c7b3..c1940e99 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php | |||
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Entity; | 3 | namespace Wallabag\CoreBundle\Entity; |
4 | 4 | ||
5 | use Doctrine\Common\Collections\ArrayCollection; | ||
5 | use Doctrine\ORM\Mapping as ORM; | 6 | use Doctrine\ORM\Mapping as ORM; |
6 | use JMS\Serializer\Annotation\XmlRoot; | ||
7 | use JMS\Serializer\Annotation\ExclusionPolicy; | 7 | use JMS\Serializer\Annotation\ExclusionPolicy; |
8 | use JMS\Serializer\Annotation\Expose; | 8 | use JMS\Serializer\Annotation\Expose; |
9 | use Doctrine\Common\Collections\ArrayCollection; | ||
10 | use Gedmo\Mapping\Annotation as Gedmo; | 9 | use Gedmo\Mapping\Annotation as Gedmo; |
10 | use JMS\Serializer\Annotation\XmlRoot; | ||
11 | 11 | ||
12 | /** | 12 | /** |
13 | * Tag. | 13 | * Tag. |
diff --git a/src/Wallabag/CoreBundle/Entity/TaggingRule.php b/src/Wallabag/CoreBundle/Entity/TaggingRule.php index 329d7ff8..28914cc1 100644 --- a/src/Wallabag/CoreBundle/Entity/TaggingRule.php +++ b/src/Wallabag/CoreBundle/Entity/TaggingRule.php | |||
@@ -3,8 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Entity; | 3 | namespace Wallabag\CoreBundle\Entity; |
4 | 4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | use Symfony\Component\Validator\Constraints as Assert; | ||
7 | use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert; | 6 | use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert; |
7 | use Symfony\Component\Validator\Constraints as Assert; | ||
8 | 8 | ||
9 | /** | 9 | /** |
10 | * Tagging rule. | 10 | * Tagging rule. |
diff --git a/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php b/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php index cfdbfe97..cabb3eca 100644 --- a/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php +++ b/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Event\Subscriber; | 3 | namespace Wallabag\CoreBundle\Event\Subscriber; |
4 | 4 | ||
5 | use Lexik\Bundle\FormFilterBundle\Event\Subscriber\DoctrineORMSubscriber; | ||
6 | use Lexik\Bundle\FormFilterBundle\Event\GetFilterConditionEvent; | 5 | use Lexik\Bundle\FormFilterBundle\Event\GetFilterConditionEvent; |
6 | use Lexik\Bundle\FormFilterBundle\Event\Subscriber\DoctrineORMSubscriber; | ||
7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
8 | 8 | ||
9 | /** | 9 | /** |
diff --git a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php index 80f59504..05deac0a 100644 --- a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php +++ b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\EventListener; | 3 | namespace Wallabag\CoreBundle\EventListener; |
4 | 4 | ||
5 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
5 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; | 6 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
6 | use Symfony\Component\HttpKernel\KernelEvents; | 7 | use Symfony\Component\HttpKernel\KernelEvents; |
7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
8 | 8 | ||
9 | /** | 9 | /** |
10 | * @see http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html | 10 | * @see http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html |
diff --git a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php index 68c25f1f..1c9160d5 100644 --- a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php +++ b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php | |||
@@ -2,11 +2,11 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\EventListener; | 3 | namespace Wallabag\CoreBundle\EventListener; |
4 | 4 | ||
5 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; | ||
6 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
7 | use Doctrine\ORM\EntityManager; | 5 | use Doctrine\ORM\EntityManager; |
8 | use FOS\UserBundle\Event\FilterUserResponseEvent; | 6 | use FOS\UserBundle\Event\FilterUserResponseEvent; |
9 | use FOS\UserBundle\FOSUserEvents; | 7 | use FOS\UserBundle\FOSUserEvents; |
8 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; | ||
9 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
10 | use Wallabag\CoreBundle\Entity\Config; | 10 | use Wallabag\CoreBundle\Entity\Config; |
11 | 11 | ||
12 | class RegistrationConfirmedListener implements EventSubscriberInterface | 12 | class RegistrationConfirmedListener implements EventSubscriberInterface |
diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index 32de21ca..e0a1cb31 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php | |||
@@ -2,11 +2,11 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Filter; | 3 | namespace Wallabag\CoreBundle\Filter; |
4 | 4 | ||
5 | use Doctrine\ORM\EntityRepository; | ||
6 | use Lexik\Bundle\FormFilterBundle\Filter\Query\QueryInterface; | ||
5 | use Symfony\Component\Form\AbstractType; | 7 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | use Lexik\Bundle\FormFilterBundle\Filter\Query\QueryInterface; | ||
9 | use Doctrine\ORM\EntityRepository; | ||
10 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
11 | 11 | ||
12 | class EntryFilterType extends AbstractType | 12 | class EntryFilterType extends AbstractType |
@@ -77,7 +77,7 @@ class EntryFilterType extends AbstractType | |||
77 | ; | 77 | ; |
78 | } | 78 | } |
79 | 79 | ||
80 | public function getName() | 80 | public function getBlockPrefix() |
81 | { | 81 | { |
82 | return 'entry_filter'; | 82 | return 'entry_filter'; |
83 | } | 83 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php index 82e1954d..615b8169 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php | |||
@@ -3,6 +3,9 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | ||
8 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 9 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; | 10 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
8 | use Symfony\Component\Validator\Constraints; | 11 | use Symfony\Component\Validator\Constraints; |
@@ -12,10 +15,10 @@ class ChangePasswordType extends AbstractType | |||
12 | public function buildForm(FormBuilderInterface $builder, array $options) | 15 | public function buildForm(FormBuilderInterface $builder, array $options) |
13 | { | 16 | { |
14 | $builder | 17 | $builder |
15 | ->add('old_password', 'password', array( | 18 | ->add('old_password', PasswordType::class, array( |
16 | 'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')), | 19 | 'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')), |
17 | )) | 20 | )) |
18 | ->add('new_password', 'repeated', array( | 21 | ->add('new_password', RepeatedType::class, array( |
19 | 'type' => 'password', | 22 | 'type' => 'password', |
20 | 'invalid_message' => 'The password fields must match.', | 23 | 'invalid_message' => 'The password fields must match.', |
21 | 'required' => true, | 24 | 'required' => true, |
@@ -29,11 +32,11 @@ class ChangePasswordType extends AbstractType | |||
29 | new Constraints\NotBlank(), | 32 | new Constraints\NotBlank(), |
30 | ), | 33 | ), |
31 | )) | 34 | )) |
32 | ->add('save', 'submit') | 35 | ->add('save', SubmitType::class) |
33 | ; | 36 | ; |
34 | } | 37 | } |
35 | 38 | ||
36 | public function getName() | 39 | public function getBlockPrefix() |
37 | { | 40 | { |
38 | return 'change_passwd'; | 41 | return 'change_passwd'; |
39 | } | 42 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 1f0ad89d..88082a04 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |||
@@ -3,6 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 10 | ||
@@ -28,15 +30,15 @@ class ConfigType extends AbstractType | |||
28 | public function buildForm(FormBuilderInterface $builder, array $options) | 30 | public function buildForm(FormBuilderInterface $builder, array $options) |
29 | { | 31 | { |
30 | $builder | 32 | $builder |
31 | ->add('theme', 'choice', array( | 33 | ->add('theme', ChoiceType::class, array( |
32 | 'choices' => array_flip($this->themes), | 34 | 'choices' => array_flip($this->themes), |
33 | 'choices_as_values' => true, | 35 | 'choices_as_values' => true, |
34 | )) | 36 | )) |
35 | ->add('items_per_page') | 37 | ->add('items_per_page') |
36 | ->add('language', 'choice', array( | 38 | ->add('language', ChoiceType::class, array( |
37 | 'choices' => $this->languages, | 39 | 'choices' => $this->languages, |
38 | )) | 40 | )) |
39 | ->add('save', 'submit') | 41 | ->add('save', SubmitType::class) |
40 | ; | 42 | ; |
41 | } | 43 | } |
42 | 44 | ||
@@ -47,7 +49,7 @@ class ConfigType extends AbstractType | |||
47 | )); | 49 | )); |
48 | } | 50 | } |
49 | 51 | ||
50 | public function getName() | 52 | public function getBlockPrefix() |
51 | { | 53 | { |
52 | return 'config'; | 54 | return 'config'; |
53 | } | 55 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 0fa4b71f..0cb29881 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |||
@@ -3,6 +3,9 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
8 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 9 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 10 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 11 | ||
@@ -11,14 +14,14 @@ class EditEntryType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 15 | { |
13 | $builder | 16 | $builder |
14 | ->add('title', 'text', array('required' => true)) | 17 | ->add('title', TextType::class, array('required' => true)) |
15 | ->add('is_public', 'checkbox', array('required' => false)) | 18 | ->add('is_public', CheckboxType::class, array('required' => false)) |
16 | // @todo: add autocomplete | 19 | // @todo: add autocomplete |
17 | // ->add('tags', 'entity', array( | 20 | // ->add('tags', 'entity', array( |
18 | // 'class' => 'Wallabag\CoreBundle\Entity\Tag', | 21 | // 'class' => 'Wallabag\CoreBundle\Entity\Tag', |
19 | // 'choice_translation_domain' => true, | 22 | // 'choice_translation_domain' => true, |
20 | // )) | 23 | // )) |
21 | ->add('save', 'submit') | 24 | ->add('save', SubmitType::class) |
22 | ; | 25 | ; |
23 | } | 26 | } |
24 | 27 | ||
@@ -29,7 +32,7 @@ class EditEntryType extends AbstractType | |||
29 | )); | 32 | )); |
30 | } | 33 | } |
31 | 34 | ||
32 | public function getName() | 35 | public function getBlockPrefix() |
33 | { | 36 | { |
34 | return 'entry'; | 37 | return 'entry'; |
35 | } | 38 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php index cb96d11a..fbce13f1 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php | |||
@@ -3,6 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\UrlType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 10 | ||
@@ -11,8 +13,8 @@ class NewEntryType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 14 | { |
13 | $builder | 15 | $builder |
14 | ->add('url', 'url', array('required' => true)) | 16 | ->add('url', UrlType::class, array('required' => true)) |
15 | ->add('save', 'submit') | 17 | ->add('save', SubmitType::class) |
16 | ; | 18 | ; |
17 | } | 19 | } |
18 | 20 | ||
@@ -23,7 +25,7 @@ class NewEntryType extends AbstractType | |||
23 | )); | 25 | )); |
24 | } | 26 | } |
25 | 27 | ||
26 | public function getName() | 28 | public function getBlockPrefix() |
27 | { | 29 | { |
28 | return 'entry'; | 30 | return 'entry'; |
29 | } | 31 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php index 8e4ab649..0f559031 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php | |||
@@ -3,6 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 10 | ||
@@ -11,8 +13,8 @@ class NewTagType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 14 | { |
13 | $builder | 15 | $builder |
14 | ->add('label', 'text', array('required' => true)) | 16 | ->add('label', TextType::class, array('required' => true)) |
15 | ->add('save', 'submit') | 17 | ->add('save', SubmitType::class) |
16 | ; | 18 | ; |
17 | } | 19 | } |
18 | 20 | ||
@@ -23,7 +25,7 @@ class NewTagType extends AbstractType | |||
23 | )); | 25 | )); |
24 | } | 26 | } |
25 | 27 | ||
26 | public function getName() | 28 | public function getBlockPrefix() |
27 | { | 29 | { |
28 | return 'tag'; | 30 | return 'tag'; |
29 | } | 31 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index 8aabc8bb..e6fff976 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php | |||
@@ -3,6 +3,10 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\EmailType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | ||
8 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
9 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 10 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 11 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | use Symfony\Component\Validator\Constraints; | 12 | use Symfony\Component\Validator\Constraints; |
@@ -12,8 +16,8 @@ class NewUserType extends AbstractType | |||
12 | public function buildForm(FormBuilderInterface $builder, array $options) | 16 | public function buildForm(FormBuilderInterface $builder, array $options) |
13 | { | 17 | { |
14 | $builder | 18 | $builder |
15 | ->add('username', 'text', array('required' => true)) | 19 | ->add('username', TextType::class, array('required' => true)) |
16 | ->add('plainPassword', 'repeated', array( | 20 | ->add('plainPassword', RepeatedType::class, array( |
17 | 'type' => 'password', | 21 | 'type' => 'password', |
18 | 'constraints' => array( | 22 | 'constraints' => array( |
19 | new Constraints\Length(array( | 23 | new Constraints\Length(array( |
@@ -23,8 +27,8 @@ class NewUserType extends AbstractType | |||
23 | new Constraints\NotBlank(), | 27 | new Constraints\NotBlank(), |
24 | ), | 28 | ), |
25 | )) | 29 | )) |
26 | ->add('email', 'email') | 30 | ->add('email', EmailType::class) |
27 | ->add('save', 'submit') | 31 | ->add('save', SubmitType::class) |
28 | ; | 32 | ; |
29 | } | 33 | } |
30 | 34 | ||
@@ -35,7 +39,7 @@ class NewUserType extends AbstractType | |||
35 | )); | 39 | )); |
36 | } | 40 | } |
37 | 41 | ||
38 | public function getName() | 42 | public function getBlockPrefix() |
39 | { | 43 | { |
40 | return 'new_user'; | 44 | return 'new_user'; |
41 | } | 45 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/RssType.php b/src/Wallabag/CoreBundle/Form/Type/RssType.php index 1f7f4c68..def8782c 100644 --- a/src/Wallabag/CoreBundle/Form/Type/RssType.php +++ b/src/Wallabag/CoreBundle/Form/Type/RssType.php | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 7 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 8 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 9 | ||
@@ -12,7 +13,7 @@ class RssType extends AbstractType | |||
12 | { | 13 | { |
13 | $builder | 14 | $builder |
14 | ->add('rss_limit') | 15 | ->add('rss_limit') |
15 | ->add('save', 'submit') | 16 | ->add('save', SubmitType::class) |
16 | ; | 17 | ; |
17 | } | 18 | } |
18 | 19 | ||
@@ -23,7 +24,7 @@ class RssType extends AbstractType | |||
23 | )); | 24 | )); |
24 | } | 25 | } |
25 | 26 | ||
26 | public function getName() | 27 | public function getBlockPrefix() |
27 | { | 28 | { |
28 | return 'rss_config'; | 29 | return 'rss_config'; |
29 | } | 30 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php index 428d94b3..296cec9e 100644 --- a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php +++ b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php | |||
@@ -3,6 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; | 10 | use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; |
@@ -12,8 +14,8 @@ class TaggingRuleType extends AbstractType | |||
12 | public function buildForm(FormBuilderInterface $builder, array $options) | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
13 | { | 15 | { |
14 | $builder | 16 | $builder |
15 | ->add('rule', 'text', array('required' => true)) | 17 | ->add('rule', TextType::class, array('required' => true)) |
16 | ->add('save', 'submit') | 18 | ->add('save', SubmitType::class) |
17 | ; | 19 | ; |
18 | 20 | ||
19 | $tagsField = $builder | 21 | $tagsField = $builder |
@@ -30,7 +32,7 @@ class TaggingRuleType extends AbstractType | |||
30 | )); | 32 | )); |
31 | } | 33 | } |
32 | 34 | ||
33 | public function getName() | 35 | public function getBlockPrefix() |
34 | { | 36 | { |
35 | return 'tagging_rule'; | 37 | return 'tagging_rule'; |
36 | } | 38 | } |
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index e06c937d..f52e409a 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php | |||
@@ -3,6 +3,10 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\EmailType; | ||
8 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
9 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 10 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 11 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 12 | ||
@@ -11,10 +15,10 @@ class UserInformationType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 15 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 16 | { |
13 | $builder | 17 | $builder |
14 | ->add('name', 'text') | 18 | ->add('name', TextType::class) |
15 | ->add('email', 'email') | 19 | ->add('email', EmailType::class) |
16 | ->add('twoFactorAuthentication', 'checkbox', array('required' => false)) | 20 | ->add('twoFactorAuthentication', CheckboxType::class, array('required' => false)) |
17 | ->add('save', 'submit') | 21 | ->add('save', SubmitType::class) |
18 | ->remove('username') | 22 | ->remove('username') |
19 | ->remove('plainPassword') | 23 | ->remove('plainPassword') |
20 | ; | 24 | ; |
@@ -32,7 +36,7 @@ class UserInformationType extends AbstractType | |||
32 | )); | 36 | )); |
33 | } | 37 | } |
34 | 38 | ||
35 | public function getName() | 39 | public function getBlockPrefix() |
36 | { | 40 | { |
37 | return 'update_user'; | 41 | return 'update_user'; |
38 | } | 42 | } |
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index d6a4d094..31a80d6e 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php | |||
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Helper; | 3 | namespace Wallabag\CoreBundle\Helper; |
4 | 4 | ||
5 | use JMS\Serializer; | ||
6 | use JMS\Serializer\SerializationContext; | ||
7 | use JMS\Serializer\SerializerBuilder; | ||
5 | use PHPePub\Core\EPub; | 8 | use PHPePub\Core\EPub; |
6 | use PHPePub\Core\Structure\OPF\DublinCore; | 9 | use PHPePub\Core\Structure\OPF\DublinCore; |
7 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
8 | use JMS\Serializer; | ||
9 | use JMS\Serializer\SerializerBuilder; | ||
10 | use JMS\Serializer\SerializationContext; | ||
11 | 11 | ||
12 | /** | 12 | /** |
13 | * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. | 13 | * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. |
diff --git a/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php b/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php index f7faa2c1..6ea2a4f3 100644 --- a/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php +++ b/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\ParamConverter; | 3 | namespace Wallabag\CoreBundle\ParamConverter; |
4 | 4 | ||
5 | use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; | ||
6 | use Doctrine\Common\Persistence\ManagerRegistry; | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
7 | use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; | ||
8 | use Symfony\Component\HttpFoundation\Request; | 8 | use Symfony\Component\HttpFoundation\Request; |
9 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | 9 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
10 | use Wallabag\UserBundle\Entity\User; | 10 | use Wallabag\UserBundle\Entity\User; |
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 96b1c931..80f737f8 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -2,7 +2,7 @@ services: | |||
2 | wallabag_core.helper.detect_active_theme: | 2 | wallabag_core.helper.detect_active_theme: |
3 | class: Wallabag\CoreBundle\Helper\DetectActiveTheme | 3 | class: Wallabag\CoreBundle\Helper\DetectActiveTheme |
4 | arguments: | 4 | arguments: |
5 | - @security.token_storage | 5 | - "@security.token_storage" |
6 | - %theme% # default theme from parameters.yml | 6 | - %theme% # default theme from parameters.yml |
7 | 7 | ||
8 | # custom form type | 8 | # custom form type |
@@ -22,7 +22,7 @@ services: | |||
22 | wallabag_core.form.type.forgot_password: | 22 | wallabag_core.form.type.forgot_password: |
23 | class: Wallabag\CoreBundle\Form\Type\ForgotPasswordType | 23 | class: Wallabag\CoreBundle\Form\Type\ForgotPasswordType |
24 | arguments: | 24 | arguments: |
25 | - @doctrine | 25 | - "@doctrine" |
26 | tags: | 26 | tags: |
27 | - { name: form.type, alias: forgot_password } | 27 | - { name: form.type, alias: forgot_password } |
28 | 28 | ||
@@ -31,7 +31,7 @@ services: | |||
31 | tags: | 31 | tags: |
32 | - { name: request.param_converter, converter: username_rsstoken_converter } | 32 | - { name: request.param_converter, converter: username_rsstoken_converter } |
33 | arguments: | 33 | arguments: |
34 | - @doctrine | 34 | - "@doctrine" |
35 | 35 | ||
36 | wallabag_core.table_prefix_subscriber: | 36 | wallabag_core.table_prefix_subscriber: |
37 | class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber | 37 | class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber |
@@ -45,23 +45,23 @@ services: | |||
45 | arguments: | 45 | arguments: |
46 | - { error_message: false } | 46 | - { error_message: false } |
47 | calls: | 47 | calls: |
48 | - [ setLogger, [ @logger ] ] | 48 | - [ setLogger, [ "@logger" ] ] |
49 | tags: | 49 | tags: |
50 | - { name: monolog.logger, channel: graby } | 50 | - { name: monolog.logger, channel: graby } |
51 | 51 | ||
52 | wallabag_core.content_proxy: | 52 | wallabag_core.content_proxy: |
53 | class: Wallabag\CoreBundle\Helper\ContentProxy | 53 | class: Wallabag\CoreBundle\Helper\ContentProxy |
54 | arguments: | 54 | arguments: |
55 | - @wallabag_core.graby | 55 | - "@wallabag_core.graby" |
56 | - @wallabag_core.rule_based_tagger | 56 | - "@wallabag_core.rule_based_tagger" |
57 | - @logger | 57 | - "@logger" |
58 | 58 | ||
59 | wallabag_core.rule_based_tagger: | 59 | wallabag_core.rule_based_tagger: |
60 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | 60 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger |
61 | arguments: | 61 | arguments: |
62 | - @rulerz | 62 | - "@rulerz" |
63 | - @wallabag_core.tag_repository | 63 | - "@wallabag_core.tag_repository" |
64 | - @wallabag_core.entry_repository | 64 | - "@wallabag_core.entry_repository" |
65 | 65 | ||
66 | # repository as a service | 66 | # repository as a service |
67 | wallabag_core.entry_repository: | 67 | wallabag_core.entry_repository: |
@@ -79,7 +79,7 @@ services: | |||
79 | wallabag_core.registration_confirmed: | 79 | wallabag_core.registration_confirmed: |
80 | class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener | 80 | class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener |
81 | arguments: | 81 | arguments: |
82 | - @doctrine.orm.entity_manager | 82 | - "@doctrine.orm.entity_manager" |
83 | - %theme% | 83 | - %theme% |
84 | - %items_on_page% | 84 | - %items_on_page% |
85 | - %rss_limit% | 85 | - %rss_limit% |
diff --git a/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php b/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php index 0019eead..9a4b16ee 100644 --- a/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php +++ b/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Subscriber; | 3 | namespace Wallabag\CoreBundle\Subscriber; |
4 | 4 | ||
5 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | ||
6 | use Doctrine\Common\EventSubscriber; | 5 | use Doctrine\Common\EventSubscriber; |
6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | ||
7 | use Doctrine\ORM\Mapping\ClassMetadataInfo; | 7 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
8 | 8 | ||
9 | /** | 9 | /** |
diff --git a/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php b/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php index c9346040..7d75e2b7 100644 --- a/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php +++ b/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php | |||
@@ -2,15 +2,15 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\Command; | 3 | namespace Wallabag\CoreBundle\Tests\Command; |
4 | 4 | ||
5 | use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; | 5 | use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; |
6 | use Wallabag\CoreBundle\Command\InstallCommand; | 6 | use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; |
7 | use Wallabag\CoreBundle\Tests\Mock\InstallCommandMock; | ||
8 | use Symfony\Bundle\FrameworkBundle\Console\Application; | 7 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
9 | use Symfony\Component\Console\Tester\CommandTester; | ||
10 | use Symfony\Component\Console\Input\ArrayInput; | 8 | use Symfony\Component\Console\Input\ArrayInput; |
11 | use Symfony\Component\Console\Output\NullOutput; | 9 | use Symfony\Component\Console\Output\NullOutput; |
12 | use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; | 10 | use Symfony\Component\Console\Tester\CommandTester; |
13 | use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; | 11 | use Wallabag\CoreBundle\Command\InstallCommand; |
12 | use Wallabag\CoreBundle\Tests\Mock\InstallCommandMock; | ||
13 | use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; | ||
14 | 14 | ||
15 | class InstallCommandTest extends WallabagCoreTestCase | 15 | class InstallCommandTest extends WallabagCoreTestCase |
16 | { | 16 | { |
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php index d89bee04..b4c022d5 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php | |||
@@ -4,11 +4,11 @@ namespace Wallabag\CoreBundle\Tests\EventListener; | |||
4 | 4 | ||
5 | use Symfony\Component\EventDispatcher\EventDispatcher; | 5 | use Symfony\Component\EventDispatcher\EventDispatcher; |
6 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | use Symfony\Component\HttpKernel\KernelEvents; | 7 | use Symfony\Component\HttpFoundation\Session\Session; |
8 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | ||
8 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; | 9 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
9 | use Symfony\Component\HttpKernel\HttpKernelInterface; | 10 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
10 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | 11 | use Symfony\Component\HttpKernel\KernelEvents; |
11 | use Symfony\Component\HttpFoundation\Session\Session; | ||
12 | use Wallabag\CoreBundle\EventListener\LocaleListener; | 12 | use Wallabag\CoreBundle\EventListener\LocaleListener; |
13 | 13 | ||
14 | class LocaleListenerTest extends \PHPUnit_Framework_TestCase | 14 | class LocaleListenerTest extends \PHPUnit_Framework_TestCase |
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php index 31283399..7039dc61 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php | |||
@@ -2,13 +2,13 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\EventListener; | 3 | namespace Wallabag\CoreBundle\Tests\EventListener; |
4 | 4 | ||
5 | use FOS\UserBundle\Event\FilterUserResponseEvent; | ||
6 | use FOS\UserBundle\FOSUserEvents; | ||
5 | use Symfony\Component\EventDispatcher\EventDispatcher; | 7 | use Symfony\Component\EventDispatcher\EventDispatcher; |
6 | use Symfony\Component\HttpFoundation\Request; | 8 | use Symfony\Component\HttpFoundation\Request; |
7 | use Symfony\Component\HttpFoundation\Response; | 9 | use Symfony\Component\HttpFoundation\Response; |
8 | use FOS\UserBundle\FOSUserEvents; | ||
9 | use FOS\UserBundle\Event\FilterUserResponseEvent; | ||
10 | use Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener; | ||
11 | use Wallabag\CoreBundle\Entity\Config; | 10 | use Wallabag\CoreBundle\Entity\Config; |
11 | use Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener; | ||
12 | use Wallabag\UserBundle\Entity\User; | 12 | use Wallabag\UserBundle\Entity\User; |
13 | 13 | ||
14 | class RegistrationConfirmedListenerTest extends \PHPUnit_Framework_TestCase | 14 | class RegistrationConfirmedListenerTest extends \PHPUnit_Framework_TestCase |
diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php index 80ddb457..d9ffe30e 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php | |||
@@ -3,12 +3,12 @@ | |||
3 | namespace Wallabag\CoreBundle\Tests\EventListener; | 3 | namespace Wallabag\CoreBundle\Tests\EventListener; |
4 | 4 | ||
5 | use Symfony\Component\HttpFoundation\Request; | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; | ||
7 | use Symfony\Component\HttpFoundation\Session\Session; | 6 | use Symfony\Component\HttpFoundation\Session\Session; |
8 | use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; | 7 | use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; |
9 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | 8 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
10 | use Wallabag\CoreBundle\EventListener\UserLocaleListener; | 9 | use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; |
11 | use Wallabag\CoreBundle\Entity\Config; | 10 | use Wallabag\CoreBundle\Entity\Config; |
11 | use Wallabag\CoreBundle\EventListener\UserLocaleListener; | ||
12 | use Wallabag\UserBundle\Entity\User; | 12 | use Wallabag\UserBundle\Entity\User; |
13 | 13 | ||
14 | class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase | 14 | class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase |
diff --git a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php index ac518dbb..d29984e9 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php | |||
@@ -4,8 +4,8 @@ namespace Wallabag\CoreBundle\Tests\Helper; | |||
4 | 4 | ||
5 | use Psr\Log\NullLogger; | 5 | use Psr\Log\NullLogger; |
6 | use Wallabag\CoreBundle\Entity\Entry; | 6 | use Wallabag\CoreBundle\Entity\Entry; |
7 | use Wallabag\UserBundle\Entity\User; | ||
8 | use Wallabag\CoreBundle\Helper\ContentProxy; | 7 | use Wallabag\CoreBundle\Helper\ContentProxy; |
8 | use Wallabag\UserBundle\Entity\User; | ||
9 | 9 | ||
10 | class ContentProxyTest extends \PHPUnit_Framework_TestCase | 10 | class ContentProxyTest extends \PHPUnit_Framework_TestCase |
11 | { | 11 | { |
diff --git a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php index dee17d65..c43c62c3 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php | |||
@@ -6,8 +6,8 @@ use Wallabag\CoreBundle\Entity\Config; | |||
6 | use Wallabag\CoreBundle\Entity\Entry; | 6 | use Wallabag\CoreBundle\Entity\Entry; |
7 | use Wallabag\CoreBundle\Entity\Tag; | 7 | use Wallabag\CoreBundle\Entity\Tag; |
8 | use Wallabag\CoreBundle\Entity\TaggingRule; | 8 | use Wallabag\CoreBundle\Entity\TaggingRule; |
9 | use Wallabag\UserBundle\Entity\User; | ||
10 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; | 9 | use Wallabag\CoreBundle\Helper\RuleBasedTagger; |
10 | use Wallabag\UserBundle\Entity\User; | ||
11 | 11 | ||
12 | class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | 12 | class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase |
13 | { | 13 | { |
diff --git a/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php b/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php index 1c9a4ad7..b95be133 100644 --- a/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php +++ b/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\Command; | 3 | namespace Wallabag\CoreBundle\Tests\Command; |
4 | 4 | ||
5 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; | ||
6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
7 | use Symfony\Component\HttpFoundation\Request; | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; | ||
8 | use Wallabag\UserBundle\Entity\User; | 8 | use Wallabag\UserBundle\Entity\User; |
9 | 9 | ||
10 | class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase | 10 | class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase |
diff --git a/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php b/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php index a26ff436..49dbb316 100644 --- a/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php +++ b/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php | |||
@@ -2,9 +2,9 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\CoreBundle\Tests\Subscriber; | 3 | namespace Wallabag\CoreBundle\Tests\Subscriber; |
4 | 4 | ||
5 | use Doctrine\ORM\Mapping\ClassMetadata; | ||
6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | ||
7 | use Doctrine\Common\EventManager; | 5 | use Doctrine\Common\EventManager; |
6 | use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | ||
7 | use Doctrine\ORM\Mapping\ClassMetadata; | ||
8 | use Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber; | 8 | use Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber; |
9 | 9 | ||
10 | class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase | 10 | class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase |
diff --git a/src/Wallabag/UserBundle/Controller/ResettingController.php b/src/Wallabag/UserBundle/Controller/ResettingController.php index 8aa1e230..62e27d00 100644 --- a/src/Wallabag/UserBundle/Controller/ResettingController.php +++ b/src/Wallabag/UserBundle/Controller/ResettingController.php | |||
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\UserBundle\Controller; | 3 | namespace Wallabag\UserBundle\Controller; |
4 | 4 | ||
5 | use FOS\UserBundle\FOSUserEvents; | 5 | use FOS\UserBundle\Event\FilterUserResponseEvent; |
6 | use FOS\UserBundle\Event\FormEvent; | 6 | use FOS\UserBundle\Event\FormEvent; |
7 | use FOS\UserBundle\Event\GetResponseUserEvent; | 7 | use FOS\UserBundle\Event\GetResponseUserEvent; |
8 | use FOS\UserBundle\Event\FilterUserResponseEvent; | 8 | use FOS\UserBundle\FOSUserEvents; |
9 | use Symfony\Component\HttpFoundation\Request; | ||
10 | use Symfony\Component\HttpFoundation\RedirectResponse; | 9 | use Symfony\Component\HttpFoundation\RedirectResponse; |
10 | use Symfony\Component\HttpFoundation\Request; | ||
11 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | 11 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
12 | 12 | ||
13 | class ResettingController extends \FOS\UserBundle\Controller\ResettingController | 13 | class ResettingController extends \FOS\UserBundle\Controller\ResettingController |
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index e6528420..4bbb68dc 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php | |||
@@ -6,11 +6,11 @@ use Doctrine\Common\Collections\ArrayCollection; | |||
6 | use Doctrine\ORM\Mapping as ORM; | 6 | use Doctrine\ORM\Mapping as ORM; |
7 | use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface; | 7 | use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface; |
8 | use Scheb\TwoFactorBundle\Model\TrustedComputerInterface; | 8 | use Scheb\TwoFactorBundle\Model\TrustedComputerInterface; |
9 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | 9 | use FOS\UserBundle\Model\User as BaseUser; |
10 | use Symfony\Component\Security\Core\User\UserInterface; | ||
11 | use JMS\Serializer\Annotation\ExclusionPolicy; | 10 | use JMS\Serializer\Annotation\ExclusionPolicy; |
12 | use JMS\Serializer\Annotation\Expose; | 11 | use JMS\Serializer\Annotation\Expose; |
13 | use FOS\UserBundle\Model\User as BaseUser; | 12 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
13 | use Symfony\Component\Security\Core\User\UserInterface; | ||
14 | use Wallabag\CoreBundle\Entity\Config; | 14 | use Wallabag\CoreBundle\Entity\Config; |
15 | use Wallabag\CoreBundle\Entity\Entry; | 15 | use Wallabag\CoreBundle\Entity\Entry; |
16 | 16 | ||