Skip to content

Fix constraint validator alias being required #17074

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

Mx-Glitter
Copy link
Contributor

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

This is my first contribution, so everything might not be in perfect order.

Follow-up of #16841 on the right branch.

@nicolas-grekas
Copy link
Member

@Triiistan could you please rebase to trigger tests again?

@Mx-Glitter Mx-Glitter force-pushed the fix-constraint-validator-alias-required branch from 284448c to ee52483 Compare December 28, 2015 14:20
@Mx-Glitter
Copy link
Contributor Author

@nicolas-grekas Done

@Mx-Glitter Mx-Glitter force-pushed the fix-constraint-validator-alias-required branch from ee52483 to 77c63d2 Compare January 24, 2016 14:36
@Mx-Glitter
Copy link
Contributor Author

Fixed a typo + rebased again

@fabpot
Copy link
Member

fabpot commented Jan 25, 2016

Shouldn't this be merged into older branches? It can be seen as a bug fix as having to repeat the class under the alias item seems useless.

@fabpot
Copy link
Member

fabpot commented Jan 25, 2016

👍

@Mx-Glitter
Copy link
Contributor Author

I did that because the current behavior is already documented, so I supposed this was a new feature. But I agree with you that it looks like a bug fix.

@fabpot
Copy link
Member

fabpot commented Jan 25, 2016

It's indeed documented as being required, so making that optional is not really a problem IMHO.

@javiereguiluz
Copy link
Member

This contribution looks finished. Do Symfony mergers want @Triiistan to create a new pull request against 2.3 .... or can you merge this into older branches? Thanks!

@xabbuh
Copy link
Member

xabbuh commented Feb 23, 2016

👍

@fabpot
Copy link
Member

fabpot commented Feb 23, 2016

Thank you @Triiistan.

fabpot added a commit that referenced this pull request Feb 23, 2016
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #17074).

Discussion
----------

Fix constraint validator alias being required

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

This is my first contribution, so everything might not be in perfect order.

Follow-up of #16841 on the right branch.

Commits
-------

5136c30 Fix constraint validator alias being required
@fabpot fabpot closed this Feb 23, 2016
@Mx-Glitter Mx-Glitter deleted the fix-constraint-validator-alias-required branch March 6, 2016 18:30
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Apr 26, 2016
This PR was merged into the 2.3 branch.

Discussion
----------

Document constraint validator alias optional

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no (symfony/symfony#17074)
| Applies to    | 2.3
| Fixed tickets |

Same as #6055 but on the 2.3 branch as the relevant Symfony PR symfony/symfony#17074 was merged on 2.3.

Commits
-------

873ede0 Document constraint validator alias optional
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Jul 10, 2016
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
…ymfony#17074 (weaverryan)

This PR was merged into the 2.7 branch.

Discussion
----------

Removing the alias stuff - not required after symfony/symfony#17074

Thanks to symfony/symfony#17074 (merged all the way back into 2.3), `alias` is not required anymore. So why mention it?

As I understand it, validators work like the new form types: it's ok that `validatedBy returns a class name: the validation system will notice that you have a tagged service matching this class and will use that instead of creating it new.

Commits
-------

31afb0e line break
2ec049d Removing the alias stuff - not required after symfony/symfony#17074
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
* 2.7: (51 commits)
  this sounds just a little bit more natural
  Update dynamic_form_modification.rst
  Remove colloquialism "hold on"
  fixing reference to deprecated class
  removing use statement for consistency with other places in this doc
  fix FlattenException namespace
  Tweaks thanks to close review from Javier and @snoek09!
  Remove AcmeDemoBundle references
  Fix reference to output object
  Subject-verb agreement
  Fix tense and sentence length
  Fix typo in external_parameters.rst
  line break
  Removing the alias stuff - not required after symfony/symfony#17074
  Fixed the main index page redirections
  Fixed the redirection for "upgrade" articles
  Added all the missing "index pages" redirections
  Fixed a Console article redirection
  Fixed the redirection of the previous "performance" book chapter
  Fixed a DI redirection
  ...
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
* 2.8: (52 commits)
  this sounds just a little bit more natural
  Update dynamic_form_modification.rst
  Remove colloquialism "hold on"
  fixing reference to deprecated class
  removing use statement for consistency with other places in this doc
  fix FlattenException namespace
  Tweaks thanks to close review from Javier and @snoek09!
  Remove AcmeDemoBundle references
  Fix reference to output object
  Subject-verb agreement
  fixed missing level in namespace
  Fix tense and sentence length
  Fix typo in external_parameters.rst
  line break
  Removing the alias stuff - not required after symfony/symfony#17074
  Fixed the main index page redirections
  Fixed the redirection for "upgrade" articles
  Added all the missing "index pages" redirections
  Fixed a Console article redirection
  Fixed the redirection of the previous "performance" book chapter
  ...
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
* 3.0: (52 commits)
  this sounds just a little bit more natural
  Update dynamic_form_modification.rst
  Remove colloquialism "hold on"
  fixing reference to deprecated class
  removing use statement for consistency with other places in this doc
  fix FlattenException namespace
  Tweaks thanks to close review from Javier and @snoek09!
  Remove AcmeDemoBundle references
  Fix reference to output object
  Subject-verb agreement
  fixed missing level in namespace
  Fix tense and sentence length
  Fix typo in external_parameters.rst
  line break
  Removing the alias stuff - not required after symfony/symfony#17074
  Fixed the main index page redirections
  Fixed the redirection for "upgrade" articles
  Added all the missing "index pages" redirections
  Fixed a Console article redirection
  Fixed the redirection of the previous "performance" book chapter
  ...
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Aug 2, 2016
* 3.1: (52 commits)
  this sounds just a little bit more natural
  Update dynamic_form_modification.rst
  Remove colloquialism "hold on"
  fixing reference to deprecated class
  removing use statement for consistency with other places in this doc
  fix FlattenException namespace
  Tweaks thanks to close review from Javier and @snoek09!
  Remove AcmeDemoBundle references
  Fix reference to output object
  Subject-verb agreement
  fixed missing level in namespace
  Fix tense and sentence length
  Fix typo in external_parameters.rst
  line break
  Removing the alias stuff - not required after symfony/symfony#17074
  Fixed the main index page redirections
  Fixed the redirection for "upgrade" articles
  Added all the missing "index pages" redirections
  Fixed a Console article redirection
  Fixed the redirection of the previous "performance" book chapter
  ...
weaverryan added a commit to symfony-tools/docs-builder that referenced this pull request Dec 23, 2018
* 2.7: (51 commits)
  this sounds just a little bit more natural
  Update dynamic_form_modification.rst
  Remove colloquialism "hold on"
  fixing reference to deprecated class
  removing use statement for consistency with other places in this doc
  fix FlattenException namespace
  Tweaks thanks to close review from Javier and @snoek09!
  Remove AcmeDemoBundle references
  Fix reference to output object
  Subject-verb agreement
  Fix tense and sentence length
  Fix typo in external_parameters.rst
  line break
  Removing the alias stuff - not required after symfony/symfony#17074
  Fixed the main index page redirections
  Fixed the redirection for "upgrade" articles
  Added all the missing "index pages" redirections
  Fixed a Console article redirection
  Fixed the redirection of the previous "performance" book chapter
  Fixed a DI redirection
  ...
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.

6 participants