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

Skip to content

Commit fc41d22

Browse files
committed
minor symfony#12732 Ticket 12710 (ioannah)
This PR was squashed before being merged into the 2.7 branch (closes symfony#12732). Discussion ---------- Ticket 12710 | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | symfony#12710 | License | MIT | Doc PR | Commits ------- ba524b8 Ticket 12710
2 parents ab16213 + ba524b8 commit fc41d22

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)