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: src/Symfony/Component/DependencyInjection/Definition.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,8 @@ public function getFactory()
98
98
*/
99
99
publicfunctionsetFactoryClass($factoryClass)
100
100
{
101
+
trigger_error('Definition::setFactoryClass() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', E_USER_DEPRECATED);
102
+
101
103
$this->factoryClass = $factoryClass;
102
104
103
105
return$this;
@@ -128,6 +130,8 @@ public function getFactoryClass()
128
130
*/
129
131
publicfunctionsetFactoryMethod($factoryMethod)
130
132
{
133
+
trigger_error('Definition::setFactoryMethod() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', E_USER_DEPRECATED);
134
+
131
135
$this->factoryMethod = $factoryMethod;
132
136
133
137
return$this;
@@ -193,6 +197,8 @@ public function getFactoryMethod()
193
197
*/
194
198
publicfunctionsetFactoryService($factoryService)
195
199
{
200
+
trigger_error('Definition::setFactoryService() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.', E_USER_DEPRECATED);
0 commit comments