Commit Graph

2602 Commits

Author SHA1 Message Date
Fabien Potencier d96a014e68 minor #1730 Remove reference to String loader in docs (simshaun)
This PR was merged into the 2.0-dev branch.

Discussion
----------

Remove reference to `String` loader in docs

Commits
-------

02a7bd6 Remove reference to `String` loader in docs
2015-07-07 09:36:49 +02:00
Shaun 02a7bd6d7e Remove reference to String loader in docs 2015-07-06 15:43:15 -04:00
Fabien Potencier 248de72b17 minor #1728 removed some test hacks (fabpot)
This PR was merged into the 2.0-dev branch.

Discussion
----------

removed some test hacks

Commits
-------

ab88c38 removed some test hacks
2015-07-05 08:50:49 +02:00
Fabien Potencier ab88c38a27 removed some test hacks 2015-07-05 08:45:44 +02:00
Fabien Potencier b941b5627a updated phpdoc 2015-07-05 08:04:44 +02:00
Fabien Potencier 43e2bfbd09 minor #1673 Add Twig_ExistsLoaderInterface back for 1.x BC layer #1644 (joelpittet)
This PR was merged into the 2.0-dev branch.

Discussion
----------

Add Twig_ExistsLoaderInterface back for 1.x BC layer #1644

This is the 2.x change for 1.x BC layer of Twig_ExistsLoaderInterface for #1644

Commits
-------

3e546c9 Add Twig_ExistsLoaderInterface back for 1.x BC layer
2015-07-05 08:03:51 +02:00
Fabien Potencier dd2f2129a3 fixed phpdocs 2015-07-04 11:50:19 +02:00
Fabien Potencier 88099932d1 bug #1727 Fix the profiler node visitor signature for Twig 2.0 (stof)
This PR was merged into the 2.0-dev branch.

Discussion
----------

Fix the profiler node visitor signature for Twig 2.0

Commits
-------

e66b07d Fix the profiler node visitor signature for Twig 2.0
2015-07-04 11:48:10 +02:00
Christophe Coevoet e66b07df56 Fix the profiler node visitor signature for Twig 2.0 2015-07-03 14:46:22 +02:00
Fabien Potencier 616c1cceb1 feature #1726 Twig_Template::getContext() removal (fabpot)
This PR was merged into the 2.0-dev branch.

Discussion
----------

Twig_Template::getContext() removal

`Twig_Template::getContext()` is an implementation detail as it is only used on some PHP versions, for some cases. But even with the big warning in the phpdoc, people want to use it, which is a really bad idea. Removing it in 1.x would be kind of a "BC break", so I propose to remove it in 2.0.

Commits
-------

a0261e7 removed code that people want to overide over and over again
2015-07-03 12:15:39 +02:00
Fabien Potencier 336320ee2e removed PHP 5.2 code 2015-07-03 12:15:01 +02:00
Fabien Potencier ff506eb9ab Merge branch '1.x'
* 1.x:
  fixed PHP 5.2 compat
  tweaked previous merge
  add ignore_missing agrument to source function
  updated CHANGELOG
2015-07-03 12:14:51 +02:00
Fabien Potencier 82636dc93d fixed PHP 5.2 compat 2015-07-03 12:11:52 +02:00
Fabien Potencier a0261e7040 removed code that people want to overide over and over again 2015-07-03 12:04:33 +02:00
Fabien Potencier 641090378d tweaked previous merge 2015-07-03 11:46:19 +02:00
Fabien Potencier 35790250b8 bug #1666 add ignore_missing agrument to source function (vetruvet)
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #1666).

Discussion
----------

add ignore_missing agrument to source function

This basically works the same way as `ignore_missing` on the `include` function/tag.

Commits
-------

afa9358 add ignore_missing agrument to source function
2015-07-03 11:44:24 +02:00
Valeriy Trubachev afa93586bc add ignore_missing agrument to source function 2015-07-03 11:44:24 +02:00
Fabien Potencier 793ea7e37d updated CHANGELOG 2015-07-03 11:41:40 +02:00
Fabien Potencier bd8a07e89a removed Twig_Environment::clearTemplateCache 2015-07-03 11:33:57 +02:00
Fabien Potencier 4756b19b98 Merge branch '1.x'
* 1.x:
  fixed edge case where tests would fail because of a cache issue
  tweaked docs to avoid using an internal method in an example
  deprecated Twig_Environment::clearTemplateCache()
  fixed sandbox disabling when using the include function
  Example about how to rename several blocks
  fixed docs
  Update batch filter docs with arguments
2015-07-03 11:33:29 +02:00
Fabien Potencier 849adeb85e fixed edge case where tests would fail because of a cache issue 2015-07-03 11:33:17 +02:00
Fabien Potencier d472fcc9bd tweaked docs to avoid using an internal method in an example 2015-07-03 11:30:18 +02:00
Fabien Potencier 61eb80b089 deprecated Twig_Environment::clearTemplateCache() 2015-07-03 11:29:18 +02:00
Fabien Potencier 1255e360e7 bug #1725 fixed sandbox disabling when using the include function (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

fixed sandbox disabling when using the include function

closes #1668

Commits
-------

af72894 fixed sandbox disabling when using the include function
2015-07-03 11:20:29 +02:00
Fabien Potencier af728947d6 fixed sandbox disabling when using the include function 2015-07-03 09:28:58 +02:00
Fabien Potencier 90026f3f99 minor #1720 Example about how to rename several blocks (pyguerder)
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #1720).

Discussion
----------

Example about how to rename several blocks

It was unclear to me how to rename more than 1 imported block. I had to look into the source code to find that, so I add it to the documentation.

Commits
-------

