Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba524b8

Browse files
ihazsdafabpot
authored andcommitted
Ticket 12710
1 parent a4f8ac1 commit ba524b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public function getFactory()
9898
*/
9999
public function setFactoryClass($factoryClass)
100100
{
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+
101103
$this->factoryClass = $factoryClass;
102104

103105
return $this;
@@ -128,6 +130,8 @@ public function getFactoryClass()
128130
*/
129131
public function setFactoryMethod($factoryMethod)
130132
{
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+
131135
$this->factoryMethod = $factoryMethod;
132136

133137
return $this;
@@ -193,6 +197,8 @@ public function getFactoryMethod()
193197
*/
194198
public function setFactoryService($factoryService)
195199
{
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);
201+
196202
$this->factoryService = $factoryService;
197203

198204
return $this;

0 commit comments

Comments
 (0)