Simon Wisselink
|
541f0821f0
|
Replace direct access to inheritance property on Template object by proper getter.
|
2023-01-12 10:11:10 +01:00 |
|
Simon Wisselink
|
536721d457
|
Removed the allowUndefinedVars check from the smarty error handlers, because undefined vars no longer throw an error, unless smarty->error_unassigned is set to true.
|
2023-01-12 09:59:10 +01:00 |
|
Simon Wisselink
|
577f910e49
|
removed phpplugin, removed now unused uncompiled handler and all checks for this, fixed a refactorbug in InheritanceRuntime. Moved getRenderedTemplateCode method to Smarty\Template. Renamed Cache en Compiled base class to GeneratedPhpFile for more clarity and distinction from Resource classes. Inlined Cached::create into its only caller. Some other minor improvements. Removed php7.1 CI tests.
|
2023-01-11 23:33:12 +01:00 |
|
Simon Wisselink
|
1fe5050a04
|
Fix configfile tests
|
2023-01-11 13:05:42 +01:00 |
|
Simon Wisselink
|
22ce23b47b
|
Made variable scoping more sensible
|
2023-01-11 11:22:24 +01:00 |
|
Simon Wisselink
|
ad245ccd0c
|
Fixed minor unit tests
|
2023-01-11 00:00:07 +01:00 |
|
Simon Wisselink
|
51075e0421
|
WIP fixing the complicated variables scopes architecture. Right now more tests are failing than before... :(
|
2023-01-10 23:49:33 +01:00 |
|
Simon Wisselink
|
3d10630510
|
WIP rewriting variable scopes
|
2023-01-10 17:35:34 +01:00 |
|
Simon Wisselink
|
5052ce0d88
|
WIP
|
2023-01-10 14:54:21 +01:00 |
|
Simon Wisselink
|
9651dafbce
|
WIP replacing direct access tpl_vars with proper getter/setters.
|
2023-01-10 14:46:33 +01:00 |
|
Simon Wisselink
|
b424657fd9
|
Fix bug in calling BC function handlers.
|
2023-01-10 14:45:58 +01:00 |
|
Simon Wisselink
|
9016dd9908
|
Added strlen function, fixing some unit tests
|
2023-01-09 11:54:13 +01:00 |
|
Simon Wisselink
|
e124f71dd8
|
Fixed issue related to scoping of left/right delimiter overrides
|
2023-01-09 11:25:09 +01:00 |
|
Simon Wisselink
|
34d5d6d024
|
Rewrote global static global_tpl_vars to getters/setters on Smarty class, fixing several test cases. Added a ::getValue() method to Variable.
|
2023-01-09 09:55:22 +01:00 |
|
Simon Wisselink
|
c5de83b09f
|
Fixed modifiercompiler handling multiple/chained modifiers
|
2023-01-09 09:53:15 +01:00 |
|
Simon Wisselink
|
861aafa92c
|
2 small fixes for unit tests
|
2023-01-07 23:45:59 +01:00 |
|
Simon Wisselink
|
e1d395e140
|
Fixed stream resources
|
2023-01-07 23:22:58 +01:00 |
|
Simon Wisselink
|
fd64cc688a
|
Removed PHP functions and checks for the already removed php modifiers. Re-implemented functions as regular functions. Probably should compile these directly.
|
2023-01-07 23:06:47 +01:00 |
|
Simon Wisselink
|
e595cd2a5d
|
Fixed BC loading of resource pluging from dir and all ResourcePluginTest tests
|
2023-01-06 21:53:37 +01:00 |
|
Simon Wisselink
|
b2e11ee2b8
|
Removed deprecated extends_recursion property and fix bug in CodeFrame compiler due to use of clone.
|
2023-01-06 21:43:48 +01:00 |
|
Simon Wisselink
|
1f87cebb93
|
Make DefaultExtension lazy load again.
|
2023-01-06 21:41:23 +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
|
f07e342d61
|
Removed now unneeded PHPunit annotations @run(Tests)InSeparateProcess, @preserveGlobalState and @backupStaticAttributes. Made CacheResourceTestCommon abstract to prevent the base class from running tests (and always failing). Unregister a previously registered stream wrapper. Fixes a lot of tests.
|
2023-01-05 23:06:02 +01:00 |
|
Simon Wisselink
|
576bd4cc01
|
Removed support for PHP include path, and removed the ::loadPlugin method.
|
2023-01-05 21:58:29 +01:00 |
|
Simon Wisselink
|
e89a3dda49
|
Implemented the DefaultHandlerBlockCompiler, made the dependencies of the template compiler into properties, fixed a couple of unit tests
|
2023-01-05 11:18:42 +01:00 |
|
Simon Wisselink
|
2b71415d1f
|
minor fixes
|
2023-01-04 23:48:45 +01:00 |
|
Simon Wisselink
|
3cc61133a3
|
Fix code duplication in block compilers and fix (most) BlockPluginTests. Default plugin handler blocks still need fixing.
|
2023-01-04 23:45:57 +01:00 |
|
Simon Wisselink
|
216347b4ff
|
Introduce formatParamsArray method for recurring code fragment
|
2023-01-04 14:42:30 +01:00 |
|
Simon Wisselink
|
14bbffd584
|
move runPluginFromDefaultHandler to new Runtime class
|
2023-01-04 13:19:25 +01:00 |
|
Simon Wisselink
|
41054cfb05
|
Fixed DefaultPluginHandlerTest for function plugins (blocks still break)
|
2023-01-04 12:16:10 +01:00 |
|
Simon Wisselink
|
16c7fe1d4f
|
Fixed setfilter
|
2023-01-03 22:03:43 +01:00 |
|
Simon Wisselink
|
3fccb54093
|
Fixed CacheResource implementation and tests
|
2023-01-03 17:10:02 +01:00 |
|
Simon Wisselink
|
32df4c6467
|
Fix CustomResourceAmbiguousTest
|
2023-01-03 15:02:58 +01:00 |
|
Simon Wisselink
|
98ad1a13af
|
Fixed TemplateObject test
|
2023-01-03 14:20:40 +01:00 |
|
Simon Wisselink
|
9766aba66e
|
filter tests passing
|
2023-01-03 14:12:36 +01:00 |
|
Simon Wisselink
|
b9ecf115dd
|
fixed pre/post/output filters and removed some old todo-comments
|
2023-01-02 23:26:36 +01:00 |
|
Simon Wisselink
|
60a56969dd
|
WIP moving Smarty to PSR-4.
|
2023-01-02 00:49:38 +01:00 |
|
Simon Wisselink
|
6b9e2fadd1
|
Rewrote remaining plugins to PSR-4, plugins dir is now gone.
|
2022-12-25 14:02:15 +01:00 |
|
Simon Wisselink
|
ab5705a90d
|
Rewrote all default modifiers and functions from the plugins folder to PSR-4 classes
|
2022-12-24 23:38:13 +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
|
cfd8c08d09
|
smarty_internal_resource_* to PSR-4
|
2022-12-21 16:33:26 +01:00 |
|
Simon Wisselink
|
b0db4705a0
|
Finished moving smarty_internal_method_*
|
2022-12-21 14:47:33 +01:00 |
|
Simon Wisselink
|
5cac5e42f1
|
WIP rewriting smarty_internal_method_*
|
2022-12-21 14:01:18 +01:00 |
|
Simon Wisselink
|
6ba059dea8
|
Rewrote all Compile and Compiler classes to PSR-4
|
2022-12-20 23:47:18 +01:00 |
|
Simon Wisselink
|
1524f11c8e
|
finished rewriting all compile classes into PSR-4
|
2022-12-20 23:05:36 +01:00 |
|
Simon Wisselink
|
164a89a1fd
|
WIP making compile classes PSR-4
|
2022-12-01 23:44:58 +01:00 |
|