File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \HttpFoundation \Request ;
15
15
use Symfony \Component \HttpFoundation \Response ;
16
- use Symfony \Component \Security \Http \Firewall \AbstractListener ;
16
+ use Symfony \Component \Security \Http \Firewall \FirewallListenerInterface ;
17
17
18
18
/**
19
19
* @author Wouter de Jong <wouter@wouterj.nl>
@@ -26,7 +26,7 @@ interface AuthenticatorManagerInterface
26
26
/**
27
27
* Called to see if authentication should be attempted on this request.
28
28
*
29
- * @see AbstractListener ::supports()
29
+ * @see FirewallListenerInterface ::supports()
30
30
*/
31
31
public function supports (Request $ request ): ?bool ;
32
32
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Http \Firewall ;
13
13
14
- use Symfony \Component \HttpFoundation \Request ;
15
14
use Symfony \Component \HttpKernel \Event \RequestEvent ;
16
15
17
16
/**
@@ -28,18 +27,6 @@ final public function __invoke(RequestEvent $event)
28
27
}
29
28
}
30
29
31
- /**
32
- * Tells whether the authenticate() method should be called or not depending on the incoming request.
33
- *
34
- * Returning null means authenticate() can be called lazily when accessing the token storage.
35
- */
36
- abstract public function supports (Request $ request ): ?bool ;
37
-
38
- /**
39
- * Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
40
- */
41
- abstract public function authenticate (RequestEvent $ event );
42
-
43
30
public static function getPriority (): int
44
31
{
45
32
return 0 ; // Default
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Http \Firewall ;
13
13
14
+ use Symfony \Component \HttpFoundation \Request ;
15
+ use Symfony \Component \HttpKernel \Event \RequestEvent ;
16
+
14
17
/**
15
- * Can be implemented by firewall listeners to define their priority in execution .
18
+ * Can be implemented by firewall listeners.
16
19
*
17
20
* @author Christian Scheb <me@christianscheb.de>
21
+ * @author Nicolas Grekas <p@tchwork.com>
22
+ * @author Robin Chalas <robin.chalas@gmail.com>
18
23
*/
19
24
interface FirewallListenerInterface
20
25
{
26
+ /**
27
+ * Tells whether the authenticate() method should be called or not depending on the incoming request.
28
+ *
29
+ * Returning null means authenticate() can be called lazily when accessing the token storage.
30
+ */
31
+ public function supports (Request $ request ): ?bool ;
32
+
33
+ /**
34
+ * Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
35
+ */
36
+ public function authenticate (RequestEvent $ event );
37
+
21
38
/**
22
39
* Defines the priority of the listener.
23
40
* The higher the number, the earlier a listener is executed.
You can’t perform that action at this time.
0 commit comments