Fabien Potencier
b6d9dd62ee
Fix inheritance logic to be able to use instanceof ContextVariable instead of NameExpression
2025-01-24 13:47:29 +01:00
Fabien Potencier
d4a302681b
Fix sandbox handling for __toString()
2024-11-06 21:35:53 +01:00
Fabien Potencier
1d22d300fa
Revert "feature #4409 Deprecate the range function (fabpot)"
...
This reverts commit 99c6fbd517 , reversing
changes made to 868b429853 .
2024-10-24 15:37:54 +02:00
Fabien Potencier
3d99e595c8
Deprecate the range function
2024-10-24 14:02:46 +02:00
Fabien Potencier
8b278986b8
Deprecate using Node directly, introduce EmptyNode and Nodes
2024-09-27 07:42:41 +02:00
Fabien Potencier
3156d8093e
Move FunctionExpression/FilterExpression/TestExpression attributes from compilation time to parsing time
2024-08-14 18:45:35 +02:00
Fabien Potencier
27f6171f2f
Add support for yielding from a generator in PrintNode
2024-07-27 16:57:14 +02:00
Fabien Potencier
469d52d1b8
Simplify sandbox code
2024-04-30 13:40:56 +02:00
Fabien Potencier
ca3bb5188c
Mark built-in node visitors as @internal
2020-11-30 09:16:20 +01:00
Fabien Potencier
1fb577363d
Merge branch '2.x' into 3.x
...
* 2.x:
Fix sandbox support when using include(template_from_string())
Add test to verify that filter is not working when template_from_string is used.
In |filter(), |map(), and |reduce(), throw a RuntimeError instead of a TypeError
2020-08-23 17:55:24 +02:00
Fabien Potencier
ab6695b580
Merge branch '1.x' into 2.x
...
* 1.x:
Fix sandbox support when using include(template_from_string())
Add test to verify that filter is not working when template_from_string is used.
In |filter(), |map(), and |reduce(), throw a RuntimeError instead of a TypeError
2020-08-23 17:55:14 +02:00
Fabien Potencier
c7be1bb3c4
Fix sandbox support when using include(template_from_string())
2020-08-23 17:48:34 +02:00
Fabien Potencier
db41300124
Merge branch '2.x' into 3.x
...
* 2.x:
fixed macro auto-import when a template contains only macros
fixed end of constructor node logic
bumped version to 2.11.3-DEV
prepared the 2.11.2 release
fixed macro auto-import
fix CS
fix CS
bumped version to 2.12
2019-06-08 09:01:50 +02:00
Fabien Potencier
1a3dc0aab0
Merge branch '1.x' into 2.x
...
* 1.x:
fixed end of constructor node logic
2019-06-06 10:08:52 +02:00
Fabien Potencier
8a29b42df9
fixed end of constructor node logic
2019-06-06 10:03:25 +02:00
Fabien Potencier
54cec4e3b8
added type hints
2019-04-26 12:01:21 +02:00
Fabien Potencier
273b666a71
removed the obsolete lib/ directory, removed PSR-0 class aliases
2019-04-23 16:34:05 +02:00
Fabien Potencier
241f95cb25
added some type hints on private methods
2019-03-16 13:24:59 +01:00
Fabien Potencier
ad7d27425d
Merge branch '1.x' into 2.x
...
* 1.x:
fixed security issue in the sandbox
2019-03-12 13:36:16 +01:00
Fabien Potencier
eac5422956
fixed security issue in the sandbox
2019-03-12 11:09:54 +01:00
Fabien Potencier
0ad866d513
Merge branch '1.x' into 2.x
...
* 1.x:
do not check sandbox for __toString if method does not exist on object
tweaked sandbox generated code
fixed indentation of the compiled template
2019-03-11 12:07:26 +01:00
Fabien Potencier
cbb8f6edc1
tweaked sandbox generated code
2019-03-11 08:53:51 +01:00
Fabien Potencier
47b5238c67
Merge branch '1.x' into 2.x
...
* 1.x:
moved some more PSR0 class names to namespaced ones
2019-03-06 14:02:19 +01:00
Fabien Potencier
4eb0c9da8e
moved some more PSR0 class names to namespaced ones
2019-03-06 13:58:28 +01:00
Fabien Potencier
037ee67224
switched to namespace first, PSR-0 as a fallback
2019-03-05 08:14:45 +01:00
Fabien Potencier
baa70287f5
switched to namespace first, PSR-0 as a fallback
2019-03-04 21:33:40 +01:00
Maxime Steinhausser
2c174e4015
Use class_exists instead of require
2017-06-05 23:42:50 +02:00
Nicolas Grekas
5420a5e3f8
Add the aliases
2017-05-25 08:32:07 +02:00
Nicolas Grekas
71af32b306
Add namespaced aliases
2017-05-24 10:12:32 +02:00