mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 02:51:04 +00:00
Move User repository to Core
This commit is contained in:
parent
a37ded9101
commit
bdeaa93dd8
18 changed files with 18 additions and 18 deletions
|
@ -13,7 +13,7 @@ services:
|
||||||
public: true
|
public: true
|
||||||
|
|
||||||
wallabag_user.user_repository.test:
|
wallabag_user.user_repository.test:
|
||||||
alias: Wallabag\UserBundle\Repository\UserRepository
|
alias: Wallabag\CoreBundle\Repository\UserRepository
|
||||||
public: true
|
public: true
|
||||||
|
|
||||||
filesystem_cache:
|
filesystem_cache:
|
||||||
|
|
|
@ -12,7 +12,7 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\CoreBundle\Repository\EntryRepository;
|
use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class CleanDuplicatesCommand extends Command
|
class CleanDuplicatesCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Wallabag\CoreBundle\Helper\EntriesExport;
|
use Wallabag\CoreBundle\Helper\EntriesExport;
|
||||||
use Wallabag\CoreBundle\Repository\EntryRepository;
|
use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class ExportCommand extends Command
|
class ExportCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\CoreBundle\Helper\UrlHasher;
|
use Wallabag\CoreBundle\Helper\UrlHasher;
|
||||||
use Wallabag\CoreBundle\Repository\EntryRepository;
|
use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class GenerateUrlHashesCommand extends Command
|
class GenerateUrlHashesCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class ListUserCommand extends Command
|
class ListUserCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
||||||
use Wallabag\CoreBundle\Helper\ContentProxy;
|
use Wallabag\CoreBundle\Helper\ContentProxy;
|
||||||
use Wallabag\CoreBundle\Repository\EntryRepository;
|
use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class ReloadEntryCommand extends Command
|
class ReloadEntryCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class ShowUserCommand extends Command
|
class ShowUserCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\CoreBundle\Helper\RuleBasedTagger;
|
use Wallabag\CoreBundle\Helper\RuleBasedTagger;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class TagAllCommand extends Command
|
class TagAllCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,8 +39,8 @@ use Wallabag\CoreBundle\Repository\EntryRepository;
|
||||||
use Wallabag\CoreBundle\Repository\IgnoreOriginUserRuleRepository;
|
use Wallabag\CoreBundle\Repository\IgnoreOriginUserRuleRepository;
|
||||||
use Wallabag\CoreBundle\Repository\TaggingRuleRepository;
|
use Wallabag\CoreBundle\Repository\TaggingRuleRepository;
|
||||||
use Wallabag\CoreBundle\Repository\TagRepository;
|
use Wallabag\CoreBundle\Repository\TagRepository;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\CoreBundle\Tools\Utils;
|
use Wallabag\CoreBundle\Tools\Utils;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
class ConfigController extends AbstractController
|
class ConfigController extends AbstractController
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,10 +18,10 @@ use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\UserBundle\Form\NewUserType;
|
use Wallabag\UserBundle\Form\NewUserType;
|
||||||
use Wallabag\UserBundle\Form\SearchUserType;
|
use Wallabag\UserBundle\Form\SearchUserType;
|
||||||
use Wallabag\UserBundle\Form\UserType;
|
use Wallabag\UserBundle\Form\UserType;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User controller.
|
* User controller.
|
||||||
|
|
|
@ -21,7 +21,7 @@ use Wallabag\CoreBundle\Helper\EntityTimestampsTrait;
|
||||||
* User.
|
* User.
|
||||||
*
|
*
|
||||||
* @XmlRoot("user")
|
* @XmlRoot("user")
|
||||||
* @ORM\Entity(repositoryClass="Wallabag\UserBundle\Repository\UserRepository")
|
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\UserRepository")
|
||||||
* @ORM\Table(name="`user`")
|
* @ORM\Table(name="`user`")
|
||||||
* @ORM\HasLifecycleCallbacks()
|
* @ORM\HasLifecycleCallbacks()
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,7 +8,7 @@ use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInte
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ParamConverter used in the Feed controller to retrieve the right user according to
|
* ParamConverter used in the Feed controller to retrieve the right user according to
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Wallabag\UserBundle\Repository;
|
namespace Wallabag\CoreBundle\Repository;
|
||||||
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
|
@ -14,6 +14,7 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\ImportBundle\Import\ChromeImport;
|
use Wallabag\ImportBundle\Import\ChromeImport;
|
||||||
use Wallabag\ImportBundle\Import\DeliciousImport;
|
use Wallabag\ImportBundle\Import\DeliciousImport;
|
||||||
use Wallabag\ImportBundle\Import\ElcuratorImport;
|
use Wallabag\ImportBundle\Import\ElcuratorImport;
|
||||||
|
@ -25,7 +26,6 @@ use Wallabag\ImportBundle\Import\ReadabilityImport;
|
||||||
use Wallabag\ImportBundle\Import\ShaarliImport;
|
use Wallabag\ImportBundle\Import\ShaarliImport;
|
||||||
use Wallabag\ImportBundle\Import\WallabagV1Import;
|
use Wallabag\ImportBundle\Import\WallabagV1Import;
|
||||||
use Wallabag\ImportBundle\Import\WallabagV2Import;
|
use Wallabag\ImportBundle\Import\WallabagV2Import;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
class ImportCommand extends Command
|
class ImportCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,8 +9,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
use Wallabag\CoreBundle\Entity\Tag;
|
use Wallabag\CoreBundle\Entity\Tag;
|
||||||
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\ImportBundle\Import\AbstractImport;
|
use Wallabag\ImportBundle\Import\AbstractImport;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
abstract class AbstractConsumer
|
abstract class AbstractConsumer
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
use Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter;
|
use Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
|
|
||||||
class UsernameFeedTokenConverterTest extends TestCase
|
class UsernameFeedTokenConverterTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,9 +8,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer;
|
use Wallabag\ImportBundle\Consumer\AMQPEntryConsumer;
|
||||||
use Wallabag\ImportBundle\Import\AbstractImport;
|
use Wallabag\ImportBundle\Import\AbstractImport;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
class AMQPEntryConsumerTest extends TestCase
|
class AMQPEntryConsumerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,9 @@ use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||||
use Wallabag\CoreBundle\Entity\Entry;
|
use Wallabag\CoreBundle\Entity\Entry;
|
||||||
use Wallabag\CoreBundle\Entity\User;
|
use Wallabag\CoreBundle\Entity\User;
|
||||||
|
use Wallabag\CoreBundle\Repository\UserRepository;
|
||||||
use Wallabag\ImportBundle\Consumer\RedisEntryConsumer;
|
use Wallabag\ImportBundle\Consumer\RedisEntryConsumer;
|
||||||
use Wallabag\ImportBundle\Import\AbstractImport;
|
use Wallabag\ImportBundle\Import\AbstractImport;
|
||||||
use Wallabag\UserBundle\Repository\UserRepository;
|
|
||||||
|
|
||||||
class RedisEntryConsumerTest extends TestCase
|
class RedisEntryConsumerTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue