-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Used the new fluent interface for DefinitionBuilder example #7821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
components/workflow.rst
Outdated
|
||
$marking = new SingleStateMarkingStore('currentState'); | ||
$workflow = new Workflow($definition, $marking); | ||
|
||
.. versionadded:: 3.3 | ||
The fluent interface for ``DefinitionBuilder`` class was added in Smyfony 3.3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] for the DefinitionBuilder
[...]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] was introduced [...]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but,the example occur "Fatal error: Class 'Symfony\Component\Workflow\DefinitionBuilder' not found ",i use the symfony 3.3.10 version,why?
components/workflow.rst
Outdated
|
||
$marking = new SingleStateMarkingStore('currentState'); | ||
$workflow = new Workflow($definition, $marking); | ||
|
||
.. versionadded:: 3.3 | ||
The fluent interface for ``DefinitionBuilder`` class was added in Smyfony 3.3. | ||
Before you had to call ``addPlaces()``, ``addTransition()`` and ``build()`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] had to call the [...]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but,the example occur "Fatal error: Class 'Symfony\Component\Workflow\DefinitionBuilder' not found ",i use the symfony 3.3.10 version,why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class is there: https://github.com/symfony/symfony/blob/v3.3.10/src/Symfony/Component/Workflow/DefinitionBuilder.php
Are you sure that you use Symfony 3.3.10? I suggest that you use one of the support channels to seek help with your problem.
I don't think anyone can make more mistakes in such a short paragraph! Luckily we have your reviews ... so I've fixed everything. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This fixes #7693.