8000 [Security] remove deprecated getKey() method · symfony/symfony@d47b2d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d47b2d0

Browse files
committed
[Security] remove deprecated getKey() method
1 parent 743e670 commit d47b2d0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/Symfony/Component/Security/Http/EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ public function start(Request $request, AuthenticationException $authException =
6464
return $response;
6565
}
6666

67-
/**
68-
* @deprecated Since version 2.8, to be removed in 3.0. Use getSecret() instead.
69-
*/
70-
public function getKey()
71-
{
72-
@trigger_error(__method__.'() is deprecated since version 2.8 and will be removed in 3.0. Use getSecret() instead.', E_USER_DEPRECATED);
73-
74-
return $this->getSecret();
75-
}
76-
7767
/**
7868
* @return string
7969
*/

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

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

8080
try {
81-
$digestAuth->validateAndDecode($this->authenticationEntryPoint->getKey(), $this->authenticationEntryPoint->getRealmName());
81+
$digestAuth->validateAndDecode($this->authenticationEntryPoint->getSecret(), $this->authenticationEntryPoint->getRealmName());
8282
} catch (BadCredentialsException $e) {
8383
$this->fail($event, $request, $e);
8484

0 commit comments

Comments
 (0)
0