-
Couldn't load subscription status.
- Fork 2
remove some deprecated code #6
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
base: master
Are you sure you want to change the base?
Conversation
In Symfony 2.7, the setDefaultOptions() method of AbstractType and AbstractExtensionType has been deprecated in favor of the new configureOptions() method
setDefaultOptions is deprecated
setDefaults Is deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use Symfony\Component\OptionsResolver\OptionsResolver;
needed instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are absolutely right, I forgot to add it;
|
also, as this will introduce BC break, I'll consider to increase major version number |
|
probably the best solution to mantain the bundle compatible with Symfony version lower to 2.7 can be the this: http://stackoverflow.com/a/28671099/3625883 |
The methods setAllowedValues(), addAllowedValues(), setAllowedTypes() and addAllowedTypes() were changed to modify one option at a time instead of batch processing options. The old API exists for backwards compatibility, but will be removed in Symfony 3.0. https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.6.md#optionsresolver
In Symfony 2.7, the setDefaultOptions() method of AbstractType and AbstractExtensionType has been deprecated in favor of the new configureOptions() method
http://symfony.com/blog/new-in-symfony-2-7-form-and-validator-updates