mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-30 19:22:12 +00:00
Use FQCN as service name for UserRepository
This commit is contained in:
parent
97a4e826b5
commit
ff9f719ec5
11 changed files with 39 additions and 32 deletions
|
@ -9,6 +9,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
|||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Wallabag\CoreBundle\Event\EntrySavedEvent;
|
||||
use Wallabag\UserBundle\Repository\UserRepository;
|
||||
|
||||
class ReloadEntryCommand extends ContainerAwareCommand
|
||||
{
|
||||
|
@ -30,7 +31,7 @@ class ReloadEntryCommand extends ContainerAwareCommand
|
|||
if ($username = $input->getArgument('username')) {
|
||||
try {
|
||||
$userId = $this->getContainer()
|
||||
->get('wallabag_user.user_repository')
|
||||
->get(UserRepository::class)
|
||||
->findOneByUserName($username)
|
||||
->getId();
|
||||
} catch (NoResultException $e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue