This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Workflow
Fabien Potencier fe7363fff1 bug #30884 [Workflow] Fixed initial places when no places are configured (lyrixx)
This PR was merged into the 4.3-dev branch.

Discussion
----------

[Workflow] Fixed initial places when no places are configured

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? |
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

EUFOSSA

I introduced a BC break in #30468 and this PR fix it.
With the full stack framework, when one does not configure the
initial_place(s) the DIC set `[]` for the initial values.
So it removes the initials values guessed in `Definition::addPlace()`

Commits
-------

76fd9c35b7 [Workflow] Fixed initial places when no places are configured
2019-04-06 13:29:01 +02:00
..
DependencyInjection [Workflow] Move code from ValidateWorkflowsPass to the FrameworkExtension 2019-03-12 14:15:00 +01:00
Dumper Added support for many inital places 2019-03-20 20:27:53 +01:00
Event Merge branch '4.2' 2019-03-22 09:16:47 +01:00
EventListener [Workflow] Fixed Guard Listener usage of RoleHierarchyInterface 2019-04-06 13:10:58 +02:00
Exception Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
MarkingStore minor #30551 [Workflow] Deprecate MultipleStateMarkingStore and SingleStateMarkingStore in favor of MethodMarkingStore (lyrixx) 2019-03-22 16:04:19 +01:00
Metadata fixed CS 2019-01-16 19:35:49 +01:00
SupportStrategy made deprecation notices less verbose 2018-02-19 13:10:10 +01:00
Tests [Contracts][EventDispatcher] add EventDispatcherInterface to symfony/contracts and use it where possible 2019-03-25 18:18:00 +01:00
Validator fixed CS 2019-03-31 12:10:11 +02:00
CHANGELOG.md [Workflow] Deprecate MultipleStateMarkingStore and SingleStateMarkingStore in favor of MethodMarkingStore 2019-03-22 15:53:11 +01:00
composer.json [EventDispatcher] swap arguments of dispatch() to allow registering events by FQCN 2019-03-14 08:32:46 +01:00
Definition.php [Workflow] Fixed initial places when no places are configured 2019-04-06 13:14:28 +02:00
DefinitionBuilder.php Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
Marking.php switched array() to [] 2019-01-16 10:39:14 +01:00
phpunit.xml.dist Merge branch '2.8' into 3.4 2018-11-11 20:48:54 +01:00
README.md [Workflow] update documentation URL in readme 2017-04-05 10:00:23 +02:00
Registry.php fixed CS 2019-01-16 19:35:49 +01:00
StateMachine.php [Contracts][EventDispatcher] add EventDispatcherInterface to symfony/contracts and use it where possible 2019-03-25 18:18:00 +01:00
Transition.php [Workflow] Remove constraints on transition/place name + Updated Dumper 2018-02-08 10:50:23 +01:00
TransitionBlocker.php fixed CS 2019-01-16 19:35:49 +01:00
TransitionBlockerList.php fixed CS 2019-01-16 19:35:49 +01:00
Workflow.php [Contracts][EventDispatcher] add EventDispatcherInterface to symfony/contracts and use it where possible 2019-03-25 18:18:00 +01:00
WorkflowEvents.php fix typo 2019-03-25 17:39:02 +01:00
WorkflowInterface.php [Workflow] Added a context to Workflow::apply() 2019-03-06 19:14:46 +01:00