8000 [Validator] Integrated the Translator in the Validator component by webmozart · Pull Request #6137 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Integrated the Translator in the Validator component #6137

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 12 commits into from
Jan 9, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[DoctrineBridge] Adapted DoctrineBridge to translator integration in …
…the validator
  • Loading branch information
webmozart committed Jan 8, 2013
commit b94a256cc75a116566f70cbfde8eb760f225fbeb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Bridge\Doctrine\Tests\Validator\Constraints;

use Symfony\Bridge\Doctrine\Tests\DoctrineOrmTestCase;
use Symfony\Component\Validator\DefaultTranslator;
use Symfony\Component\Validator\Tests\Fixtures\FakeMetadataFactory;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIdentEntity;
use Symfony\Bridge\Doctrine\Tests\Fixtures\DoubleIdentEntity;
Expand Down Expand Up @@ -132,7 +133,7 @@ public function createValidator($entityManagerName, $em, $validateClass = null,
$metadataFactory->addMetadata($metadata);
$validatorFactory = $this->createValidatorFactory($uniqueValidator);

return new Validator($metadataFactory, $validatorFactory);
return new Validator($metadataFactory, $validatorFactory, new DefaultTranslator());
}

private function createSchema($em)
Expand Down
0