8000 [2.2] [FrameworkBundle][Translation] Added logging capability to translator by meandmymonkey · Pull Request #5537 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.2] [FrameworkBundle][Translation] Added logging capability to translator #5537

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 22 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5a53821
[OptionsResolver] fix removing normalizers
Tobion Jul 29, 2012
e2a50ef
[OptionsResolver] fix normalizer without corresponding option
Tobion Jul 30, 2012
5f62bad
[Translation] added validateCatalogueForId() to allow for handling of…
Apr 11, 2012
31c42bc
[FrameworkBundle] added logging capabilities to translator
Apr 11, 2012
efb36bb
[FrameworkBundle][Translation] renamed catalog select method
Sep 18, 2012
5e21921
[FrameworkBundle][Translation] clarified method naming
Sep 18, 2012
d1b5093
Try to make sure cookies get deleted from the TokenProvider when no l…
Nov 18, 2012
b930066
Add Route::hasOption() and Route::hasRequirement() methods.
Crell Nov 23, 2012
64b6980
merged branch Crell/route-requirements (PR #6098)
fabpot Nov 24, 2012
acec659
merged branch Tobion/patch-1 (PR #5104)
fabpot Nov 24, 2012
efe42cb
[Validator] Refactored the GraphWalker into an implementation of the …
webmozart Nov 22, 2012
1f752e8
[DoctrineBridge] Adapted UniqueValidator to latest changes in the Val…
webmozart Nov 22, 2012
1858b96
[Form] Adapted FormValidator to latest changes in the Validator
webmozart Nov 22, 2012
c8ebc1e
merged branch sli-systems/dc-1 (PR #6080)
fabpot Nov 24, 2012
d5ff238
merged branch TerjeBr/persistent-token-provider (PR #6055)
fabpot Nov 24, 2012
ee90986
merged branch bschussek/drupal-validator (PR #6096)
fabpot Nov 24, 2012
6966c7d
[Translation] added validateCatalogueForId() to allow for handling of…
Apr 11, 2012
a1716d0
[FrameworkBundle] added logging capabilities to translator
Apr 11, 2012
34309fd
[FrameworkBundle][Translation] renamed catalog select method
Sep 18, 2012
3716574
[FrameworkBundle][Translation] clarified method naming
Sep 18, 2012
0cf8d7d
Merge branch 'translator-log-catalog-misses' of github.com:meandmymon…
Nov 24, 2012
cc5e197
fixed merge conflict introduced by last commit
Nov 24, 2012
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
[Form] Adapted FormValidator to latest changes in the Validator
  • Loading branch information
webmozart committed Nov 24, 2012
commit 1858b96b7dc473fcab09533b17ace9a24b8d3d86
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,12 @@ public function validate($form, Constraint $constraint)

if ($form->isSynchronized()) {
// Validate the form data only if transformation succeeded
$path = $this->context->getPropertyPath();
$graphWalker = $this->context->getGraphWalker();
$groups = self::getValidationGroups($form);

if (!empty($path)) {
$path .= '.';
}

// Validate the data against its own constraints
if (self::allowDataWalking($form)) {
foreach ($groups as $group) {
$graphWalker->walkReference($form->getData(), $group, $path . 'data', true);
$this->context->validate($form->getData(), 'data', $group, true);
}
}

Expand All @@ -72,7 +66,7 @@ public function validate($form, Constraint $constraint)
foreach ($constraints as $constraint) {
foreach ($groups as $group) {
if (in_array($group, $constraint->groups)) {
$graphWalker->walkConstraint($constraint, $form->getData(), $group, $path . 'data');
$this->context->validateValue($form->getData(), $constraint, 'data', $group);

// Prevent duplicate validation
continue 2;
Expand Down
Loading
0