8000 [Validator][Email] - When standalone "Fatal error: Class 'validator.email' not found" by egulias · Pull Request #10581 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator][Email] - When standalone "Fatal error: Class 'validator.email' not found" #10581

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

Closed
wants to merge 1 commit into from

Conversation

egulias
Copy link
Contributor
@egulias egulias commented Mar 29, 2014
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets silexphp/Silex#932
License MIT
Doc PR no

When using the validator as an standalone component a bug was introduced by overriding the validatedBy() method in the Email constraint.
This PR removes the override and implements a way for the DI to get the right validator.

Another way would be modifying the definition of validator to change the alias instead of having the FQCN in the xml

@egulias
Copy link
Contributor Author
egulias commented Mar 29, 2014

Tests failure is due to

Symfony\Component\Process\Tests\SigchildDisabledProcessTest::testMustRun

See here

@fabpot
Copy link
Member
fabpot commented Mar 30, 2014

Thank you @egulias.

fabpot added a commit that referenced this pull request Mar 30, 2014
…validator.email' not found" (egulias)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Validator][Email] - When standalone "Fatal error: Class 'validator.email' not found"

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | silexphp/Silex#932
| License       | MIT
| Doc PR        | no

When using the validator as an standalone component a bug was introduced by overriding the `validatedBy()` method in the `Email` constraint.
This PR removes the override and implements a way for the DI to get the right validator.

Another way would be modifying the definition of validator to change the alias instead of having the FQCN in the xml

Commits
-------

e79b3a9 Change in validator.email service alias to match the validator FQCN
@fabpot fabpot closed this Mar 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0