Commit Graph

997 Commits

Author SHA1 Message Date
Fabien Potencier 0ae533dfe3 Merge branch '1.x' into 2.x
* 1.x:
  removed docs about overloading
  bumped version to 1.42.2-DEV
  prepared the 1.42.1 release
2019-06-04 18:39:18 +02:00
Fabien Potencier 18e3728682 removed docs about overloading 2019-06-04 17:49:11 +02:00
Fabien Potencier ee7be2e187 added a doc note 2019-06-04 10:53:04 +02:00
Fabien Potencier 5d70ff2ac2 Merge branch '1.x' into 2.x
* 1.x:
  Update the documentation for newly added features
2019-06-03 15:30:58 +02:00
Alex bf518d2cca Update the documentation for newly added features 2019-06-03 15:28:27 +02:00
Fabien Potencier 0ee2361739 Merge branch '1.x' into 2.x
* 1.x:
  Fix typo in filter doc
2019-05-28 12:28:06 +02:00
Yonel Ceruto 940641364b Fix typo in filter doc 2019-05-27 09:59:11 -04:00
Fabien Potencier b2f449f14e feature #3025 Add the possibility to register classes/interface as being safe (fabpot)
This PR was squashed before being merged into the 2.x branch (closes #3025).

Discussion
----------

Add the possibility to register classes/interface as being safe

closes #2548

To avoid a too big performance impact on the escaper, we aggressively cache the safe classes, which means that changing the. configuration at runtime is not possible (and having different ones on 2 Twig instances is not possible either, this is really *globally* configured).

Commits
-------

fe6503fe -
b18733bc added the possibility to register classes/interfaces as being safe for the escaper
2019-05-25 12:23:33 +02:00
Fabien Potencier 24a8e38c65 Merge branch '1.x' into 2.x
* 1.x:
  tweaked docs
  Add information for when `filter` filter was added in 2.x branch
  tweaked docs
  doc(filter): add example of `filter` without `for` use
2019-05-22 15:59:33 +02:00
Fabien Potencier cca7007abd tweaked docs 2019-05-22 15:59:27 +02:00
Jörn Wagner a05da6dbbe Add information for when filter filter was added in 2.x branch
The current "versionadded" info can be confusing to developers, if they assume 2.9 > 1.41 and don't know that 1.x and 2.x branches are still developed simultaneously.
2019-05-22 15:58:42 +02:00
Fabien Potencier b18733bce0 added the possibility to register classes/interfaces as being safe for the escaper 2019-05-21 15:41:28 +02:00
Fabien Potencier 59d1d5d4b6 deprecated CoreExtension::setEscaper() and CoreExtension::getEscaper() in favor of the same methods on EscaperExtension 2019-05-21 09:01:26 +02:00
Fabien Potencier 571929f263 tweaked docs 2019-05-20 09:21:53 +02:00
Hugo Alliaume 847276a6b9 doc(filter): add example of filter without for use 2019-05-20 09:18:47 +02:00
Fabien Potencier 3fcbc44205 Local macros auto-import 2019-05-18 15:49:29 +02:00
Fabien Potencier c71026beab updated docs for macros 2019-05-18 11:14:27 +02:00
Fabien Potencier 3249a7710e Merge branch '1.x' into 2.x
* 1.x:
  tweaked docs for macros
2019-05-18 10:44:15 +02:00
Fabien Potencier 53496d53d8 tweaked docs for macros 2019-05-18 10:33:25 +02:00
Fabien Potencier 257e6c29d3 fixed version 2019-05-17 14:21:21 +02:00
Fabien Potencier 6cfd53fa5c Merge branch '1.x' into 2.x
* 1.x:
  fixed typo
  update docs for for loop with conditional to reference filter filters
2019-05-17 14:21:07 +02:00
Fabien Potencier d3dcd6d3c5 fixed typo 2019-05-17 14:20:59 +02:00
Douglas Greenshields b905e02333 update docs for for loop with conditional to reference filter filters 2019-05-17 14:19:50 +02:00
Sebastian Blank 65047482be Correct Twig_SimpleFilter/Twig_SimpleFunction/Twig_SimpleTest deprecation doc (Revert: moved to namespaced classes by default) 2019-05-14 12:17:20 +02:00
Fabien Potencier 5d1d90ba53 deprecated "if" conditions on "for" tags 2019-05-09 15:20:13 +02:00
Fabien Potencier 5c484ce7eb Merge branch '1.x' into 2.x
* 1.x:
  added the key to the map and filter filters
  added support for iterators
  removed fn in front of arrow functions
  changed arrow syntax
  added "filter", "map", and "reduce" filters
  simplified code
  fixed CS
  fixed partial output leak when a PHP fatal error occurs
2019-05-09 13:25:49 +02:00
Fabien Potencier 5c15f897c7 added the key to the map and filter filters 2019-05-03 19:04:11 +02:00
Fabien Potencier 175041e01b removed fn in front of arrow functions 2019-05-03 18:12:19 +02:00
Fabien Potencier b30bce1139 added "filter", "map", and "reduce" filters 2019-05-03 17:09:12 +02:00
Fabien Potencier 79c9b05856 Merge branch '1.x' into 2.x
* 1.x:
  fixed markup in docs
2019-05-03 05:45:53 +02:00
Fabien Potencier d3acd0bede fixed markup in docs 2019-05-03 05:45:17 +02:00
Fabien Potencier d03684c9f2 Merge branch '1.x' into 2.x
* 1.x:
  removed wrong link in docs
  fixed doc markup
2019-04-30 14:27:24 +02:00
Fabien Potencier bd7ca26497 removed wrong link in docs 2019-04-30 14:26:21 +02:00
Fabien Potencier 61eb901f16 fixed doc markup 2019-04-30 14:23:18 +02:00
Fabien Potencier 3806c6db7d fixed doc indexes 2019-04-30 14:18:53 +02:00
Fabien Potencier ad467a74d1 Merge branch '1.x' into 2.x
* 1.x:
  fixed doc indexes
  add column filter to index
  bumped version to 1.40.2-DEV
  prepared the 1.40.1 release
2019-04-30 14:17:39 +02:00
Fabien Potencier bd5c53f1b2 fixed doc indexes 2019-04-30 14:16:53 +02:00
Pablo Schläpfer e804338b2c add column filter to index 2019-04-30 14:14:19 +02:00
Fabien Potencier 27a9a4d91d Merge branch '1.x' into 2.x
* 1.x:
  tweaked the doc
2019-04-27 16:57:11 +01:00
Fabien Potencier 5ac239ca4f tweaked the doc 2019-04-27 15:54:47 +01:00
Fabien Potencier bcc34c4bb7 fixed doc format 2019-04-25 14:27:56 +02:00
Fabien Potencier 97167aab98 Merge branch '1.x' into 2.x
* 1.x:
  tweaked doc markup
  tweaked escape docs
2019-04-25 14:27:37 +02:00
Fabien Potencier fa836ddfea tweaked doc markup 2019-04-25 12:14:46 +02:00
Fabien Potencier 6578035968 minor #2980 Tweak escape docs (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Tweak escape docs

Commits
-------

fb68f487 tweaked escape docs
2019-04-25 12:13:47 +02:00
Fabien Potencier fb68f487ce tweaked escape docs 2019-04-25 12:07:29 +02:00
Fabien Potencier 776e32bc7a deprecated the filter tag 2019-04-24 20:55:30 +02:00
Fabien Potencier 5dc4f198b2 fixed docs 2019-04-24 19:38:21 +02:00
Fabien Potencier d7714a6b15 Merge branch '1.x' into 2.x
* 1.x:
  fixed typo
  fixed docs
2019-04-24 19:36:44 +02:00
Fabien Potencier 321c9a855c fixed typo 2019-04-24 19:36:33 +02:00
Fabien Potencier 31a28fcb8f fixed docs 2019-04-24 19:36:11 +02:00