- Bug #159: Fixed string interpolation format for php 8.2 (qwerty199369)
- Bug #154: Support for Twig 3.9
In twig 3.9 there were many internal changes that might affect and break codebases using twig:- Internal functions (including twig_get_attribute) has been moved and renamed.
- The internal working of twig does not store template state in the output buffer anymore.
This means if a custom twig function reads and modifies the output buffer, it might not work as expected.
- Bug #153: Prevent Twig 3.9 from installing (schmunk42)
- Chg #134: Allow installing on PHP 8.1 (sircovsw)
- Chg: Allow installing on PHP 8 (samdark)
- Enh #116: Add
t()
function (samdark) - Enh #123: Upgrade to Twig 3 (andrew-nuwber)
- Bug #115: Replace deprecated PSR-0 classes and add compatibility for Twig 2.7+ versions (boliver20)
- Bug #103: Fixed HtmlHelperExtension issue (boliver20)
- Bug #97: Fixed error when outputting DateTime dates (koxu1996)
- Enh #84 Upgrade to Twig 2 (koxu1996)
- Enh #90 Added
yii\twig\Profile
. Extension for render profiling (amarox)
- Enh #17: Added html helper (amarox)
- Enh #25: Improve exceptions (amarox)
- Enh #75: Got rid of deprecated function
Twig\Node::getLine()
(dmirogin) - Enh #78: Added
ViewRendererStaticClassProxy:__isset()
to be able to access static variable in the template (mrlinqu) - Enh #79: Added class constants support (mrlinqu)
- Enh #43: Added scalar global variables support (mpestov)
- Enh #71: Added DIC usage for instantiating of extensions (ElisDN)
- Chg #46: Adjusted
path()
andurl()
syntax to be similar to Yii'sUrl::to()
(quantum13)
- Bug #61: Added missing view object existence check (Quexer69)
- Enh #16: Extended simple functions and simple filters support (PatchRanger, quantum13)
- Enh #30: Added
@app/views
,@app/modules
,@app/widgets
asTwig_Loader_Filesystem
loader paths, same for themepathMap
paths (andrew-kamenchuk) - Enh #40: Added ability for
register_asset_bundle()
to returnAssetBundle
instance when second argument istrue
(gta4kv)
- Enh #10: Added alternative syntax for registering asset bundles
{{ register_asset_bundle('yii/web/JqueryAsset') }}
(quantum13) - Enh #11: Added support for
Twig_SimpleFunction
andTwig_SimpleFilter
when defining functions and filters (quantum13)
- no changes in this release.
- Bug #6464:
path
andurl
weren't resolving aliases (samdark, lynicidn)
- no changes in this release.
- Bug #5308: object function calls in templates were passing arguments in a wrong way (genichyar, samdark)
- Bug #2925: Fixed throwing exception when accessing AR property with null value (samdark)
- Bug #3767: Fixed repeated adding of extensions when using config. One may now pass extension instances as well (grachov)
- Bug #3877: Fixed
lexerOptions
throwing exception (dapatrese) - Bug #4290: Fixed throwing exception when trying to access AR relation that is null (samdark, tenitski)
- Bug #5191: Sandbox was ignored for models and AR relations (genichyar)
- Enh #1799: Added
form_begin
,form_end
to twig extension (samdark) - Enh #3674: Various enhancements (samdark)
- Removed
FileLoader
and used\Twig_Loader_Filesystem
instead. - Added support of Yii's aliases.
- Added
set()
that allows setting object properties.
- Removed
- Chg #3535: Syntax changes:
- Removed
form_begin
,form_end
(samdark) - Added
use()
andViewRenderer::uses
that are importing classes and namespaces (grachov, samdark) - Added widget dynamic functions
*_begin
,*_end
,*_widget
,widget_end
(grachov, samdark) - Added more tests (samdark)
- Removed
- Chg: Renamed
TwigSimpleFileLoader
intoFileLoader
(samdark)
- Added file based Twig loader for better caching and usability of Twig's file based functions (dev-mraj, samdark)
- Initial release.