@@ -28,6 +28,19 @@ class FirewallConfig
28
28
private $ userChecker ;
29
29
private $ listeners ;
30
30
31
+ /** <
8000
/div>
32
+ * @param string $name
33
+ * @param string $requestMatcher
34
+ * @param bool $securityEnabled
35
+ * @param bool $stateless
36
+ * @param string|null $provider
37
+ * @param string|null $context
38
+ * @param string|null $entryPoint
39
+ * @param string|null $accessDeniedHandler
40
+ * @param string|null $accessDeniedUrl
41
+ * @param string|null $userChecker
42
+ * @param string[] $listeners
43
+ */
31
44
public function __construct ($ name , $ requestMatcher , $ securityEnabled = true , $ stateless = false , $ provider = null , $ context = null , $ entryPoint = null , $ accessDeniedHandler = null , $ accessDeniedUrl = null , $ userChecker = null , $ listeners = array ())
32
45
{
33
46
$ this ->name = $ name ;
@@ -72,23 +85,23 @@ public function isStateless()
72
85
}
73
86
74
87
/**
75
- * @return string The provider service id
88
+ * @return string|null The provider service id
76
89
*/
77
90
public function getProvider ()
78
91
{
79
92
return $ this ->provider ;
80
93
}
81
94
82
95
/**
83
- * @return string The context key
96
+ * @return string|null The context key (will be null if the firewall is stateless)
84
97
*/
85
98
public function getContext ()
86
99
{
87
100
return $ this ->context ;
88
101
}
89
102
90
103
/**
91
- * @return string The entry_point service id
104
+ * @return string|null The entry_point service id if configured, null otherwise
92
105
*/
93
106
public function getEntryPoint ()
94
107
{
@@ -104,20 +117,23 @@ public function getUserChecker()
104
117
}
105
118
106
119
/**
107
- * @return string The access_denied_handler service id
120
+ * @return string|null The access_denied_handler service id if configured, null otherwise
108
121
*/
109
122
public function getAccessDeniedHandler ()
110
123
{
111
124
return $ this ->accessDeniedHandler ;
112
125
}
113
126
127
+ /**
128
+ * @return string|null The access_denied_handler URL if configured, null otherwise
129
+ */
114
130
public function getAccessDeniedUrl ()
115
131
{
116
132
return $ this ->accessDeniedUrl ;
117
133
}
118
134
119
135
/**
120
- * @return array An array of listener keys
136
+ * @return string[] An array of listener keys
121
137
*/
122
138
public function getListeners ()
123
139
{
0 commit comments