Permalink
Browse files

[Command] fixed typo

  • Loading branch information...
1 parent 2fc615e commit f9f6fb4fc35d23ec7df4a1c42702aa60558f79d5 @redpanda redpanda committed with stof Jan 2, 2011
@@ -53,7 +53,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$userManager = $this->container->get('fos_user.user_manager');
- $user = $userManager->findOneByUsername($input->getArgument('username'));
+ $user = $userManager->findUserByUsername($input->getArgument('username'));
if (!$user) {
throw new \InvalidArgumentException(sprintf('The user "%s" does not exist', $input->getArgument('username')));
@@ -53,7 +53,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$userManager = $this->container->get('fos_user.user_manager');
- $user = $userManager->findOneByUsername($input->getArgument('username'));
+ $user = $userManager->findUserByUsername($input->getArgument('username'));
if (!$user) {
throw new \InvalidArgumentException(sprintf('The user "%s" does not exist', $input->getArgument('username')));
@@ -53,7 +53,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$userManager = $this->container->get('fos_user.user_manager');
- $user = $userManager->findOneByUsername($input->getArgument('username'));
+ $user = $userManager->findUserByUsername($input->getArgument('username'));
if (!$user) {
throw new \InvalidArgumentException(sprintf('The user "%s" does not exist', $input->getArgument('username')));
@@ -54,7 +54,7 @@ protected function configure()
protected function execute(InputInterface $input, OutputInterface $output)
{
$userManager = $this->container->get('fos_user.user_manager');
- $user = $userManager->findOneByUsername($input->getArgument('username'));
+ $user = $userManager->findUserByUsername($input->getArgument('username'));
if (!$user) {
throw new \InvalidArgumentException(sprintf('The user "%s" does not exist', $input->getArgument('username')));

0 comments on commit f9f6fb4

Please sign in to comment.