From 80f5f40ca440de66818cd160221c3270df4aa909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Mon, 1 Jul 2019 10:10:14 +0200 Subject: [PATCH] [Workflow] Remove DefinitionBuilder::setInitialPlace() --- .../Component/Workflow/DefinitionBuilder.php | 16 ---------------- .../Workflow/Tests/DefinitionBuilderTest.php | 10 ---------- 2 files changed, 26 deletions(-) diff --git a/src/Symfony/Component/Workflow/DefinitionBuilder.php b/src/Symfony/Component/Workflow/DefinitionBuilder.php index 49fadddcba9b..182376c06024 100644 --- a/src/Symfony/Component/Workflow/DefinitionBuilder.php +++ b/src/Symfony/Component/Workflow/DefinitionBuilder.php @@ -60,22 +60,6 @@ public function clear() return $this; } - /** - * @deprecated since Symfony 4.3. Use setInitialPlaces() instead. - * - * @param string $place - * - * @return $this - */ - public function setInitialPlace($place) - { - @trigger_error(sprintf('Calling %s::setInitialPlace() is deprecated since Symfony 4.3. Call setInitialPlaces() instead.', __CLASS__), E_USER_DEPRECATED); - - $this->initialPlaces = $place; - - return $this; - } - /** * @param string|string[]|null $initialPlaces * diff --git a/src/Symfony/Component/Workflow/Tests/DefinitionBuilderTest.php b/src/Symfony/Component/Workflow/Tests/DefinitionBuilderTest.php index df8d9bb8b36b..c749011e66a0 100644 --- a/src/Symfony/Component/Workflow/Tests/DefinitionBuilderTest.php +++ b/src/Symfony/Component/Workflow/Tests/DefinitionBuilderTest.php @@ -9,16 +9,6 @@ class DefinitionBuilderTest extends TestCase { - /** @group legacy */ - public function testSetInitialPlace() - { - $builder = new DefinitionBuilder(['a', 'b']); - $builder->setInitialPlace('b'); - $definition = $builder->build(); - - $this->assertEquals(['b'], $definition->getInitialPlaces()); - } - public function testSetInitialPlaces() { $builder = new DefinitionBuilder(['a', 'b']);