[Workflow] Remove DefinitionBuilder::setInitialPlace()

This commit is contained in:
Grégoire Pineau 2019-07-01 10:10:14 +02:00
parent 63f4d13be1
commit 80f5f40ca4
2 changed files with 0 additions and 26 deletions

View File

@ -60,22 +60,6 @@ class DefinitionBuilder
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
*

View File

@ -9,16 +9,6 @@ use Symfony\Component\Workflow\Transition;
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']);