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

[Framework][Workflow] Added support for interfaces #27596

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
Jun 15, 2018

Conversation

vudaltsov
Copy link
Contributor

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

I consider this to be a bugfix in config, because ClassInstanceSupportStrategy (InstanceOfSupportStrategy) actually works with interfaces. Therefore propose to 3.4.

@@ -329,7 +329,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
->prototype('scalar')
->cannotBeEmpty()
->validate()
->ifTrue(function ($v) { return !class_exists($v); })
->ifTrue(function ($v) { return !class_exists($v) && !interface_exists($v); })
->thenInvalid('The supported class %s does not exist.')
Copy link
Member

Choose a reason for hiding this comment

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

The supported class or interface %s does not exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lyrixx , thanx, fixed

@fabpot
Copy link
Member

fabpot commented Jun 15, 2018

Thank you @vudaltsov.

@fabpot fabpot merged commit 6104c28 into symfony:3.4 Jun 15, 2018
fabpot added a commit that referenced this pull request Jun 15, 2018
…sov)

This PR was squashed before being merged into the 3.4 branch (closes #27596).

Discussion
----------

[Framework][Workflow] Added support for interfaces

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

I consider this to be a bugfix in config, because `ClassInstanceSupportStrategy` (`InstanceOfSupportStrategy`) actually works with interfaces. Therefore propose to 3.4.

Commits
-------

6104c28 [Framework][Workflow] Added support for interfaces
@vudaltsov vudaltsov deleted the patch-2 branch June 15, 2018 13:22
This was referenced Jun 25, 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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.