diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-12-02 21:20:06 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-12-02 21:20:06 +0100 |
commit | 09b94f703de83439ef15d730389daa4041290590 (patch) | |
tree | 0f460e0fc9f27bcc7903a03b60bf331aa3e9f756 /Http | |
parent | 134f5c36ced7c5ffbb42666e424f0153015075ea (diff) | |
parent | b7b837e189058e1009b94203146042069ec85982 (diff) | |
download | symfony-security-09b94f703de83439ef15d730389daa4041290590.zip symfony-security-09b94f703de83439ef15d730389daa4041290590.tar.gz symfony-security-09b94f703de83439ef15d730389daa4041290590.tar.bz2 |
Merge branch '2.7'
* 2.7: (65 commits)
Configure firewall's kernel exception listener with configured entry point or a default entry point
PSR-2 fixes
[DependencyInjection] make paths relative to __DIR__ in the generated container
[FrameworkBundle][Router Cmd] use debug namespace.
[FrameworkBundle] Update deprecated service call
Fix PHP Fatal error: Cannot call constructor in symfony/console/Symfony/Component/Console/Helper/DialogHelper.php on line 37
Removed a dev annotation from a version constraint
Fixed the syntax of a composer.json file
Fixed the symfony/config version constraint
Tweaked the password-compat version constraint
Docblock fixes
Append to PR #12737 referring Ticket #12704
Issue #12658 Add a deprecation note about Translator's setFallbackLocale...
Issue #12606 Adding warning logs about the deprecation of [...]/Tests/FormIntegration...
Hackday deprecated 12621
Added deprecation log for validate and validateValue on ExecutionContext...
[Console] [Hackday] [2.7] Add a deprecation note about ProgressHelper
[Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method
[Validator] Added a deprecation note about setPropertyAccessor #12698
[Locale] Adding a deprecation note about the Locale component
...
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/LogoutListener.php | 2 | ||||
-rw-r--r-- | Http/HttpUtils.php | 2 | ||||
-rw-r--r-- | Http/RememberMe/TokenBasedRememberMeServices.php | 16 | ||||
-rw-r--r-- | Http/Tests/Firewall/RememberMeListenerTest.php | 4 | ||||
-rw-r--r-- | Http/phpunit.xml.dist | 6 |
5 files changed, 18 insertions, 12 deletions
diff --git a/Http/Firewall/LogoutListener.php b/Http/Firewall/LogoutListener.php index 2e9250b..84d1604 100644 --- a/Http/Firewall/LogoutListener.php +++ b/Http/Firewall/LogoutListener.php @@ -86,7 +86,7 @@ class LogoutListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance * - * @throws LogoutException if the CSRF token is invalid + * @throws LogoutException if the CSRF token is invalid * @throws \RuntimeException if the LogoutSuccessHandlerInterface instance does not return a response */ public function handle(GetResponseEvent $event) diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php index fbcfdb7..ed737a2 100644 --- a/Http/HttpUtils.php +++ b/Http/HttpUtils.php @@ -95,7 +95,7 @@ class HttpUtils * @param Request $request A Request instance * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * - * @return bool true if the path is the same as the one from the Request, false otherwise + * @return bool true if the path is the same as the one from the Request, false otherwise */ public function checkRequestPath(Request $request, $path) { diff --git a/Http/RememberMe/TokenBasedRememberMeServices.php b/Http/RememberMe/TokenBasedRememberMeServices.php index 32a0df0..f6b5c6a 100644 --- a/Http/RememberMe/TokenBasedRememberMeServices.php +++ b/Http/RememberMe/TokenBasedRememberMeServices.php @@ -90,10 +90,10 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices /** * Generates the cookie value. * - * @param string $class - * @param string $username The username - * @param int $expires The Unix timestamp when the cookie expires - * @param string $password The encoded password + * @param string $class + * @param string $username The username + * @param int $expires The Unix timestamp when the cookie expires + * @param string $password The encoded password * * @throws \RuntimeException if username contains invalid chars * @@ -112,10 +112,10 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices /** * Generates a hash for the cookie to ensure it is not being tempered with * - * @param string $class - * @param string $username The username - * @param int $expires The Unix timestamp when the cookie expires - * @param string $password The encoded password + * @param string $class + * @param string $username The username + * @param int $expires The Unix timestamp when the cookie expires + * @param string $password The encoded password * * @throws \RuntimeException when the private key is empty * diff --git a/Http/Tests/Firewall/RememberMeListenerTest.php b/Http/Tests/Firewall/RememberMeListenerTest.php index 68dfc14..4a33ed1 100644 --- a/Http/Tests/Firewall/RememberMeListenerTest.php +++ b/Http/Tests/Firewall/RememberMeListenerTest.php @@ -20,7 +20,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase { public function testOnCoreSecurityDoesNotTryToPopulateNonEmptySecurityContext() { - list($listener, $context,,,,) = $this->getListener(); + list($listener, $context, , , ,) = $this->getListener(); $context ->expects($this->once()) @@ -38,7 +38,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet() { - list($listener, $context, $service,,) = $this->getListener(); + list($listener, $context, $service, ,) = $this->getListener(); $context ->expects($this->once()) diff --git a/Http/phpunit.xml.dist b/Http/phpunit.xml.dist index a735efd..58fe58e 100644 --- a/Http/phpunit.xml.dist +++ b/Http/phpunit.xml.dist @@ -11,6 +11,12 @@ syntaxCheck="false" bootstrap="vendor/autoload.php" > + <php> + <!-- Disable E_USER_DEPRECATED until 3.0 --> + <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' --> + <ini name="error_reporting" value="-16385"/> + </php> + <testsuites> <testsuite name="Symfony Security Component HTTP Test Suite"> <directory>./Tests/</directory> |