forked from wallabag/wallabag
Use FQCN as service name for UserRepository
This commit is contained in:
@ -9,6 +9,7 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Wallabag\UserBundle\Entity\User;
|
||||
use Wallabag\UserBundle\Repository\UserRepository;
|
||||
|
||||
class ShowUserCommand extends ContainerAwareCommand
|
||||
{
|
||||
@ -68,6 +69,6 @@ class ShowUserCommand extends ContainerAwareCommand
|
||||
*/
|
||||
private function getUser($username)
|
||||
{
|
||||
return $this->getContainer()->get('wallabag_user.user_repository')->findOneByUserName($username);
|
||||
return $this->getContainer()->get(UserRepository::class)->findOneByUserName($username);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user