8af1355 Example about how to rename several blocks
2015-07-03 09:00:14 +02:00
Pierre-Yves Guerder 8af1355e43 Example about how to rename several blocks
It was unclear to me how to rename more than 1 imported block. I had to look into the source code to find that, so I add it to the documentation.
2015-07-03 09:00:13 +02:00
Fabien Potencier 7823014351 fixed docs 2015-07-03 08:59:01 +02:00
Fabien Potencier 1ee34b4bd5 minor #1723 Update batch filter docs with arguments (alexeymalihin)
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #1723).

Discussion
----------

Update batch filter docs with arguments

Changes based on https://github.com/twigphp/Twig/blob/1.x/test/Twig/Tests/Fixtures/filters/batch_float.test

Commits
-------

b66821e Update batch filter docs with arguments
2015-07-03 08:57:29 +02:00
Alexey Malihin b66821e861 Update batch filter docs with arguments 2015-07-03 08:57:29 +02:00
Fabien Potencier 7dd1132300 fixed CS 2015-07-03 08:52:46 +02:00
Fabien Potencier 881a7b67bc Merge branch '1.x'
* 1.x:
  fixed CS
  fix batch filter with zero items
  Fix PHP_FE_END value
2015-07-03 08:49:50 +02:00
Fabien Potencier b0c41d42c4 fixed CS 2015-07-03 08:47:09 +02:00
Fabien Potencier d00943bb56 bug #1724 fix batch filter with zero items (Tobion)
This PR was merged into the 1.x branch.

Discussion
----------

fix batch filter with zero items

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

also added a test for preserving keys behavior

Commits
-------

8d6be28 fix batch filter with zero items
2015-07-03 08:37:27 +02:00
Tobias Schultze 8d6be28430 fix batch filter with zero items
also added a test for preserving keys behavior
2015-07-02 23:47:18 +02:00
Fabien Potencier ae448f3ae2 bug #1722 Fix PHP_FE_END value (remicollet)
This PR was merged into the 1.x branch.

Discussion
----------

Fix PHP_FE_END value

See explanation on rev c41d305

Commits
-------

a1eee07 Fix PHP_FE_END value
2015-07-01 16:40:16 +02:00
Remi Collet a1eee074e8 Fix PHP_FE_END value
See explanation on rev c41d305
2015-07-01 12:05:34 +02:00
Fabien Potencier 2a08a67108 Merge branch '1.x'
* 1.x:
  fixed CS
  bumped version to 1.18.3-DEV
  prepared the 1.18.2 release

Conflicts:
	CHANGELOG
	ext/twig/php_twig.h
	lib/Twig/Environment.php
2015-06-24 18:24:55 +02:00
Fabien Potencier 12bf70d9ad fixed CS 2015-06-24 18:24:09 +02:00
Fabien Potencier e22fb8728b bumped version to 1.18.3-DEV 2015-06-07 01:35:59 +02:00
Fabien Potencier e8e6575abf prepared the 1.18.2 release v1.18.2 2015-06-07 01:31:24 +02:00
Fabien Potencier fe67c5ba3a Merge branch '1.x'
* 1.x:
  updated CHANGELOG
  reverted unexpected change
  fixed previous merge
  Organize and show value types
  Added label for "Whitespace Control" section
  Added note about case sensitivity of logic operators
  Fixed CS
  Fixed error guessing for nested templates
  Travis no longer supports hhvm-nightly
  fixed CS
  Added an example for "and" on if statment
  Updated exception messages for null vars in Twig_Template::getAttribute().
  Use stubs for profiles. Fixes #1660

Conflicts:
	doc/api.rst
2015-06-07 01:29:09 +02:00
Fabien Potencier 3e3aa8e26d updated CHANGELOG 2015-06-07 01:28:33 +02:00
Fabien Potencier b560a2c14f reverted unexpected change 2015-06-07 01:26:25 +02:00
Fabien Potencier d0b71307d6 fixed previous merge 2015-06-07 01:22:13 +02:00
Fabien Potencier 47f06e8237 minor #1624 Organize and show value types (kevinsimper)
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #1624).

Discussion
----------

Organize and show value types

I was a little confused about how `auto_reload` and what kind of types you had to provide. Hope this helps to clarify that for others.

Should it also say something about how `cache: true` and `auto_reload: true` works together, as that is a question i have myself :)

Commits
-------

0a46d06 Organize and show value types
2015-06-07 01:19:31 +02:00
Kevin Simper 0a46d06069 Organize and show value types 2015-06-07 01:19:31 +02:00
Fabien Potencier 69984ee652 minor #1664 Use mocks for profiles. Fixes #1660 (matthieuauger)
This PR was merged into the 1.x branch.

Discussion
----------

Use mocks for profiles. Fixes #1660

| Q             | A
| ------------- | ---
| Bug fix?      | yes #1660
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

This PR aims to change the getProfile() method to returns mocks.
This fixes #1660

BTW Is there a specific reason why there are no mocks for the tests in the project ?

Commits
-------

f6bce94 Use stubs for profiles. Fixes #1660
2015-06-07 00:23:40 +02:00
Fabien Potencier dfddd2e0ef bug #1701 Fixed error guessing for nested templates (hason)
This PR was merged into the 1.x branch.

Discussion
----------

Fixed error guessing for nested templates

Commits
-------

00fe940 Fixed CS
dd1b101 Fixed error guessing for nested templates
2015-06-02 16:50:15 +02:00
Fabien Potencier c4bc409088 minor #1700 Travis no longer supports hhvm-nightly (hason)
This PR was merged into the 1.x branch.

Discussion
----------

Travis no longer supports hhvm-nightly

See travis-ci/travis-ci#3788

Commits
-------

329d67c Travis no longer supports hhvm-nightly
2015-06-02 16:48:47 +02:00