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

[Validator] Make ExpressionLanguageSyntax validator usable with annotation#36886

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
fabpot merged 1 commit intosymfony:5.1fromjderusse:fix-constraint
May 22, 2020

Conversation

@jderusse
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
Deprecations?no
TicketsNA
LicenseMIT
Doc PRNA

When using the new on an entity ExpressionLanguageSyntax (basicaly copy/pasted the sample fromhttps://symfony.com/blog/new-in-symfony-5-1-expressionlanguage-validator), I face a first error:

Constraint validator "" does not exist or is not enabled. Check the "validatedBy" method in your constraint class "Symfony\Component\Validator\Constraints\ExpressionLanguageSyntax".

indeed, theservice isneed to generate a valide alias

Which looks weird for a Constraint

This PR makes the ExpressionLanguage dependency optionnal inExpressionLanguageSyntaxValidator, and removes theservice than is not needed anyore

@jderusse
Copy link
MemberAuthor

ping@Andrej-in-ua

}
}

privatefunctiongetExpressionLanguage():ExpressionLanguage
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

inspired from

privatefunctiongetExpressionLanguage():ExpressionLanguage
{
if (null ===$this->expressionLanguage) {
$this->expressionLanguage =newExpressionLanguage();
}
return$this->expressionLanguage;
}

@xabbuhxabbuh added this to the5.1 milestoneMay 21, 2020
@fabpotfabpot changed the base branch frommaster to5.1May 22, 2020 17:13
@fabpot
Copy link
Member

Thank you@jderusse.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+2 more reviewers

@Andrej-in-uaAndrej-in-uaAndrej-in-ua approved these changes

@GuikingoneGuikingoneGuikingone left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.1

Development

Successfully merging this pull request may close these issues.

6 participants

@jderusse@fabpot@Andrej-in-ua@Guikingone@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp