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: Doctrine/Phpcr/RedirectRoute.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -73,17 +73,19 @@ public function __construct(array $options = array())
73
73
*/
74
74
publicfunctionsetParent($parent)
75
75
{
76
-
$this->parent = $parent;
76
+
@trigger_error('The Route#setParent() method is deprecated as of version 1.2 and will be removed in 2.0. Use setParentDocument() instead.', E_USER_DEPRECATED);
77
77
78
-
return$this;
78
+
return$this->setParentDocument($parent);
79
79
}
80
80
81
81
/**
82
82
* @deprecated Use getParentDocument instead.
83
83
*/
84
84
publicfunctiongetParent()
85
85
{
86
-
return$this->parent;
86
+
@trigger_error('The Route#getParent() method is deprecated as of version 1.2 and will be removed in 2.0. Use getParentDocument() instead.', E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Doctrine/Phpcr/Route.php
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -93,17 +93,19 @@ public function setAddTrailingSlash($addTrailingSlash)
93
93
*/
94
94
publicfunctionsetParent($parent)
95
95
{
96
-
$this->parent = $parent;
96
+
@trigger_error('The Route#setParent() method is deprecated as of version 1.2 and will be removed in 2.0. Use setParentDocument() instead.', E_USER_DEPRECATED);
97
97
98
-
return$this;
98
+
return$this->setParentDocument($parent);
99
99
}
100
100
101
101
/**
102
102
* @deprecated Use getParentDocument instead.
103
103
*/
104
104
publicfunctiongetParent()
105
105
{
106
-
return$this->parent;
106
+
@trigger_error('The Route#getParent() method is deprecated as of version 1.2 and will be removed in 2.0. Use getParentDocument() instead.', E_USER_DEPRECATED);
107
+
108
+
return$this->getParentDocument();
107
109
}
108
110
109
111
/**
@@ -112,6 +114,8 @@ public function getParent()
112
114
* Note that this will change the URL this route matches.
0 commit comments