Commit Graph

5003 Commits

Author SHA1 Message Date
Fabien Potencier 8599981de8 Merge branch '2.x' into 3.x
* 2.x:
  Bump min version for pinky
  fix variable name
2019-09-17 08:08:20 +02:00
Fabien Potencier d83802c011 Bump min version for pinky 2019-09-17 08:08:14 +02:00
Fabien Potencier ada3096c0b minor #3150 fix variable name (galdiolo)
This PR was merged into the 2.x branch.

Discussion
----------

fix variable name

Commits
-------

2cb5387e fix variable name
2019-09-15 10:34:00 +02:00
Claudio Galdiolo 2cb5387e75 fix variable name 2019-09-14 13:04:38 +02:00
Fabien Potencier ab735c7a1d Merge branch '2.x' into 3.x
* 2.x:
  Move country_timezone to a function
  Renamed inky to inky_to_html
  Minor fix in a filter description
  Minor fixes in the docs of some intl filters
2019-09-07 14:46:43 +02:00
Fabien Potencier ac72085e78 feature #3149 Move country_timezone to a function (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Move country_timezone to a function

Commits
-------

c046e69e Move country_timezone to a function
2019-09-07 09:26:32 +02:00
Fabien Potencier 1fcf9143e2 feature #3148 Rename inky to inky_to_html (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Rename inky to inky_to_html

closes #3142

Commits
-------

9f9a2088 Renamed inky to inky_to_html
2019-09-07 09:25:39 +02:00
Fabien Potencier c046e69e67 Move country_timezone to a function 2019-09-07 08:58:31 +02:00
Fabien Potencier 9f9a2088a7 Renamed inky to inky_to_html 2019-09-07 08:57:51 +02:00
Fabien Potencier 2a9fa7ba93 minor #3147 Minor fix in a filter description (javiereguiluz)
This PR was merged into the 2.x branch.

Discussion
----------

Minor fix in a filter description

Commits
-------

890d507f Minor fix in a filter description
2019-09-07 08:25:43 +02:00
Javier Eguiluz 890d507ff1 Minor fix in a filter description 2019-09-06 19:55:25 +02:00
Fabien Potencier 18f56ad9b2 minor #3146 Minor fixes in the docs of some intl filters (javiereguiluz)
This PR was merged into the 2.x branch.

Discussion
----------

Minor fixes in the docs of some intl filters

I'll do another PR to fix https://github.com/twigphp/intl-extra/README.md

Commits
-------

b9abb294 Minor fixes in the docs of some intl filters
2019-09-06 17:38:53 +02:00
Javier Eguiluz b9abb294ab Minor fixes in the docs of some intl filters 2019-09-06 17:34:43 +02:00
Fabien Potencier c4931cf603 Merge branch '2.x' into 3.x
* 2.x:
  Handle opcache_invalidate() being disabled on shared hosting platforms
2019-08-21 07:13:11 +02:00
Fabien Potencier 38341bbefd Merge branch '1.x' into 2.x
* 1.x:
  Handle opcache_invalidate() being disabled on shared hosting platforms
2019-08-21 07:13:01 +02:00
Fabien Potencier 5ed74a1bae bug #3105 Handle opcache_invalidate() being disabled on shared hosting platforms (RhvsW)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3105).

Discussion
----------

Handle opcache_invalidate() being disabled on shared hosting platforms

This fix makes twig gracefully fail on opcache API being disabled on shared hosting platforms for security reasons.
Tested with Grav CMS.

Commits
-------

349a5f26 Handle opcache_invalidate() being disabled on shared hosting platforms
2019-08-21 07:12:26 +02:00
Rhys 349a5f26c3 Handle opcache_invalidate() being disabled on shared hosting platforms
This fix makes twig gracefully fail on opcache API being disabled on shared hosting platforms for security reasons.
Tested with Grav CMS.
2019-08-21 07:12:20 +02:00
Fabien Potencier e78c489deb Merge branch '2.x' into 3.x
* 2.x:
  added the spaceship operator
  added support for an "arrow" function on the "sort" filter
2019-08-20 10:38:25 +02:00
Fabien Potencier 55704ce1d2 feature #3133 Add the spaceship operator (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Add the spaceship operator

Commits
-------

f5950a5b added the spaceship operator
2019-08-20 10:37:55 +02:00
Fabien Potencier f5950a5b1f added the spaceship operator 2019-08-20 10:30:06 +02:00
Fabien Potencier 491d4a814d feature #3132 Add support for an "arrow" function on the "sort" filter (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Add support for an "arrow" function on the "sort" filter

closes #3131

Commits
-------

330024b6 added support for an "arrow" function on the "sort" filter
2019-08-20 10:29:20 +02:00
Fabien Potencier 330024b67e added support for an "arrow" function on the "sort" filter 2019-08-20 10:18:43 +02:00
Fabien Potencier e5b29ee1f7 Merge branch '2.x' into 3.x
* 2.x:
  cleaned up the code
  Fix intl-extra docs and links
  removed unneeded condition
  moved mime to req
2019-08-12 09:27:28 +02:00
Fabien Potencier 163f6a0979 minor #3126 Clean up the code (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Clean up the code

Commits
-------

