Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Updated the Workflow articles to Symfony 4#8654

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 6 commits intosymfony:masterfromjaviereguiluz:update_workflow
Nov 16, 2017

Conversation

@javiereguiluz
Copy link
Member

The new file config paths are pending of this:symfony/recipes#256

@xabbuhxabbuh changed the title[WCM] Updated the Workflow articles to Symfony 4Updated the Workflow articles to Symfony 4Nov 15, 2017
@xabbuh
Copy link
Member

symfony/recipes#256 has been merged


public function __constructor(Registry $workflows)
{
$this->stateMachine = $workflows->get('pull_request');
Copy link
Member

Choose a reason for hiding this comment

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

I would not do that inside the constructor. You'll never know when your service is initialized and if the registry is ready at this point which could lead to undesired side effects.

{
public function edit(Registry $workflows)
{
$post = new \App\Entity\BlogPost();
Copy link
Member

Choose a reason for hiding this comment

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

I would add a use statement for the class instead of using the FQCN here.

// ...
}

// See all the available transition for the post in the current state
Copy link
Member

Choose a reason for hiding this comment

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

transitions

* ``workflow.[workflow name].announce.[transition name]``

Here is an example how to enable logging for every time a the "blog_publishing" workflow leaves a place::
Here is an example how to enable logging for every time the ``blog_publishing``
Copy link
Member

Choose a reason for hiding this comment

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

[...] an example of [...]

@xabbuhxabbuh added this to the4.0 milestoneNov 15, 2017
@weaverryanweaverryan merged commit70dda7c intosymfony:masterNov 16, 2017
weaverryan added a commit that referenced this pull requestNov 16, 2017
…, weaverryan)This PR was merged into the master branch.Discussion----------Updated the Workflow articles to Symfony 4The new file config paths are pending of this:symfony/recipes#256Commits-------70dda7c adding usef9bb412 minor tweaks8c540ce Removed an unneeded comment (Flex now includes Console by default)5088d0e Lots of fixes0261149 Fixed a typo9690dfd Updated the Workflow articles to Symfony 4
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.0

Development

Successfully merging this pull request may close these issues.

4 participants

@javiereguiluz@xabbuh@weaverryan@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp