Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit cd277e8

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: Updated generateSql tool Fix the implementation of deprecated Locale classes Fix phpdoc and coding standards Replace usages of the deprecated TypeTestCase by the new one Remove usages of deprecated constants Update functional tests to use the PSR NullLogger Make fabbot happy Clean up testing [DomCrawler] fixed bug #12143 Conflicts: src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php src/Symfony/Bundle/FrameworkBundle/Tests/Templating/TimedPhpEngineTest.php src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php src/Symfony/Component/Console/Application.php src/Symfony/Component/DomCrawler/Crawler.php src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php src/Symfony/Component/Serializer/Encoder/EncoderInterface.php src/Symfony/Component/Serializer/Encoder/XmlEncoder.php src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataFactoryTest.php
2 parents 91e9fcb + f751ab5 commit cd277e8

File tree

8 files changed

+5
-9
lines changed

8 files changed

+5
-9
lines changed

Acl/Model/MutableAclProviderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Acl\Model;
1313

14+
use Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException;
15+
1416
/**
1517
* Provides support for creating and storing ACL instances.
1618
*

Acl/Resources/bin/generateSql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'Symfony' => __DIR__.'/../../../../../..',
2121
'Doctrine\\Common' => __DIR__.'/../../../../../../../vendor/doctrine-common/lib',
2222
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../../../../../../../vendor/doctrine-migrations/lib',
23-
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine-dbal/lib',
23+
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine/dbal/lib',
2424
'Doctrine' => __DIR__.'/../../../../../../../vendor/doctrine/lib',
2525
));
2626
$loader->register();
@@ -46,6 +46,6 @@
4646
}
4747

4848
$platform = $reflection->newInstance();
49-
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->name);
49+
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->getName());
5050
file_put_contents($targetFile, implode("\n\n", $schema->toSql($platform)));
5151
}

Core/Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function supports(TokenInterface $token)
113113
* @param UserInterface $user The user
114114
* @param TokenInterface $token The token
115115
*
116-
* @return Role[] The user roles
116+
* @return array The user roles
117117
*/
118118
private function getRoles(UserInterface $user, TokenInterface $token)
119119
{

Core/Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1614
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1715

1816
class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase

Http/Tests/Firewall/ChannelListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\Firewall;
1313

1414
use Symfony\Component\Security\Http\Firewall\ChannelListener;
15-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1615
use Symfony\Component\HttpFoundation\Response;
1716

1817
class ChannelListenerTest extends \PHPUnit_Framework_TestCase

Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Http\Tests\Logout;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
1615

1716
class DefaultLogoutSuccessHandlerTest extends \PHPUnit_Framework_TestCase

Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
1817
use Symfony\Component\HttpFoundation\Request;

Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\HttpFoundation\Request;
1817
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)