Skip to content

Commit 085d3ba

Browse files
committed
bug symfony#38391 [Security] Fixed undefined property in Firewall\ExceptionListener (yceruto)
This PR was merged into the 5.2-dev branch. Discussion ---------- [Security] Fixed undefined property in Firewall\ExceptionListener | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - When there is no entry point configuration: ``` Notice: Undefined property: Symfony\Component\Security\Http\Firewall\ExceptionListener::$providerKey ``` /cc @wouterj Commits ------- 3d83f94 Fixed undefined property in Firewall\ExceptionListener
2 parents 5e48c1e + 3d83f94 commit 085d3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private function startAuthentication(Request $request, AuthenticationException $
196196
{
197197
if (null === $this->authenticationEntryPoint) {
198198
if (null !== $this->logger) {
199-
$this->logger->notice(sprintf('No Authentication entry point configured, returning a %s HTTP response. Configure "entry_point" on the firewall ("{firewall_name}") if you want to modify the response.', Response::HTTP_UNAUTHORIZED), ['firewall_name' => $this->providerKey]);
199+
$this->logger->notice(sprintf('No Authentication entry point configured, returning a %s HTTP response. Configure "entry_point" on the firewall "%s" if you want to modify the response.', Response::HTTP_UNAUTHORIZED, $this->firewallName));
200200
}
201201

202202
throw new HttpException(Response::HTTP_UNAUTHORIZED, $authException->getMessage(), $authException, [], $authException->getCode());

0 commit comments

Comments
 (0)