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

Commit 4cf41ce

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: [2.3] [HttpFoundation] [MimeTypeGuesser] Removed dead code and various cleaning [Console] Make it clear that the second argument is not about command options. Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes [Yaml] fixed parse shortcut Key after unindented collection. [Console] fixed #10531 Make the container considered non-fresh if the environment parameters are changed Conflicts: src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig src/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig src/Symfony/Component/Console/Tests/ApplicationTest.php src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
2 parents d5541a8 + ad78f5a commit 4cf41ce

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ private function updateNewAceProperty($name, array $changes)
931931

932932
$sids = new \SplObjectStorage();
933933
$classIds = new \SplObjectStorage();
934-
$currentIds = array();
935934
for ($i = 0, $c = count($new); $i<$c; $i++) {
936935
$ace = $new[$i];
937936

@@ -958,8 +957,6 @@ private function updateNewAceProperty($name, array $changes)
958957
$aceIdProperty = new \ReflectionProperty($ace, 'id');
959958
$aceIdProperty->setAccessible(true);
960959
$aceIdProperty->setValue($ace, intval($aceId));
961-
} else {
962-
$currentIds[$ace->getId()] = true;
963960
}
964961
}
965962
}

Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ public function authenticate(TokenInterface $token)
5959
if (!$user = $token->getUser()) {
6060
throw new BadCredentialsException('No pre-authenticated principal found in request.');
6161
}
62-
/*
63-
if (null === $token->getCredentials()) {
64-
throw new BadCredentialsException('No pre-authenticated credentials found in request.');
65-
}
66-
*/
62+
6763
$user = $this->userProvider->loadUserByUsername($user);
6864

6965
$this->userChecker->checkPostAuth($user);

Http/Firewall/AccessListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle(GetResponseEvent $event)
5555

5656
$request = $event->getRequest();
5757

58-
list($attributes, $channel) = $this->map->getPatterns($request);
58+
list($attributes) = $this->map->getPatterns($request);
5959

6060
if (null === $attributes) {
6161
return;

Http/Firewall/ExceptionListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function onKernelException(GetResponseForExceptionEvent $event)
9393
} elseif ($exception instanceof AccessDeniedException) {
9494
return $this->handleAccessDeniedException($event, $exception);
9595
} elseif ($exception instanceof LogoutException) {
96-
return $this->handleLogoutException($event, $exception);
96+
return $this->handleLogoutException($exception);
9797
}
9898
} while (null !== $exception = $exception->getPrevious());
9999
}
@@ -159,7 +159,7 @@ private function handleAccessDeniedException(GetResponseForExceptionEvent $event
159159
}
160160
}
161161

162-
private function handleLogoutException(GetResponseForExceptionEvent $event, LogoutException $exception)
162+
private function handleLogoutException(LogoutException $exception)
163163
{
164164
if (null !== $this->logger) {
165165
$this->logger->info(sprintf('Logout exception occurred; wrapping with AccessDeniedHttpException (%s)', $exception->getMessage()));

Http/RememberMe/PersistentTokenBasedRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function cancelCookie(Request $request)
7373
if (null !== ($cookie = $request->cookies->get($this->options['name']))
7474
&& count($parts = $this->decodeCookie($cookie)) === 2
7575
) {
76-
list($series, $tokenValue) = $parts;
76+
list($series) = $parts;
7777
$this->tokenProvider->deleteTokenBySeries($series);
7878
}
7979
}

0 commit comments

Comments
 (0)