ba8f7a5e cleaned up the code
2019-08-12 09:26:54 +02:00
Fabien Potencier ba8f7a5e4c cleaned up the code 2019-08-12 09:23:06 +02:00
Fabien Potencier 905f551621 minor #3125 Fix intl-extra docs and links (pierredup)
This PR was squashed before being merged into the 2.x branch (closes #3125).

Discussion
----------

Fix intl-extra docs and links

Commits
-------

6f73ac72 Fix intl-extra docs and links
2019-08-12 09:17:35 +02:00
Pierre du Plessis 6f73ac72de Fix intl-extra docs and links 2019-08-12 09:17:28 +02:00
Fabien Potencier cf444dde71 removed unneeded condition 2019-08-12 08:43:14 +02:00
Fabien Potencier 9d5de4b438 minor #3124 move mime to req (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

move mime to req

Commits
-------

9dc85f5e moved mime to req
2019-08-11 19:50:54 +02:00
Fabien Potencier 9dc85f5e0c moved mime to req 2019-08-11 19:49:57 +02:00
Fabien Potencier 635504c988 Merge branch '2.x' into 3.x
* 2.x:
  fixed code
  updated CHANGELOG
2019-08-11 12:37:18 +02:00
Fabien Potencier d937ff1f91 fixed code 2019-08-11 12:37:10 +02:00
Fabien Potencier bdfc63b864 updated CHANGELOG 2019-08-11 12:22:17 +02:00
Fabien Potencier d706fc259d Merge branch '2.x' into 3.x
* 2.x:
  added the cssinliner and inky extensions
  tweaked doc
2019-08-11 12:21:19 +02:00
Fabien Potencier 21f5b49e43 feature #3122 Add the cssinliner and inky extensions (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Add the cssinliner and inky extensions

Commits
-------

37ed0436 added the cssinliner and inky extensions
2019-08-11 12:20:08 +02:00
Fabien Potencier 37ed0436dd added the cssinliner and inky extensions 2019-08-11 12:14:28 +02:00
Fabien Potencier 0339772557 minor #3121 Tweak doc (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Tweak doc

Commits
-------

499a6eeb tweaked doc
2019-08-11 11:48:25 +02:00
Fabien Potencier 499a6eeb13 tweaked doc 2019-08-11 11:46:30 +02:00
Fabien Potencier 4d34327368 fixed versions of extra exts 2019-08-10 16:56:24 +02:00
Fabien Potencier 5b1f41b855 Merge branch '2.x' into 3.x
* 2.x:
  fixed markup in docs
  fixed markup in docs
  fixed typo
  fixed CS
  fixed typo
2019-08-10 16:16:55 +02:00
Fabien Potencier 5168c0e2fe fixed markup in docs 2019-08-10 16:16:47 +02:00
Fabien Potencier 1e7ca11c0f fixed markup in docs 2019-08-10 16:14:01 +02:00
Fabien Potencier d3ee0f7479 fixed typo 2019-08-10 16:12:34 +02:00
Fabien Potencier 42611d7c40 fixed CS 2019-08-10 16:11:58 +02:00
Fabien Potencier b41eb45c3b fixed typo 2019-08-10 16:08:18 +02:00
Fabien Potencier fdf44d29d8 Merge branch '2.x' into 3.x
* 2.x:
  added the Intl extension
2019-08-10 16:03:35 +02:00
Fabien Potencier f67b567ca2 feature #3108 Add an Intl extension (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Add an Intl extension

This new Intl extension is made of 2 parts: one is about formatting dates/currencies/numbers (which is what we already have partially in twig-extensions) and the second part is about ICU data as available in Symfony 4.3+.

I've decided to put this extension into Twig instead of the Symfony bridge because of the functions that do not rely on Symfony (and I wanted everything in the same place). Also, some Twig features now depends on some external libraries, so it makes more sense now than a few years ago where Twig had no external dependencies. Last, but not least, intl is an important topic, and I think it deserves to be a Twig first class citizen.

TODO:

 - [x] add documentation
 - [ ] what do we want to do with the existing `date` and `number_format` filters?

closes https://github.com/symfony/symfony/pull/20053
closes #2567
closes https://github.com/symfony/symfony/issues/13641
closes https://github.com/twigphp/Twig-extensions/pull/134
closes https://github.com/twigphp/Twig-extensions/pull/137
closes https://github.com/twigphp/Twig-extensions/pull/183
closes https://github.com/twigphp/Twig-extensions/pull/229
closes https://github.com/twigphp/Twig-extensions/issues/167
closes https://github.com/twigphp/Twig-extensions/issues/211

Commits
-------

03d93aac added the Intl extension
2019-08-10 16:01:08 +02:00
Fabien Potencier 03d93aace8 added the Intl extension 2019-08-10 15:59:48 +02:00
Fabien Potencier c4279abb1f Merge branch '2.x' into 3.x
* 2.x:
  disabled some tests that are not compatible with pHp 7.4 yet
  fixed typos
2019-08-10 15:49:59 +02:00
Fabien Potencier 0a1c0f6d7c minor #3120 Disable some tests that are not compatible with pHp 7.4 yet (fabpot)
This PR was merged into the 2.x branch.

Discussion
----------

Disable some tests that are not compatible with pHp 7.4 yet

Commits
-------

7fedcba5 disabled some tests that are not compatible with pHp 7.4 yet
2019-08-10 15:49:38 +02:00