Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #7693.


$marking = new SingleStateMarkingStore('currentState');
$workflow = new Workflow($definition, $marking);

.. versionadded:: 3.3
The fluent interface for ``DefinitionBuilder`` class was added in Smyfony 3.3.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] for the DefinitionBuilder [...]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] was introduced [...]

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?


$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()``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] had to call the [...]

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?

Copy link
Member

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.

@javiereguiluz
Copy link
Member Author

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!

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@HeahDude HeahDude added this to the 3.3 milestone Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Workflow] Added fluent interface to the DefinitionBuilder
5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.