Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
more security namespaces updates
Browse files Browse the repository at this point in the history
  • Loading branch information
avalanche123 committed Jan 31, 2011
1 parent 88e086a commit c11c888
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Command/ActivateUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use FOS\UserBundle\Model\User;

/*
Expand Down
2 changes: 1 addition & 1 deletion Command/ChangePasswordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace FOS\UserBundle\Command;

use FOS\UserBundle\Model\User;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Bundle\FrameworkBundle\Command\Command as BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
2 changes: 1 addition & 1 deletion Command/CreateUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;

use FOS\UserBundle\Model\User;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Bundle\FrameworkBundle\Command\Command as BaseCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
Expand Down
2 changes: 1 addition & 1 deletion Command/DeactivateUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use FOS\UserBundle\Model\User;

/*
Expand Down
2 changes: 1 addition & 1 deletion Command/DemoteSuperAdminCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use FOS\UserBundle\Model\User;

/*
Expand Down
2 changes: 1 addition & 1 deletion Command/PromoteSuperAdminCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use FOS\UserBundle\Model\User;

/*
Expand Down
2 changes: 1 addition & 1 deletion Security/Encoder/EncoderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct($encoderClass, $encodeHashAsBase64, $iterations, Enc
}

/**
* @see Symfony\Component\Security\Encoder.EncoderFactory::getEncoder()
* @see Symfony\Component\Security\Core\Encoder\EncoderFactory::getEncoder()
*/
public function getEncoder(AccountInterface $account)
{
Expand Down
2 changes: 1 addition & 1 deletion Templating/Helper/SecurityHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper as BaseSecurityHelper;
use FOS\UserBundle\Model\User;
use Symfony\Component\Security\SecurityContext;
use Symfony\Component\Security\Core\SecurityContext;

/**
* SecurityHelper.
Expand Down
2 changes: 1 addition & 1 deletion Tests/Document/DocumentUserManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function testLoadUserByUsernameWithExistingUser()
}

/**
* @expectedException Symfony\Component\Security\Exception\UsernameNotFoundException
* @expectedException Symfony\Component\Security\Core\Exception\UsernameNotFoundException
*/
public function testLoadUserByUsernameWithMissingUser()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Model/UserManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function getMockEncoderFactory()

private function getMockPasswordEncoder()
{
return $this->getMock('Symfony\Component\Security\Encoder\PasswordEncoderInterface');
return $this->getMock('Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface');
}

private function getUser()
Expand Down
8 changes: 4 additions & 4 deletions Tests/Security/Encoder/EncoderFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace FOS\UserBundle\Tests\Security\Encoder;

use Symfony\Component\Security\Encoder\MessageDigestPasswordEncoder;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
use FOS\UserBundle\Security\Encoder\EncoderFactory;

class EncoderFactoryTest extends \PHPUnit_Framework_TestCase
Expand All @@ -14,7 +14,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase
public function testGetEncoderWithUserAccount()
{
$factory = new EncoderFactory(
'Symfony\Component\Security\Encoder\MessageDigestPasswordEncoder',
'Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder',
false,
1,
$this->getMock('Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface')
Expand All @@ -36,7 +36,7 @@ public function testGetEncoderWithUserAccount()
public function testGetEncoderWithGenericAccount()
{
$genericFactory = $this->getMock('Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface');
$encoder = $this->getMock('Symfony\Component\Security\Encoder\PasswordEncoderInterface');
$encoder = $this->getMock('Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface');

$genericFactory
->expects($this->once())
Expand All @@ -46,6 +46,6 @@ public function testGetEncoderWithGenericAccount()

$factory = new EncoderFactory(null , false, 1, $genericFactory);

$this->assertSame($encoder, $factory->getEncoder($this->getMock('Symfony\Component\Security\User\AccountInterface')));
$this->assertSame($encoder, $factory->getEncoder($this->getMock('Symfony\Component\Security\Core\User\AccountInterface')));
}
}

0 comments on commit c11c888

Please sign in to comment.