Contao\CoreBundle\Security\User\ContaoUserProvider::refreshUser PHP Method

refreshUser() public method

public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface
    public function refreshUser(UserInterface $user)
    {
        throw new UnsupportedUserException('Cannot refresh a Contao user.');
    }

Usage Example

 /**
  * Tests refreshing a user.
  *
  * @expectedException \Symfony\Component\Security\Core\Exception\UnsupportedUserException
  */
 public function testRefreshUser()
 {
     $container = new Container();
     $container->addScope(new Scope(ContaoCoreBundle::SCOPE_FRONTEND));
     $container->enterScope(ContaoCoreBundle::SCOPE_FRONTEND);
     $provider = new ContaoUserProvider($container, $this->framework);
     $provider->refreshUser(new User('foo', 'bar'));
 }
All Usage Examples Of Contao\CoreBundle\Security\User\ContaoUserProvider::refreshUser