Commit Graph

20328 Commits

Author SHA1 Message Date
Fabien Potencier
92c6e5585c updated CHANGELOG for 2.3.25 2015-01-30 14:54:52 +01:00
Fabien Potencier
e58bb438cf minor #13469 Fix docblocks to comments (keradus)
This PR was squashed before being merged into the 2.3 branch (closes #13469).

Discussion
----------

Fix docblocks to comments

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | ?
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Change docblock into comment when it's not a proper docblock.

Commits
-------

779926a Fix docblocks to comments
2015-01-30 10:53:49 +01:00
Dariusz Ruminski
779926a9f2 Fix docblocks to comments 2015-01-30 10:53:48 +01:00
Fabien Potencier
0c2fa6eea7 bug #13528 [Validator] reject ill-formed strings (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] reject ill-formed strings

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #13492
| License       | MIT
| Doc PR        | -

ping @Tobion

Commits
-------

3a9058a [Validator] reject ill-formed strings
2015-01-30 10:19:53 +01:00
Fabien Potencier
e25b751eb0 minor #13541 [Serializer] minor: fix comment (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] minor: fix comment

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
| Doc PR       | n/a

Fix bad copy/paste from the Validator component.

Commits
-------

2971d43 [Serializer] minor: fix comment
2015-01-30 10:18:28 +01:00
Fabien Potencier
b9540b847d bug #13525 [Validator] UniqueEntityValidator - invalidValue fixed. (Dawid Sajdak)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] UniqueEntityValidator - invalidValue fixed.

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

Commits
-------

58bf582 Unique Entity Validator Invalid Value
2015-01-30 10:14:30 +01:00
Fabien Potencier
d5e8ee3219 bug #13476 [TwigBundle] fixed Twig options (removed the parameter as it cannot contain service references) (fabpot)
This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBundle] fixed Twig options (removed the parameter as it cannot contain service references)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | #13467
| License       | MIT
| Doc PR        | n/a

The new `autoescape_service` option is used to set the `autoescape` Twig option, which can be a callable. The Twig options are stored in a parameter (`twig.options`), but as parameters cannot have references, that does not work well.

So, this PR removed the parameter as it is not needed.

Commits
-------

