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

Commit 9c940b6

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: [2.3] [HttpFoundation] [MimeTypeGuesser] Removed dead code and various cleaning Removed dead code and various cleaning [FrameworkBundle][xsd] added missing logging attribute. [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
2 parents c199be2 + 109e940 commit 9c940b6

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,6 @@ private function updateNewFieldAceProperty($name, array $changes)
853853
{
854854
$sids = new \SplObjectStorage();
855855
$classIds = new \SplObjectStorage();
856-
$currentIds = array();
857856
foreach ($changes[1] as $field => $new) {
858857
for ($i = 0, $c = count($new); $i<$c; $i++) {
859858
$ace = $new[$i];
@@ -881,8 +880,6 @@ private function updateNewFieldAceProperty($name, array $changes)
881880
$aceIdProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'id');
882881
$aceIdProperty->setAccessible(true);
883882
$aceIdProperty->setValue($ace, intval($aceId));
884-
} else {
885-
$currentIds[$ace->getId()] = true;
886883
}
887884
}
888885
}
@@ -931,7 +928,6 @@ private function updateNewAceProperty($name, array $changes)
931928

932929
$sids = new \SplObjectStorage();
933930
$classIds = new \SplObjectStorage();
934-
$currentIds = array();
935931
for ($i = 0, $c = count($new); $i<$c; $i++) {
936932
$ace = $new[$i];
937933

@@ -958,8 +954,6 @@ private function updateNewAceProperty($name, array $changes)
958954
$aceIdProperty = new \ReflectionProperty($ace, 'id');
959955
$aceIdProperty->setAccessible(true);
960956
$aceIdProperty->setValue($ace, intval($aceId));
961-
} else {
962-
$currentIds[$ace->getId()] = true;
963957
}
964958
}
965959
}

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('A LogoutException was thrown.', array('exception' => $exception));

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)