Simon Wisselink
c47756b489
Re-organized rendering (read source / compile / cache) process to avoid circular dependencies.
2023-01-26 12:58:15 +01:00
Simon Wisselink
169cd924df
Re-organized rendering (read source / compile / cache) process to avoid circular dependencies.
...
Deactivated merge_compiled_includes and the {include inline} attribute. They don't seem to do much in terms of performance, but we'll
have to check back.
2023-01-25 16:59:10 +01:00
Simon Wisselink
5c74dc4a83
Replaced a bunch of direct property access with getters/setters.
2023-01-13 16:55:15 +01:00
Simon Wisselink
cdf1ed2a50
Simplified the (no)caching architecture by:
...
- removing support for $cache_attrs for registered plugins,
- removing the undocumented {make_nocache} tag and the deprecated {insert} tag and associated code
- removing support for a compile_id property on include tags.
Fixes a bug in extends: resources by propagating the nocache-hashes between a master template and it's subtemplates in \Smarty\Template::_subTemplateRender. This might need further improvement.
2023-01-13 15:47:57 +01:00
Simon Wisselink
e0f2c36d4d
converted 3 public properties on Template into getters/setters. unified Template creation code. Provided a getter/setter for the has_nocache_code property. Removed the useless DataObject class. Fixed a few tests. Removed the variable-allow-php-templates property from the docs.
2023-01-13 00:04:08 +01:00
Simon Wisselink
608a400e66
Fix scoping / global state problems in tests by using DI in Default Extension. Also removing a bunch of old fashioned phpdoc annotations that are superseded by namespaces.
2023-01-05 23:07:45 +01:00
Simon Wisselink
3fccb54093
Fixed CacheResource implementation and tests
2023-01-03 17:10:02 +01:00
Simon Wisselink
60a56969dd
WIP moving Smarty to PSR-4.
2023-01-02 00:49:38 +01:00
Simon Wisselink
57cff64869
Add makefile, PSR-4 ModifierCompilers
2022-12-23 14:03:05 +01:00
Simon Wisselink
4d66910e7f
Entire src dir now PSR-4 compatible
2022-12-22 22:38:37 +01:00
Simon Wisselink
f1e7b2d46f
src/sysplugins/* to PSR-4
2022-12-22 21:50:01 +01:00
Simon Wisselink
0fc2b3726b
src/Template/* to PSR-4
2022-12-22 21:23:22 +01:00
Simon Wisselink
d88175de3e
Refactored all _runtime_* by merging them into the proper classes or by transforming them into Runtime Extensions.
2022-12-22 15:43:20 +01:00
Simon Wisselink
8b5540f4f3
More PSR4 rewriting
2022-11-30 00:25:27 +01:00
Simon Wisselink
91b6fdeb4e
WIP converting code to PSR-4
2022-11-28 12:30:07 +01:00