File tree Expand file tree Collapse file tree 5 files changed +68
-4
lines changed
Form/Tests/Extension/Csrf/CsrfProvider Expand file tree Collapse file tree 5 files changed +68
-4
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ protected function getScript($request)
185
185
$ code = <<<EOF
186
186
<?php
187
187
188
- error_reporting( $ errorReporting & ~E_USER_DEPRECATED );
188
+ error_reporting( $ errorReporting);
189
189
190
190
if (' $ autoloader') {
191
191
require_once ' $ autoloader';
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ public static function setUpBeforeClass()
26
26
{
27
27
ini_set ('session.save_handler ' , 'files ' );
28
28
ini_set ('session.save_path ' , sys_get_temp_dir ());
29
- ini_set ('error_reporting ' , -1 & ~E_USER_DEPRECATED );
30
29
}
31
30
32
31
protected function setUp ()
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ protected function getScript($request)
105
105
$ code = <<<EOF
106
106
<?php
107
107
108
- error_reporting( $ errorReporting & ~E_USER_DEPRECATED );
108
+ error_reporting( $ errorReporting);
109
109
110
110
require_once ' $ requirePath';
111
111
Original file line number Diff line number Diff line change 24
24
*/
25
25
class PropertyAccessor implements PropertyAccessorInterface
26
26
{
27
+ /**
28
+ * @internal
29
+ */
27
30
const VALUE = 0 ;
31
+
32
+ /**
33
+ * @internal
34
+ */
28
35
const IS_REF = 1 ;
36
+
37
+ /**
38
+ * @internal
39
+ */
29
40
const IS_REF_CHAINED = 2 ;
41
+
42
+ /**
43
+ * @internal
44
+ */
30
45
const ACCESS_HAS_PROPERTY = 0 ;
46
+
47
+ /**
48
+ * @internal
49
+ */
31
50
const ACCESS_TYPE = 1 ;
51
+
52
+ /**
53
+ * @internal
54
+ */
32
55
const ACCESS_NAME = 2 ;
56
+
57
+ /**
58
+ * @internal
59
+ */
33
60
const ACCESS_REF = 3 ;
61
+
62
+ /**
63
+ * @internal
64
+ */
34
65
const ACCESS_ADDER = 4 ;
66
+
67
+ /**
68
+ * @internal
69
+ */
35
70
const ACCESS_REMOVER = 5 ;
71
+
72
+ /**
73
+ * @internal
74
+ */
36
75
const ACCESS_TYPE_METHOD = 0 ;
76
+
77
+ /**
78
+ * @internal
79
+ */
37
80
const ACCESS_TYPE_PROPERTY = 1 ;
81
+
82
+ /**
83
+ * @internal
84
+ */
38
85
const ACCESS_TYPE_MAGIC = 2 ;
86
+
87
+ /**
88
+ * @internal
89
+ */
39
90
const ACCESS_TYPE_ADDER_AND_REMOVER = 3 ;
91
+
92
+ /**
93
+ * @internal
94
+ */
40
95
const ACCESS_TYPE_NOT_FOUND = 4 ;
41
96
42
97
/**
Original file line number Diff line number Diff line change 24
24
interface AuthenticationEntryPointInterface
25
25
{
26
26
/**
27
- * Starts the authentication scheme.
27
+ * Returns a response that directs the user to authenticate.
28
+ *
29
+ * This is called when an anonymous request accesses a resource that
30
+ * requires authentication. The job of this method is to return some
31
+ * response that "helps" the user start into the authentication process.
32
+ *
33
+ * Examples:
34
+ * A) For a form login, you might redirect to the login page
35
+ * return new RedirectResponse('/login');
36
+ * B) For an API token authentication system, you return a 401 response
37
+ * return new Response('Auth header required', 401);
28
38
*
29
39
* @param Request $request The request that resulted in an AuthenticationException
30
40
* @param AuthenticationException $authException The exception that started the authentication process
You can’t perform that action at this time.
0 commit comments