3678 Commits

Author SHA1 Message Date
Fabien Potencier fe3e3f3359 prepared the 2.4.2 release v2.4.2 2017-06-05 20:58:14 -07:00
Fabien Potencier acdf2581c9 replaced require with class_exists 2017-06-05 17:04:54 -07:00
Fabien Potencier 4ec8473a56 Merge branch '1.x' into 2.x
* 1.x:
  replaced require with class_exists
2017-06-05 17:04:25 -07:00
Fabien Potencier e92a13aae9 replaced require with class_exists 2017-06-05 17:04:19 -07:00
Fabien Potencier fd70cf0c60 Merge branch '1.x' into 2.x
* 1.x:
  Use class_exists instead of require
2017-06-05 16:59:17 -07:00
Fabien Potencier 84631789a2 bug #2502 Use class_exists instead of require (ogizanagi)
This PR was merged into the 1.x branch.

Discussion
----------

Use class_exists instead of require

I think this is required for https://github.com/symfony/symfony/pull/23073 to pass. It's probably very similar to https://github.com/symfony/symfony/pull/22657.

A simple reproducer:

```php
<?php

use Twig\Node\Node;

require_once __DIR__ . '/vendor/autoload.php';

new Node();
new \Twig_Node();
```

[Without this patch](https://travis-ci.org/symfony/symfony/jobs/239712676#L2100):

```php
PHP Fatal error:  Cannot declare class Twig_Node, because the name is already in use in vendor/twig/twig/lib/Twig/Node.php on line 20
```

With, everything works fine, whatever the two calls order.

Commits
-------

2c174e40 Use class_exists instead of require
2017-06-05 16:59:01 -07:00
Maxime Steinhausser 2c174e4015 Use class_exists instead of require 2017-06-05 23:42:50 +02:00
Fabien Potencier 7152dead8e bumped version to 2.4.2-DEV 2017-06-05 11:36:13 -07:00
Fabien Potencier 97c5e1f7e2 prepared the 1.34.1 release v2.4.1 2017-06-05 11:29:51 -07:00
Fabien Potencier 69bfa63846 Use class_exists instead of require to play nice with inlining for 2.x 2017-06-05 11:28:28 -07:00
Fabien Potencier 68c7dda466 Merge branch '1.x' into 2.x
* 1.x:
  bumped version to 1.34.2-DEV
  prepared the 1.34.1 release
  updated CHANGELOG
2017-06-05 11:27:04 -07:00
Fabien Potencier 1af645d539 bumped version to 1.34.2-DEV 2017-06-05 11:26:06 -07:00
Fabien Potencier 5c0f990d44 prepared the 1.34.1 release v1.34.1 2017-06-05 11:25:10 -07:00
Fabien Potencier ef183c1c92 updated CHANGELOG 2017-06-05 11:24:34 -07:00
Fabien Potencier 86258ae849 Merge branch '1.x' into 2.x
* 1.x:
  Use class_exists instead of require to play nice with inlining
2017-06-05 11:19:32 -07:00
Fabien Potencier 23e64af69c bug #2501 Use class_exists instead of require to play nice with inlining (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Use class_exists instead of require to play nice with inlining

Should fix #2495

Commits
-------

dfe0dc2b Use class_exists instead of require to play nice with inlining
2017-06-05 11:19:11 -07:00
Nicolas Grekas dfe0dc2b58 Use class_exists instead of require to play nice with inlining 2017-06-05 20:12:18 +02:00
Fabien Potencier 976afb63a2 bumped version to 2.4.1-DEV 2017-06-05 10:25:17 -07:00
Fabien Potencier e3bdc12cba prepared the 2.4.0 release v2.4.0 2017-06-05 10:24:44 -07:00
Fabien Potencier b0f4399ab0 updated CHANGELOG 2017-06-05 10:24:14 -07:00
Fabien Potencier 7df393fb7d Merge branch '1.x' into 2.x
* 1.x:
  added missing entries in CHANGELOG
2017-06-05 10:23:50 -07:00
Fabien Potencier 8bc1c950cd added missing entries in CHANGELOG 2017-06-05 10:23:40 -07:00
Fabien Potencier e3eaa1737e Merge branch '1.x' into 2.x
* 1.x:
  bumped version to 1.34.1-DEV
  prepared the 1.34.0 release
  [Doc] Fixed documentation about 'Definition vs Runtime'
2017-06-05 10:18:54 -07:00
Fabien Potencier 1cb696c6ea bumped version to 1.34.1-DEV 2017-06-05 10:17:28 -07:00
Fabien Potencier b38636760c prepared the 1.34.0 release v1.34.0 2017-06-05 10:16:52 -07:00
Fabien Potencier d85c17e0dc bug #2500 Remove alias duplicate (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

Remove alias duplicate

Fixes #2499

Commits
-------

6674cfc4 Remove alias duplicate
2017-06-04 17:08:38 -07:00
Nicolas Grekas 6674cfc492 Remove alias duplicate 2017-06-04 22:09:17 +02:00
Fabien Potencier 3c132d066a minor #2496 [Doc] Fixed documentation about 'Definition vs Runtime' (lyrixx)
This PR was merged into the 1.x branch.

Discussion
----------

[Doc] Fixed documentation about 'Definition vs Runtime'

Commits
-------

c0b5eb9f [Doc] Fixed documentation about 'Definition vs Runtime'
2017-06-02 07:37:47 -07:00
Grégoire Pineau c0b5eb9f03 [Doc] Fixed documentation about 'Definition vs Runtime' 2017-06-02 16:26:53 +02:00
Fabien Potencier ca67cda8d0 Merge branch '1.x' into 2.x
* 1.x:
  Fix Twig\Environment alias
2017-06-01 06:51:40 -07:00
Fabien Potencier f6e0000499 minor #2494 Fix Twig\Environment alias (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Fix Twig\Environment alias

Commits
-------

8e03fa3e Fix Twig\Environment alias
2017-06-01 06:51:30 -07:00
Nicolas Grekas 8e03fa3e1c Fix Twig\Environment alias 2017-06-01 06:42:27 +02:00
Fabien Potencier c4ac663192 Merge branch '1.x' into 2.x
* 1.x:
  reverted renaming of Twig\Environment to Twig\Twig
2017-05-31 13:19:02 -07:00
Fabien Potencier 04ef7a11b7 reverted renaming of Twig\Environment to Twig\Twig 2017-05-31 13:18:51 -07:00
Fabien Potencier 0b6c19d816 fixed bad merge 2017-05-31 11:12:45 -07:00
Fabien Potencier c99d5394ba bug #2491 [2.x] Allow using namespaced aliases as extension names (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

[2.x] Allow using namespaced aliases as extension names

Commits
-------

08a88400 [2.x] Allow using namespaced aliases as extension names
2017-05-31 10:37:26 -07:00
Fabien Potencier f783be6e85 Merge branch '1.x' into 2.x
* 1.x:
  [1.x] Allow using namespaced aliases as extension names
2017-05-31 10:36:08 -07:00
Fabien Potencier aad17a1a35 bug #2490 [1.x] Allow using namespaced aliases as extension names (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

[1.x] Allow using namespaced aliases as extension names

Commits
-------

c9a2f3db [1.x] Allow using namespaced aliases as extension names
2017-05-31 10:34:55 -07:00
Nicolas Grekas c9a2f3db8b [1.x] Allow using namespaced aliases as extension names 2017-05-31 14:35:57 +02:00
Nicolas Grekas 08a8840084 [2.x] Allow using namespaced aliases as extension names 2017-05-30 13:00:58 +02:00
Fabien Potencier 9cfb0f565c updated CHANGELOG 2017-05-25 15:41:27 -07:00
Fabien Potencier a887fc9119 feature #2486 [2.x] Add namespaced aliases (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

[2.x] Add namespaced aliases

The 2.x-only part of #2484

Commits
-------

71265c40 [2.x] Add namespaced aliases
2017-05-25 15:40:35 -07:00
Fabien Potencier fd98722d15 Merge branch '1.x' into 2.x
* 1.x:
  Add the aliases
  Add namespaced aliases
2017-05-25 15:39:31 -07:00
Fabien Potencier 460712d35e feature #2484 Add namespaced aliases (nicolas-grekas)
This PR was squashed before being merged into the 1.x branch (closes #2484).

Discussion
----------

Add namespaced aliases

Commits
-------

5420a5e3 Add the aliases
71af32b3 Add namespaced aliases
2017-05-25 15:35:04 -07:00
Nicolas Grekas 5420a5e3f8 Add the aliases 2017-05-25 08:32:07 +02:00
Nicolas Grekas 71265c4000 [2.x] Add namespaced aliases 2017-05-25 08:29:23 +02:00
Fabien Potencier 11eac8ae2c bug #2483 Fix @final-related deprecations (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

Fix `@final`-related deprecations

The run-time notices make Symfony fail because the check should exclude e.g. `Twig_SimpleFilter`.
But IMHO, we may not really need these run-time checks, if we say that relying on the DebugClassLoader + CHANGELOG in enough (which we did in the past).

Commits
-------

635b9e59 Fix `@final`-related deprecations
2017-05-24 16:23:32 +02:00
Nicolas Grekas 635b9e592b Fix @final-related deprecations 2017-05-24 15:40:42 +02:00
Nicolas Grekas 71af32b306 Add namespaced aliases 2017-05-24 10:12:32 +02:00
Fabien Potencier af7120b061 feature #2481 Mark Twig_Node_Module as final via an annotation (will be final in 3.0) (fabpot)
This PR was squashed before being merged into the 2.x branch (closes #2481).

Discussion
----------

Mark Twig_Node_Module as final via an annotation (will be final in 3.0)

Commits
-------

e5fb21f1 added deprecation notices for @final classes
93929e1d added @final classes in the deprecated document
3810368b marked Twig_Node_Module as final via an annotation (will be final in 3.0)
2017-05-24 07:59:35 +02:00