We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ok, so within the translator documentation (http://symfony.com/doc/current/components/translation/introduction.html#fallback-locales) you can set multiple fallback locales. However, in the framework bundle, the fallback config option is a "scalarNode" and doesn't allow you to set an array (https://github.com/symfony/FrameworkBundle/blob/master/DependencyInjection/Configuration.php#L463)
Within the extension, it is checking if the value is an array (https://github.com/symfony/FrameworkBundle/blob/master/DependencyInjection/FrameworkExtension.php#L645). However, you can't actually set an array or you get the error:
InvalidTypeException in ScalarNode.php line 36: Invalid type for path "framework.translator.fallback". Expected scalar, but got array.
Rather than using scalarNode, should this be changed to arrayNode?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
bug #13376 [FrameworkBundle][config] allow multiple fallback locales.…
975b8a8
… (aitboudad) This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle][config] allow multiple fallback locales. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | #13373 | Doc PR | symfony/symfony-docs#4834 | Tests pass? | yes | License | MIT Commits ------- 1251f0e [FrameworkBundle][config] allow multiple fallback locales.
No branches or pull requests
Ok, so within the translator documentation (http://symfony.com/doc/current/components/translation/introduction.html#fallback-locales) you can set multiple fallback locales. However, in the framework bundle, the fallback config option is a "scalarNode" and doesn't allow you to set an array (https://github.com/symfony/FrameworkBundle/blob/master/DependencyInjection/Configuration.php#L463)
Within the extension, it is checking if the value is an array (https://github.com/symfony/FrameworkBundle/blob/master/DependencyInjection/FrameworkExtension.php#L645). However, you can't actually set an array or you get the error:
Rather than using scalarNode, should this be changed to arrayNode?
The text was updated successfully, but these errors were encountered: