You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Middleware/AuthenticationMiddleware.php
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,6 @@ class AuthenticationMiddleware
37
37
/**
38
38
* Configuration options
39
39
*
40
-
* - `name` the application hook method to call. Will be prefixed with `authentication`
41
-
*
42
40
* The following keys are deprecated and should instead be set on the AuthenticationService
43
41
*
44
42
* - `identityAttribute` - The request attribute to store the identity in.
@@ -47,9 +45,7 @@ class AuthenticationMiddleware
47
45
* - `queryParam` - Set to true to have unauthenticated redirects contain a `redirect` query string
48
46
* parameter with the previously blocked URL.
49
47
*/
50
-
protected$_defaultConfig = [
51
-
'name' => null,
52
-
];
48
+
protected$_defaultConfig = [];
53
49
54
50
/**
55
51
* Authentication service or application instance.
@@ -62,14 +58,11 @@ class AuthenticationMiddleware
62
58
* Constructor
63
59
*
64
60
* @param \Authentication\AuthenticationServiceInterface|\Authentication\AuthenticationServiceProviderInterface $subject Authentication service or application instance.
65
-
* @param array|string $config Array of configuration settings or string with authentication service provider name.
61
+
* @param array $config Array of configuration settings.
66
62
* @throws \InvalidArgumentException When invalid subject has been passed.
0 commit comments