69748a1 [TwigBundle] fixed Twig options (removed the parameter as it cannot contain service references)
2015-01-30 09:56:14 +01:00
Fabien Potencier
7cabfa0442 bug #13549 [EventDispatcher] Wrong EventDispatcher instance injected in listeners (dosten)
This PR was submitted for the 2.6 branch but it was merged into the 2.5 branch instead (closes #13549).

Discussion
----------

[EventDispatcher] Wrong EventDispatcher instance injected in listeners

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

Actually, when using the `TraceableEventDispatcher` the listeners gets injected as third parameter the original `EventDispatcher` instead of the decorated dispatcher, this causes that the method `getCalledListeners` returns a wrong result if we dispatch another event inside a listener.

Code to reproduce:

```php
<?php

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

use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Stopwatch\Stopwatch;

$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());

$dispatcher->addListener('bar', function ($event, $eventName, $dispatcher) {});

$dispatcher->addListener('foo', function ($event, $eventName, $dispatcher) {
	$dispatcher->dispatch('bar');
});

$dispatcher->dispatch('foo');

$calledListeners = $dispatcher->getCalledListeners();

print_r($calledListeners);
```

Expected result:

```
Array
(
    [bar.closure] => Array
        (
            [event] => bar
            [type] => Closure
            [pretty] => closure
        )
    [foo.closure] => Array
        (
            [event] => foo
            [type] => Closure
            [pretty] => closure
        )
)
```

Actual result:

```
Array
(
    [foo.closure] => Array
        (
            [event] => foo
            [type] => Closure
            [pretty] => closure
        )
)

```

Commits
-------

458b029 Inject the correct EventDispatcher instance
2015-01-29 19:20:43 +01:00
Diego Saint Esteben
458b02939f Inject the correct EventDispatcher instance 2015-01-29 19:20:43 +01:00
Nicolas Grekas
3a9058a7d7 [Validator] reject ill-formed strings 2015-01-28 12:08:28 +01:00
Kévin Dunglas
2971d432f9 [Serializer] minor: fix comment 2015-01-28 08:13:07 +01:00
Fabien Potencier
28931800a0 minor #13532 [SecurityBundle] removed usage of deprecated service (fabpot)
This PR was merged into the 2.7 branch.

Discussion
----------

[SecurityBundle] removed usage of deprecated service

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

8100069 [SecurityBundle] removed usage of deprecated service
2015-01-27 11:44:58 +01:00
Fabien Potencier
8100069f6b [SecurityBundle] removed usage of deprecated service 2015-01-27 11:08:12 +01:00
Fabien Potencier
faaa4fe3e6 bug #13527 [Validator] drop grapheme_strlen in LengthValidator (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] drop grapheme_strlen in LengthValidator

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #13491
| License       | MIT
| Doc PR        | -

As stated in #13491, validating the length of a string with grapheme_strlen is not suited to validating input because a very long string can in fact have a length of 1 when counted with grapheme_strlen.
Counting UTF-8 characters (not clusters) is not subject to this problem.
The attached patch removes using grapheme_strlen but also adds more fallback when couting the length of strings, using iconv (which is more broadly avail. than mbstring) or PCRE for UTF-8 strings.

Commits
-------

915fcd8 [Validator] drop grapheme_strlen in LengthValidator
2015-01-26 20:11:19 +01:00
Nicolas Grekas
915fcd8dec [Validator] drop grapheme_strlen in LengthValidator 2015-01-26 18:35:52 +01:00
Fabien Potencier
eadc8c7de5 bug #12649 [Hackday] [Toolbar] Fix info position and icons on small screens (stefanosala)
This PR was merged into the 2.6 branch.

Discussion
----------

[Hackday] [Toolbar] Fix info position and icons on small screens

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12582
| License       | MIT
| Doc PR        | -

I changed a bit the order of profiles, IMO the dump goes closer to request data. Then I tweaked a bit the toolbar to show more icons even on smaller screen. I tested everything with Chrome and IE9 and it seems to work smoothly.

Here are some explanatory screenshots:

![](http://cl.ly/image/3E2e360Y0a15/Screen%20Shot%202014-11-29%20at%2011.56.17.png)
![](http://cl.ly/image/1d073v2v2U2J/Screen%20Shot%202014-11-29%20at%2011.56.42.png)

Commits
-------

838857c [Toolbar] Reset right and left .sf-toolbar-info values needed for window resize
23c0ddc [Toolbar] Handle info position via javascript Place info div to not float out of the window
7a8582e [Toolbar] Display all icons, even on two lines for small screens
2015-01-26 17:00:24 +01:00
Fabien Potencier
1901c84749 minor #13331 [OptionsResolver] added test for allowed values and types that default to null (Tobion)
This PR was merged into the 2.6 branch.

Discussion
----------

[OptionsResolver] added test for allowed values and types that default to null

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Added test to keep logic as experienced in #12809

Commits
-------

0b42cad [OptionsResolver] added test for allowed values and types that default to null
2015-01-26 16:57:35 +01:00
Fabien Potencier
cca8905518 [Validator] simplified some code 2015-01-26 16:52:15 +01:00
Dawid Sajdak
58bf5822b2 Unique Entity Validator Invalid Value 2015-01-26 14:32:32 +01:00
Kévin Dunglas
e14854fe22 [Serializer] Name converter support 2015-01-25 20:53:10 +01:00
Fabien Potencier
a91cbbd907 Merge branch '2.7'
* 2.7:
  Fix getComputedData
  added a Twig panel to the WebProfiler
  integrated the Twig profiler
  fixed condition
  fixed tests
  fixed PHP 5.3 compat

Conflicts:
	src/Symfony/Bridge/Twig/composer.json
	src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php
	src/Symfony/Bundle/WebProfilerBundle/composer.json
2015-01-25 20:10:41 +01:00
Fabien Potencier
6cd28737f6 minor #13520 [twig] Fix getComputedData in new twig profiler (jeremy-derusse)
This PR was merged into the 2.7 branch.

Discussion
----------

[twig] Fix getComputedData in new twig profiler

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | should be
| Fixed tickets | NA
| License       | MIT
| Doc PR        | NA

Add a small fix to #13428

Commits
-------

e8ca06a Fix getComputedData
2015-01-25 19:46:23 +01:00
Jérémy Derussé
e8ca06aaa0 Fix getComputedData 2015-01-25 19:37:18 +01:00
Fabien Potencier
9e8cb01fde feature #13428 Added a Twig profiler (fabpot)
This PR was merged into the 2.7 branch.

Discussion
----------

Added a Twig profiler

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #6914
| License       | MIT
| Doc PR        | n/a

This PR integrates the new Twig 1.18 Profiler (see twigphp/Twig#1597) into Symfony (replace the current TimedTwigEngine) and adds  a new Twig panel.

The timers are now available for all rendered templates (TimedTwigEngine was only able to get information from a few of them -- mainly the first template only).

The Twig panel gives you a lot of information about the execution of the templates, including a call graph.

![image](https://cloud.githubusercontent.com/assets/47313/5773885/fdf6756e-9d67-11e4-8dce-5ec20b07eca9.png)

![image](https://cloud.githubusercontent.com/assets/47313/5773892/0ae24d5c-9d68-11e4-9cbe-767bc31c9152.png)

![image](https://cloud.githubusercontent.com/assets/47313/5773897/13c0b6b6-9d68-11e4-95a1-b9188aca9651.png)

![image](https://cloud.githubusercontent.com/assets/47313/5773902/1c5498d8-9d68-11e4-975e-9822385fb836.png)

![image](https://cloud.githubusercontent.com/assets/47313/5773917/4eba00ba-9d68-11e4-8114-0a2d05eae5ea.png)

Commits
-------

daad64f added a Twig panel to the WebProfiler
ef0c967 integrated the Twig profiler
2015-01-25 19:20:11 +01:00
Fabien Potencier
daad64fa54 added a Twig panel to the WebProfiler 2015-01-25 19:12:34 +01:00
Fabien Potencier
ef0c9679cb integrated the Twig profiler 2015-01-25 19:10:07 +01:00
Fabien Potencier
975b8a8f7d bug #13376 [FrameworkBundle][config] allow multiple fallback locales. (aitboudad)
This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle][config] allow multiple fallback locales.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #13373
| Doc PR        | symfony/symfony-docs#4834
| Tests pass?   | yes
| License       | MIT

Commits
-------

1251f0e [FrameworkBundle][config] allow multiple fallback locales.
2015-01-25 15:17:32 +01:00
Abdellatif Ait boudad
1251f0e0b2 [FrameworkBundle][config] allow multiple fallback locales. 2015-01-25 14:06:13 +00:00
Fabien Potencier
cf440f260f fixed condition 2015-01-25 12:00:33 +01:00
Fabien Potencier
3015f12b20 minor #13518 [SecurityBundle] fixed tests where cleanup was not done properly (fabpot)
This PR was merged into the 2.6 branch.

Discussion
----------

[SecurityBundle] fixed tests where cleanup was not done properly

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

f853cf2 [SecurityBundle] fixed tests where cleanup was not done properly
2015-01-25 10:03:10 +01:00
Fabien Potencier
155a8def14 Merge branch '2.5' into 2.6
* 2.5:
  [HttpKernel] fixed tests
2015-01-25 09:45:24 +01:00
Fabien Potencier
82130a0e55 Merge branch '2.3' into 2.5
* 2.3:
  [HttpKernel] fixed tests
2015-01-25 09:45:13 +01:00
Fabien Potencier
f853cf2dd9 [SecurityBundle] fixed tests where cleanup was not done properly 2015-01-25 07:09:57 +01:00
Fabien Potencier
0fa19bde9f fixed tests 2015-01-25 06:59:26 +01:00
Fabien Potencier
92da9964ad fixed PHP 5.3 compat 2015-01-25 06:50:37 +01:00
Fabien Potencier
51983d0583 minor #13516 [HttpKernel] fixed tests (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] fixed tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

a3f0299 [HttpKernel] fixed tests
2015-01-25 06:24:12 +01:00
Fabien Potencier
a3f0299d5a [HttpKernel] fixed tests 2015-01-25 06:22:15 +01:00
Fabien Potencier
b88586aa15 Merge branch '2.7'
* 2.7:
  fixed tests
  [OptionsResolver] replaced some exception messages
  Added i18n support to ConfirmationQuestion
  [HttpKernel] [WebProfilerBundle] added HTTP status to profiler search result
  [Form] fixed form tests when using 2.7 deps
  [2.3] [HttpFoundation] [MimeTypeGuesser]
  [Routing] merge instead of replace class and method scheme/method annotations
  [TwigBridge] Fix bootstrap rendering when user explicitly use form_label
  Removed dead code and various cleaning
  Removed dead code and various cleaning
  Fixed HtmlDumper with long string
  Removed dead code and various cleaning
  [FrameworkBundle][xsd] added missing logging attribute.
  [Console] Make it clear that the second argument is not about command options.
  Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes
  [Yaml] fixed parse shortcut Key after unindented collection.
  [Console] fixed #10531
  Make the container considered non-fresh if the environment parameters are changed

Conflicts:
	src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
	src/Symfony/Component/HttpKernel/CHANGELOG.md
	src/Symfony/Component/Process/Process.php
2015-01-25 05:42:01 +01:00
Fabien Potencier
2570042937 Merge branch '2.6' into 2.7
* 2.6:
  [2.3] [HttpFoundation] [MimeTypeGuesser]
  Removed dead code and various cleaning
  Removed dead code and various cleaning
  [FrameworkBundle][xsd] added missing logging attribute.
  [Console] Make it clear that the second argument is not about command options.
  Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes
  [Yaml] fixed parse shortcut Key after unindented collection.
  [Console] fixed #10531
  Make the container considered non-fresh if the environment parameters are changed
2015-01-25 05:39:35 +01:00
Fabien Potencier
29e2c0d355 Merge branch '2.5' into 2.6
* 2.5:
  [2.3] [HttpFoundation] [MimeTypeGuesser]
  Removed dead code and various cleaning
  [Console] Make it clear that the second argument is not about command options.
  Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes
  [Yaml] fixed parse shortcut Key after unindented collection.
  [Console] fixed #10531
  Make the container considered non-fresh if the environment parameters are changed

Conflicts:
	src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
2015-01-25 05:39:26 +01:00
Fabien Potencier
8f9af3a23a Merge branch '2.3' into 2.5
* 2.3:
  [2.3] [HttpFoundation] [MimeTypeGuesser]
  Removed dead code and various cleaning
  [Console] Make it clear that the second argument is not about command options.
  Added the '-' character for spaceless on tag start and end to be consistent for block, if, set and for nodes
  [Yaml] fixed parse shortcut Key after unindented collection.
  [Console] fixed #10531
  Make the container considered non-fresh if the environment parameters are changed

Conflicts:
	src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
	src/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig
	src/Symfony/Component/Console/Tests/ApplicationTest.php
	src/Symfony/Component/Security/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
2015-01-25 05:37:39 +01:00
Fabien Potencier
92c7635161 bug #13473 [FrameworkBundle][xsd] added missing logging attribute. (aitboudad)
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle][xsd] added missing logging attribute.

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

Commits
-------

7e19fab [FrameworkBundle][xsd] added missing logging attribute.
2015-01-25 05:25:56 +01:00
Fabien Potencier
3ccb0fcfd9 minor #13470 [2.7] Removed dead code and various cleaning (saro0h)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] Removed dead code and various cleaning

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

In complement of these: https://github.com/symfony/symfony/pull/13488 & https://github.com/symfony/symfony/pull/13481

Commits
-------

9272f86 Removed dead code and various cleaning
2015-01-25 05:21:35 +01:00
Fabien Potencier
3ee74e54a4 minor #13481 [2.6] Removed dead code and various cleaning (saro0h)
This PR was merged into the 2.6 branch.

Discussion
----------

[2.6] Removed dead code and various cleaning

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

In complement of this one: https://github.com/symfony/symfony/pull/13488/

Commits
-------

dbbe170 Removed dead code and various cleaning
2015-01-25 05:20:58 +01:00
Fabien Potencier
8892cf06c1 minor #13488 [2.3] Removed dead code and various cleaning (saro0h)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] Removed dead code and various cleaning

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Commits
-------

50973ba Removed dead code and various cleaning
2015-01-25 05:18:27 +01:00
Fabien Potencier
48265c9ab2 fixed tests 2015-01-25 05:13:33 +01:00
Fabien Potencier
3be180dbb2 minor #12546 [OptionsResolver] replaced some exception messages (issei-m)
This PR was submitted for the 2.6 branch but it was merged into the 2.7 branch instead (closes #12546).

Discussion
----------

[OptionsResolver] replaced some exception messages

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

In accordance with renaming of methods.

Commits
-------

5e5ba39 [OptionsResolver] replaced some exception messages
2015-01-25 05:11:59 +01:00
Issei.M
5e5ba393f1 [OptionsResolver] replaced some exception messages 2015-01-25 05:11:58 +01:00
Fabien Potencier
db4eb0f509 feature #11129 Added i18n support to ConfirmationQuestion (WouterJ)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #11129).

Discussion
----------

Added i18n support to ConfirmationQuestion

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/4879

For instance, when creating a dutch cli app, you want this to be `j` (from "Ja") instead of the english `y`.

Commits
-------

c2f3f89 Added i18n support to ConfirmationQuestion
2015-01-25 05:09:28 +01:00
WouterJ
c2f3f897d6 Added i18n support to ConfirmationQuestion 2015-01-25 05:09:28 +01:00