All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fixed the Twig version. Reverted to the previous Twig version. The latest 1.x version has some issues.
Twigminimal version supported setted to>=1.44.7.- Fixed select_option.html. Always ensure that the value is included in the option tag.
- Changed
__wake()method visibility to public. PHP8 compatibility.
- Added support for php8 removing package
fleshgrinder/formatfrom project. This package is no longer needed, its functionality has been replaced by native php code.
- Fixed Twig class paths
- Moved validation of invalid file to validate function to avoid wrong behavior.
- Added missing varible (attributes) to
BoundWidgetclass
- Validate choice field if is not empty and if is not a valid choice
- Validation of dates
- Forced choice value to be string when marking selected
dataandfileswere wrongly exposed onFormclass. Changed visibility to private and addedgetDataandgetFilesmethods.- Allow non-required file fields
- Fixed choice field values check
- Added retrocompability between Twig v1 and v2
- Fixed Widget format value
setRequiredtoFieldclass;- Twig Filter
merge_strto merge value into as array value through implode.
- Form field error class being ignored in
Bootstrap4TemplatePack.
Twigminimal version supported setted to>=1.35.
- Loading
Twigclasses with psr-4 mode; - Select
optiontag don't rendervalueif it is empty.
- Documentation of package;
- Renderers to facilitate integrations of template-engines:
- Added
Rendererinterface; - Added
TwigRendererthat integratestwig/twig; - Added fallback template loading support.
- Added
- Template packs to facilitate customization and extensibility of templates:
- Added abstract class
TemplatePack; - Added template pack
DefaultTemplatePack. Defined as default template pack; - Added template pack
Bootstrap4TemplatePackthat integrates Bootstrap v4.0.0-beta.2.
- Added abstract class
Configsingleton class allowing:- Configure custom template packs;
- Configure custom messages;
- Configure custom renderers.
- Added extra arg
labelto methodgetContextofWidgetclass; BoundWidgetclass to represent the choices of aChoiceWidgetinBoundField, allowing individual render or data access to each option.
BoundFieldmoved fromFieldsto new namespaceBounds;BoundFieldattribute namechoiceschanged tooptions;BoundFieldattributeoptionsnow return an array instead of formated string;Widgets,labelTagandErrorListnow render through default renderer instead of formatterfleshgrinder/format;CheckboxSelectMultipleandRadioSelectwidget wrapped in an unordered list tag instead of previousdiv;- Method name
getSubWidgetstogetOptionsinWidgetsclass and now returns an array instead of formated string; messages.phpto class based definition.
PHPFormConfigclass. Use newConfigclass instead to configurePHPForm;Attributeclass. All static methods, exceptflatattrwhich is no longer used, where migrated tohelpers.php;- Method
asULfromErrorListclass.
- Added CHANGELOG.md file.
- Fix formatValue method on ChoiceWidget when value is empty or null;
- Fix validate on ChoiceField when value if empty and not required.
- First release;