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

Commit 109e940

Browse files
committed
Merge branch '2.5' into 2.6
* 2.5: [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
2 parents c58dd27 + 4cf41ce commit 109e940

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
@@ -928,7 +928,6 @@ private function updateNewAceProperty($name, array $changes)
928928

929929
$sids = new \SplObjectStorage();
930930
$classIds = new \SplObjectStorage();
931-
$currentIds = array();
932931
for ($i = 0, $c = count($new); $i<$c; $i++) {
933932
$ace = $new[$i];
934933

@@ -955,8 +954,6 @@ private function updateNewAceProperty($name, array $changes)
955954
$aceIdProperty = new \ReflectionProperty($ace, 'id');
956955
$aceIdProperty->setAccessible(true);
957956
$aceIdProperty->setValue($ace, intval($aceId));
958-
} else {
959-
$currentIds[$ace->getId()] = true;
960957
}
961958
}
962959
}

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
@@ -94,7 +94,7 @@ public function onKernelException(GetResponseForExceptionEvent $event)
9494
} elseif ($exception instanceof AccessDeniedException) {
9595
return $this->handleAccessDeniedException($event, $exception);
9696
} elseif ($exception instanceof LogoutException) {
97-
return $this->handleLogoutException($event, $exception);
97+
return $this->handleLogoutException($exception);
9898
}
9999
} while (null !== $exception = $exception->getPrevious());
100100
}
@@ -160,7 +160,7 @@ private function handleAccessDeniedException(GetResponseForExceptionEvent $event
160160
}
161161
}
162162

163-
private function handleLogoutException(GetResponseForExceptionEvent $event, LogoutException $exception)
163+
private function handleLogoutException(LogoutException $exception)
164164
{
165165
if (null !== $this->logger) {
166166
$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)