Skip to content

[Workflow] add is deprecated since Symfony 4.1. Use addWorkflow() instead #27209

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

Merged
merged 1 commit into from
May 9, 2018
Merged

Conversation

xkobal
Copy link
Contributor

@xkobal xkobal commented May 9, 2018

Q A
Branch? 4.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

@stof
Copy link
Member

stof commented May 9, 2018

this is broken, because the min support version of the workflow component is still 3.4 currently.

There is 2 solutions here:

  • bump the min version (and add a conflict rule ensuring that as it is an optional dependency)
  • put a method_exists check to detect the presence of the new method

I would go for the first solution. Requiring people to upgrade to workflow 4.1+ when they upgrade FrameworkBundle to 4.1 is fine.

@xkobal
Copy link
Contributor Author

xkobal commented May 9, 2018

It's done. Tell me if my changes on composer.json are ok. Thanks.

@fabpot
Copy link
Member

fabpot commented May 9, 2018

Thank you @xkobal.

@fabpot fabpot merged commit ffa5d1c into symfony:4.1 May 9, 2018
fabpot added a commit that referenced this pull request May 9, 2018
…kflow() instead (xkobal)

This PR was squashed before being merged into the 4.1 branch (closes #27209).

Discussion
----------

[Workflow] add is deprecated since Symfony 4.1. Use addWorkflow() instead

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #...
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

ffa5d1c [Workflow] add is deprecated since Symfony 4.1. Use addWorkflow() instead
@fabpot fabpot mentioned this pull request May 21, 2018
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.

4 participants