Skip to content
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

Fixes translation_domain detection with setDefault #453

Merged
merged 1 commit into from
Aug 17, 2017
Merged

Fixes translation_domain detection with setDefault #453

merged 1 commit into from
Aug 17, 2017

Conversation

simitter
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache2

Description

The default translation_domain of a form was only detected if it's set via

$resolver->setDefaults(array(
  'translation_domain' => 'person'
));

This PR adds detection if the domain is set with the singluar setDefault method.

$resolver->setDefault('translation_domain', 'person');

This commit adds support for $resolver->setDefault() method in FormExtractor to determine the translation domain.
@gnat42 gnat42 merged commit a192120 into schmittjoh:master Aug 17, 2017
@gnat42
Copy link
Collaborator

gnat42 commented Aug 17, 2017

Thanks a bunch!

@simitter simitter deleted the bugfix/translation-domain-set-default branch February 15, 2018 12:44
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