23
23
/**
24
24
* A class that helps wrap Request information and particulars about a single request.
25
25
* Provides methods commonly used to introspect on the request headers and request body.
26
- *
27
- * Has both an Array and Object interface. You can access framework parameters using indexes:
28
- *
29
- * `$request['controller']` or `$request->controller`.
30
26
*/
31
27
class Request implements ArrayAccess
32
28
{
@@ -35,6 +31,7 @@ class Request implements ArrayAccess
35
31
* Array of parameters parsed from the URL.
36
32
*
37
33
* @var array
34
+ * @deprecated 3.4.0 This public property will be removed in 4.0.0. Use param() instead.
38
35
*/
39
36
public $ params = [
40
37
'plugin ' => null ,
@@ -50,20 +47,23 @@ class Request implements ArrayAccess
50
47
* data.
51
48
*
52
49
* @var array
50
+ * @deprecated 3.4.0 This public property will be removed in 4.0.0. Use data() instead.
53
51
*/
54
52
public $ data = [];
55
53
56
54
/**
57
55
* Array of querystring arguments
58
56
*
59
57
* @var array
58
+ * @deprecated 3.4.0 This public property will be removed in 4.0.0. Use query() instead.
60
59
*/
61
60
public $ query = [];
62
61
63
62
/**
64
63
* Array of cookie data.
65
64
*
66
65
* @var array
66
+ * @deprecated 3.4.0 This public property will be removed in 4.0.0. Use cookie() instead.
67
67
*/
68
68
public $ cookies = [];
69
69
@@ -597,6 +597,8 @@ public function __call($name, $params)
597
597
*
598
598
* @param string $name The property being accessed.
599
599
* @return mixed Either the value of the parameter or null.
600
+ * @deprecated 3.4.0 Accessing routing parameters through __get will removed in 4.0.0.
601
+ * Use param() instead.
600
602
*/
601
603
public function __get ($ name )
602
604
{
@@ -613,6 +615,8 @@ public function __get($name)
613
615
*
614
616
* @param string $name The property being accessed.
615
617
* @return bool Existence
618
+ * @deprecated 3.4.0 Accessing routing parameters through __isset will removed in 4.0.0.
619
+ * Use param() instead.
616
620
*/
617
621
public function __isset ($ name )
618
622
{
0 commit comments