Commit Graph

18932 Commits

Author SHA1 Message Date
Fabien Potencier
0c7df5898f feature #12666 [Hackday][Stopwatch] added __toString on StopwatchEvent (damienalexandre)
This PR was merged into the 2.7 branch.

Discussion
----------

[Hackday][Stopwatch] added __toString on StopwatchEvent

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

This allow to just print the events in a log or something.

```php
$stopwatch = new Stopwatch();
$event = $stopwatch->start('foo', 'cat');

echo $event; // cat: 0.00 MiB - 0 ms
```

Commits
-------

0b88a23 [Stopwatch] added __toString on StopwatchEvent
2014-11-29 14:10:59 +01:00
Fabien Potencier
9cd6e6acc0 minor #12650 add deprecation log (#12618) (phramz)
This PR was merged into the 2.7 branch.

Discussion
----------

add deprecation log (#12618)

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

Commits
-------

7d9afd7 add deprecation log (#12618)
2014-11-29 14:09:06 +01:00
Fabien Potencier
7575d0d2ca minor #12696 [2.7][Process] Add deprecation message for component (romainneutron)
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][Process] Add deprecation message for component

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

Commits
-------

b9a6b71 Add deprecation message for Process
2014-11-29 13:59:17 +01:00
Fabien Potencier
b82d6cf31d minor #12705 Adjust error_reporting to allow deprecation messages for 3.0 (davidfuhr)
This PR was merged into the 2.7 branch.

Discussion
----------

Adjust error_reporting to allow deprecation messages for 3.0

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

Commits
-------

11ba901 Adjust error_reporting to allow deprecation messages for 3.0
2014-11-29 13:46:50 +01:00
David Fuhr
11ba901fec Adjust error_reporting to allow deprecation messages for 3.0 2014-11-29 13:40:43 +01:00
Damien Alexandre
0b88a23cb8 [Stopwatch] added __toString on StopwatchEvent 2014-11-29 13:01:15 +01:00
Romain Neutron
b9a6b711d3 Add deprecation message for Process 2014-11-29 12:54:42 +01:00
Maximilian Reichel
7d9afd72ed add deprecation log (#12618) 2014-11-29 11:52:21 +01:00
Fabien Potencier
d277c16a27 Merge branch '2.6' into 2.7
* 2.6: (36 commits)
  [Debug] fix error message on double exception
  [Validator] make DateTime objects represented as strings in the violation message.
  [RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener
  Upgrade information for the Translation component regarding the new LoggingTranslator class.
  [WebProfilerBundle] Remove usage of app.request in search bar template
  Fix initialized() with aliased services
  fix data type in docblock
  Rename Symfony2 to Symfony
  bumped Symfony version to 2.6.0
  updated VERSION for 2.6.0-BETA2
  updated CHANGELOG for 2.6.0-BETA2
  [Debug] fix ENT_SUBSTITUTE usage
  compare version using PHP_VERSION_ID
  backport #12489
  remove an unneeded check
  Remove block submit_widget
  reformat code as suggested by @fabpot
  Fix typo
  Make `\Request::get` more performant.
  properly set request attributes in controller test
  ...
2014-11-28 11:00:56 +01:00
Fabien Potencier
18c4ac1f6e Merge branch '2.5' into 2.6
* 2.5:
  [Debug] fix error message on double exception
  Fix initialized() with aliased services
  Rename Symfony2 to Symfony
  compare version using PHP_VERSION_ID
  backport #12489
  remove an unneeded check
2014-11-28 11:00:40 +01:00
Fabien Potencier
402e18321e Merge branch '2.3' into 2.5
* 2.3:
  [Debug] fix error message on double exception
  Fix initialized() with aliased services
  Rename Symfony2 to Symfony
  backport #12489

Conflicts:
	CONTRIBUTING.md
	src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php
	src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php
2014-11-28 11:00:29 +01:00
Fabien Potencier
0dfa7d549e minor #12554 compare version using PHP_VERSION_ID (xabbuh)
This PR was merged into the 2.5 branch.

Discussion
----------

compare version using PHP_VERSION_ID

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

This continues the work started in #12497 on the `2.3` branch.

Commits
-------

d2f846b compare version using PHP_VERSION_ID
2014-11-28 10:43:41 +01:00
Fabien Potencier
efbf588ed0 bug #12553 [Debug] fix error message on double exception (nicolas-grekas)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #12553).

Discussion
----------

[Debug] fix error message on double exception

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

Commits
-------

1ed7606 [Debug] fix error message on double exception
2014-11-28 10:40:13 +01:00
Nicolas Grekas
1ed7606c32 [Debug] fix error message on double exception 2014-11-28 10:40:13 +01:00
Fabien Potencier
155fa96bff minor #12551 remove an unneeded check (xabbuh)
This PR was merged into the 2.5 branch.

Discussion
----------

remove an unneeded check

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

It is already checked in the `isEnabled()` method if the current PHP
build is HHVM and the `server:run` command is never enabled then.
Thus, it's not needed to check for HHVM on every command execution.

Commits
-------

2035fea remove an unneeded check
2014-11-28 10:36:33 +01:00
Fabien Potencier
819280fbbc bug #12550 [FrameworkBundle] backport #12489 (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] backport #12489

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

Commits
-------

556eff1 backport #12489
2014-11-28 10:32:58 +01:00
Fabien Potencier
4f05279edd minor #12565 Rename Symfony2 to Symfony (romainneutron)
This PR was merged into the 2.3 branch.

Discussion
----------

Rename Symfony2 to Symfony

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

Replaces #12563

Commits
-------

0a76b7e Rename Symfony2 to Symfony
2014-11-28 10:25:39 +01:00
Fabien Potencier
c4902d8342 minor #12579 [Translation] [2.6] Upgrade information for LoggingTranslator (derrabus)
This PR was merged into the 2.6 branch.

Discussion
----------

[Translation] [2.6] Upgrade information for LoggingTranslator

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

When upgrading a Symfony 2.5 project to the 2.6 branch, I noticed that the `@translator` service was changed. In the affected project, we've had a service that depends on the `@translator` service and uses a type hint to ensure that a `Translator` instance is passed to the constructor. With the introduction of the `LoggingTranslator` class (PR #10887), this type hint now fails.

I have added a small note to ` UPGRADE-2.6.md` in case more people stumble across this changed behavior.

Commits
-------

cd55a81 Upgrade information for the Translation component regarding the new LoggingTranslator class.
2014-11-28 10:16:35 +01:00
Fabien Potencier
48e6f7ad6d bug #12437 [2.6] [Validator] make DateTime objects represented as strings in the violation message (hhamon)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12437).

Discussion
----------

[2.6] [Validator] make DateTime objects represented as strings in the violation message

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

Commits
-------

b753218 [Validator] make DateTime objects represented as strings in the violation message.
2014-11-28 10:08:04 +01:00
Hugo Hamon
b753218ff5 [Validator] make DateTime objects represented as strings in the violation message. 2014-11-28 10:08:04 +01:00
Fabien Potencier
79c7849750 minor #12566 [Security][Http] fix data type in docblock (xabbuh)
This PR was merged into the 2.6 branch.

Discussion
----------

[Security][Http] fix data type in docblock

| Q             | A
| ------------- | ---
| Fixed tickets | #12564
| License       | MIT

Commits
-------

1c6f5a1 fix data type in docblock
2014-11-28 10:05:18 +01:00
Nicolas Grekas
f8b1e68f1e minor #12584 [RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener (jeromemacias)
This PR was squashed before being merged into the 2.6 branch (closes #12584).

Discussion
----------

[RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener

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

Usage of the `container` service as dependency avoid using the listener outside of a Symfony project.

I don't know if the lazy loading of the dumper service is really required. We should only use the `DebugBundle` in `dev` environment.
If it break performance, maybe we can consider using the `lazy="true"` parameter in services definition.

I currently working on a Silex [`DebugServiceProvider`](https://github.com/jeromemacias/Silex-Debug) which use the `DebugBundle` to avoid duplicating the dump profiler view (like it's done by the `WebProfilerServiceProvider`).
Those modifications are required by the provider to be usable.

Commits
-------

680fe7a [RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener
2014-11-27 17:54:54 +01:00
Jérôme Macias
680fe7acb2 [RFC] [DebugBundle] [HttpKernel] Avoid using container as dependency for DumpListener 2014-11-27 17:54:39 +01:00
Alexander M. Turek
cd55a81df7 Upgrade information for the Translation component regarding the new LoggingTranslator class. 2014-11-26 14:42:19 +01:00
Fabien Potencier
6a59db5a08 bug #12575 [WebProfilerBundle] Remove usage of app.request in search bar template (jeromemacias)
This PR was merged into the 2.6 branch.

Discussion
----------

[WebProfilerBundle] Remove usage of app.request in search bar template

This PR removes the last usage of the global Twig variable `app.request` in Symfony.

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

Commits
-------

d3451fc [WebProfilerBundle] Remove usage of app.request in search bar template
2014-11-26 09:17:16 +01:00
Jérôme Macias
d3451fc938 [WebProfilerBundle] Remove usage of app.request in search bar template 2014-11-26 00:05:04 +01:00
Fabien Potencier
1ce8f03040 bug #12570 Fix initialized() with aliased services (Daniel Wehner)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #12570).

Discussion
----------

Fix initialized() with aliased services

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

Commits
-------

a18b6d1 Fix initialized() with aliased services
2014-11-25 12:27:34 +01:00
Daniel Wehner
a18b6d17e3 Fix initialized() with aliased services 2014-11-25 12:27:34 +01:00
Christian Flothmann
1c6f5a1c89 fix data type in docblock 2014-11-24 19:24:01 +01:00
Romain Neutron
0a76b7e9fc Rename Symfony2 to Symfony 2014-11-24 15:09:11 +01:00
Fabien Potencier
4a1a0ed686 bumped Symfony version to 2.6.0 2014-11-24 08:41:00 +01:00
Fabien Potencier
d56d198aa4 updated VERSION for 2.6.0-BETA2 2014-11-23 21:57:16 +01:00
Fabien Potencier
da3d5d4036 updated CHANGELOG for 2.6.0-BETA2 2014-11-23 21:57:10 +01:00
Fabien Potencier
7fd45f7d08 bug #12555 [Debug] fix ENT_SUBSTITUTE usage (nicolas-grekas)
This PR was merged into the 2.6 branch.

Discussion
----------

[Debug] fix ENT_SUBSTITUTE usage

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

Commits
-------

58476e1 [Debug] fix ENT_SUBSTITUTE usage
2014-11-23 21:33:43 +01:00
Nicolas Grekas
58476e1814 [Debug] fix ENT_SUBSTITUTE usage 2014-11-23 21:21:44 +01:00
Christian Flothmann
d2f846b453 compare version using PHP_VERSION_ID
This continues the work started in #12497 on the `2.3` branch.
2014-11-23 21:10:39 +01:00
Christian Flothmann
556eff1b54 backport #12489 2014-11-23 20:08:57 +01:00
Christian Flothmann
2035fea2a8 remove an unneeded check
It is already checked in the `isEnabled()` method if the current PHP
build is HHVM and the `server:run` command is never enabled then.
Thus, it's not needed to check for HHVM on every command execution.
2014-11-23 20:04:20 +01:00
Fabien Potencier
4838cdec58 minor #12439 Remove block submit_widget (ip512)
This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12439).

Discussion
----------

Remove block submit_widget

submit_widget parent block already renders button_widget_block. btn is already added by button_widget_block. I propose to remove this block as it adds btn twice and has no other use.

Commits
-------

9a08b77 Remove block submit_widget
2014-11-23 19:28:54 +01:00
Grégory Pelletier
9a08b776a2 Remove block submit_widget 2014-11-23 19:28:53 +01:00
Fabien Potencier
31792b01f1 Merge branch '2.5' into 2.6
* 2.5:
  reformat code as suggested by @fabpot
  Fix typo
  Make `\Request::get` more performant.
  [Form][WebProfiler] Empty form names fix
  [FrameworkBundle] cache:clear command fills *.php.meta files with wrong data
  bumped Symfony version to 2.5.8
  updated VERSION for 2.5.7
  update CONTRIBUTORS for 2.5.7
  updated CHANGELOG for 2.5.7
  bumped Symfony version to 2.3.23
  fixed typo
  updated VERSION for 2.3.22
  update CONTRIBUTORS for 2.3.22
  updated CHANGELOG for 2.3.22

Conflicts:
	src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig
	src/Symfony/Component/HttpKernel/Kernel.php
2014-11-21 17:08:03 +01:00
Fabien Potencier
5284b59fb9 Merge branch '2.3' into 2.5
* 2.3:
  reformat code as suggested by @fabpot
  Fix typo
  Make `\Request::get` more performant.
  [FrameworkBundle] cache:clear command fills *.php.meta files with wrong data
  bumped Symfony version to 2.3.23
  fixed typo
  updated VERSION for 2.3.22
  update CONTRIBUTORS for 2.3.22
  updated CHANGELOG for 2.3.22

Conflicts:
	src/Symfony/Component/HttpKernel/Kernel.php
2014-11-21 17:07:27 +01:00
Fabien Potencier
da1c1c578b minor #12537 [HttpFoundation] Make Request::get() more performant (KorvinSzanto, xabbuh)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #12537).

Discussion
----------

[HttpFoundation] Make Request::get() more performant

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

This finishes the work started by @KorvinSzanto in #12369.

Commits
-------

3039935 reformat code as suggested by @fabpot
ad64223 Fix typo
4162713 Make `\Request::get` more performant.
2014-11-21 17:05:55 +01:00
Christian Flothmann
3039935997 reformat code as suggested by @fabpot 2014-11-21 17:05:54 +01:00
Korvin Szanto
ad6422304b Fix typo 2014-11-21 17:05:54 +01:00
Korvin Szanto
41627138de Make \Request::get more performant. 2014-11-21 17:05:54 +01:00
Fabien Potencier
b3be900ece feature #12538 [FrameworkBundle] be smarter when guessing the document root (xabbuh)
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle] be smarter when guessing the document root

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

Commits
-------

83d768d be smarter when guessing the document root
2014-11-21 16:58:20 +01:00
Fabien Potencier
45613b3ec5 bug #12539 [TwigBundle] properly set request attributes in controller test (xabbuh)
This PR was merged into the 2.6 branch.

Discussion
----------

[TwigBundle] properly set request attributes in controller test

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

Commits
-------

b3db574 properly set request attributes in controller test
2014-11-21 16:55:01 +01:00
Christian Flothmann
b3db574a9f properly set request attributes in controller test 2014-11-21 16:23:19 +01:00
Christian Flothmann
83d768d09e be smarter when guessing the document root 2014-11-21 15:51:03 +01:00