Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] switched to setFallbackLocale() in DI extension #7315

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
Closed

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Mar 9, 2013

Shouldn't the old method still getting called for BC?

@fabpot
Copy link
Member

fabpot commented Mar 10, 2013

Why? Both are equivalent. So, using the non-deprecatedone is better. Did you have any problem with the current code?

@bamarni
Copy link
Contributor Author

bamarni commented Mar 10, 2013

I'm getting the following error : "Catchable Fatal Error: Argument 1 passed to Symfony\Component\Translation\Translator::setFallbackLocales() must be of the type array, string given (...)".

Switching to the BC method fixed the issue so I didn't investigate more than that, apparently my framework config still uses a plain string.

@fabpot
Copy link
Member

fabpot commented Mar 11, 2013

@bamarni Can you check that #7334 fixes your issue?

@fabpot fabpot closed this Mar 11, 2013
fabpot added a commit that referenced this pull request Mar 11, 2013
This PR was merged into the master branch.

Commits
-------

44c8654 [FrameworkBundle] fixed regression for the translator fallback configuration (refs #7100, closes #7315)

Discussion
----------

[FrameworkBundle] fixed regression for the translator fallback configuration (refs #7100, closes #7315)

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

---------------------------------------------------------------------------

by craue at 2013-03-11T22:09:35Z

:+1:
@bamarni bamarni deleted the patch-3 branch March 11, 2013 23:52
@bamarni
Copy link
Contributor Author

bamarni commented Mar 11, 2013

it fixed my issue.

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