Commit Graph

14105 Commits

Author SHA1 Message Date
Fabien Potencier e4b580ea62 merged branch bschussek/fix-property-access-naming (PR #7854)
This PR was merged into the master branch.

Discussion
----------

[PropertyAccess] Made naming consistent with Form and Validator

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

Commits
-------

8817e70 [PropertyAccess] Made naming consistent with Form and Validator
2013-04-30 09:23:35 +02:00
Fabien Potencier 7258e85fea merged branch bschussek/issue7873 (PR #7878)
This PR was merged into the master branch.

Discussion
----------

[Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added

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

Commits
-------

441222e [Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added
2013-04-30 09:22:01 +02:00
Fabien Potencier 40b9b44548 fixed previous merge 2013-04-30 09:21:49 +02:00
Fabien Potencier 9869b3af88 merged branch romainneutron/termsig-tests (PR #7874)
This PR was merged into the master branch.

Discussion
----------

[Process] Add unit tests for #7865

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | |no
| Tests pass?   | yes when 2.1 will be merged in master
| License       | MIT

This PR adds test for #7865. It's currently failing, but will pass once 2.1 will be merged in master.

Commits
-------

421c354 [Process] Add unit tests for #7865
2013-04-30 09:18:11 +02:00
Fabien Potencier 5f889525f6 Merge branch '2.2'
* 2.2:
  [BrowserKit] fixed BC break done recently
  [Process] Fix #5594 : `termsig` must be used instead of `stopsig` in exceptions when a process is signaled
  [Console] find command even if its name is a namespace too (closes #7860)
  Rename misprint property (from warmer to finder)
  Reset all catalogues when adding resource to fallback locale (#7715, #7819)
  Added reloading of fallback catalogues when calling addResource() (#7715)
  Re-added context information to log list
  Add This field is missing RU translation

Conflicts:
	src/Symfony/Component/Console/Tests/ApplicationTest.php
2013-04-30 09:16:44 +02:00
Fabien Potencier d29bf50dc8 Merge branch '2.1' into 2.2
* 2.1:
  [BrowserKit] fixed BC break done recently
  [Process] Fix #5594 : `termsig` must be used instead of `stopsig` in exceptions when a process is signaled
  Rename misprint property (from warmer to finder)
  Add This field is missing RU translation

Conflicts:
	src/Symfony/Component/Process/Process.php
	src/Symfony/Component/Validator/Resources/translations/validators.ru.xlf
2013-04-30 09:15:50 +02:00
Fabien Potencier 02e9b19f29 merged branch fabpot/cookies (PR #7879)
This PR was merged into the 2.1 branch.

Discussion
----------

[BrowserKit] fixed BC break done recently

| 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

This PR tries to avoid a BC break that was introduced recently in the management of cookies (see #7738).

see fabpot/Silex#684

Commits
-------

25b8b84 [BrowserKit] fixed BC break done recently
2013-04-30 09:12:45 +02:00
Fabien Potencier 25b8b84f65 [BrowserKit] fixed BC break done recently 2013-04-29 22:22:06 +02:00
Bernhard Schussek 441222eda7 [Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added 2013-04-29 17:31:30 +02:00
Romain Neutron 421c354ac9 [Process] Add unit tests for #7865 2013-04-29 15:25:58 +02:00
Fabien Potencier 84d759d3d5 [SecurityBundle] fixed deps on the security component 2013-04-29 09:37:21 +02:00
Fabien Potencier 1459cfb948 merged branch igorw/security-constraint (PR #7866)
This PR was merged into the master branch.

Discussion
----------

Fix http-kernel dep in symfony/security

The current constraint will not match 2.3.x-dev and cause edge cases
where either:

* composer falls back to symfony/symfony because it cannot find a match
* composer installs 2.2 versions of http-kernel and http-foundation

Commits
-------

01016be Fix http-kernel dep in symfony/security
2013-04-29 09:36:07 +02:00
Fabien Potencier 372a76a453 merged branch romainneutron/termsig (PR #7865)
This PR was merged into the 2.1 branch.

Discussion
----------

[Process] Fix #5594 : `termsig` must be used instead of `stopsig` in exceptions when a process is signaled

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

When a process is signaled, an exception is thrown saying `The process has been signaled with signal "0".`. This is wrong because "0" is not a signal.

This is actually a bug in `Process` because we retrieve the `stopsig` property of the process status whereas we should retrieve the `termsig`.

`stopsig` should be retrieved in case the process has been stopped, and `termsig` when it has been signaled, see [PHP documentation](http://www.php.net/manual/en/function.proc-get-status.php).

Commits
-------

8757ad4 [Process] Fix #5594 : `termsig` must be used instead of `stopsig` in exceptions when a process is signaled
2013-04-29 09:14:50 +02:00
Fabien Potencier 2bfc57d08f merged branch bschussek/doc-fix (PR #7867)
This PR was merged into the master branch.

Discussion
----------

Added missing information to the UPGRADE-3.0 file and sorted its sections

Commits
-------

7e7e4c0 Added missing information to the UPGRADE-3.0 file and sorted its sections
2013-04-29 09:12:44 +02:00
Fabien Potencier 2dfcc8d8aa merged branch alexpods/patch-1 (PR #7864)
This PR was merged into the master branch.

Discussion
----------

Place hasArgument() check at the beginning of getArgument() method

If input definition doesn't have specified argument, then unnecessary operations will be executed ($arguments = is_int($name) ? array_values($this->arguments) : $this->arguments;)

Commits
-------

992c218 Place hasArgument() check at the beginning of getArgument() method
2013-04-29 09:12:08 +02:00
Fabien Potencier 980b1f0afa merged branch ajgarlag/feature/issn-validator-message-option (PR #7872)
This PR was merged into the master branch.

Discussion
----------

[Validator] Rename issn constraint message option.

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

Rename issn constraint message option to be consistent with all constraints having a single message option as suggested by @stof at a4abfb9550 (L0R23)

Commits
-------

57c724a [Validator] Rename issn constraint message option to be consistent with all constraints having a single message option
2013-04-29 09:09:03 +02:00
Antonio J. García Lagar 57c724a37f [Validator] Rename issn constraint message option to be consistent with all constraints having a single message option 2013-04-28 18:50:39 +02:00
Bernhard Schussek 7e7e4c09d3 Added missing information to the UPGRADE-3.0 file and sorted its sections 2013-04-28 11:04:40 +02:00
Igor Wiedler 01016be99e Fix http-kernel dep in symfony/security
The current constraint will not match 2.3.x-dev and cause edge cases
where either:

* composer falls back to symfony/symfony because it cannot find a match
* composer installs 2.2 versions of http-kernel and http-foundation
2013-04-27 22:06:15 +02:00
Romain Neutron 8757ad45a8 [Process] Fix #5594 : `termsig` must be used instead of `stopsig` in exceptions when a process is signaled 2013-04-27 20:40:50 +02:00
Fabien Potencier b4b4326a10 merged branch pborreli/bug-7860 (PR #7863)
This PR was merged into the 2.2 branch.

Discussion
----------

[Console] is not ambiguous anymore if it has a perfect match command name (closes #7860)

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

Commits
-------

be34917 [Console] find command even if its name is a namespace too (closes #7860)
2013-04-27 09:33:31 +02:00
alexpods 992c218913 Place hasArgument() check at the beginning of getArgument() method
If input definition doesn't have specified argument, then unnecessary operations will be executed ($arguments = is_int($name) ? array_values($this->arguments) : $this->arguments;)
2013-04-27 06:13:33 +04:00
Pascal Borreli be34917448 [Console] find command even if its name is a namespace too (closes #7860) 2013-04-26 22:56:13 +00:00
Fabien Potencier 06d5fb171f merged branch fabpot/profiler-activation (PR #7859)
This PR was merged into the master branch.

Discussion
----------

Profiler activation

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

As stated in #7071, there is no way to disable the profiler completely. Even when the `enabled` flag is set to `false`, the profiler is still registered but the data collectors are not activated.

Now, when `enabled` is `false`, the profiler is disabled. To get the old `false` behavior, you now need to set `enabled` to `true` and set the new `collect` flag to `false`.

Todo:

 - [x] update docs
 - [x] update Symfony SE -- not needed

Commits
-------

88ebd62 fixed the registration of the web profiler when the profiler is disabled
a11f901 [FrameworkBundle] added a way to disable the profiler
f675dd8 Truly disabled profiler in prod
2013-04-26 19:13:23 +02:00
Fabien Potencier 88ebd62e1c fixed the registration of the web profiler when the profiler is disabled 2013-04-26 16:27:29 +02:00
Fabien Potencier a11f9017aa [FrameworkBundle] added a way to disable the profiler
Before:

  enabled: true  # the profiler is enabled and data are collected

  enabled: false # the profiler is enabled but data are not collected (data can be collected on demand)

  No way to disable the profiler

After:

  enabled: true  # the profiler is enabled and data are collected
  collect: true

  enabled: true  # the profiler is enabled but data are not collected (data can be collected on demand)
  collect: false

  enabled: false # the profiler is disabled
2013-04-26 16:14:55 +02:00
Florin Patan f675dd8faa Truly disabled profiler in prod 2013-04-26 16:14:55 +02:00
Fabien Potencier 3c90abf2a2 merged branch bamarni/windows-test (PR #7858)
This PR was merged into the master branch.

Discussion
----------

fixed a test on windows

Commits
-------

6f7e35e fixed a test on windows
2013-04-26 16:11:09 +02:00
Bilal Amarni 6f7e35ea95 fixed a test on windows 2013-04-26 14:08:31 +02:00
Fabien Potencier aae9afb6d8 [Security] added an exception when the BCrypt encoder cannot be used (refs #7853) 2013-04-26 11:43:25 +02:00
Fabien Potencier d59ffc9aa2 [Security] added more info about the BCrypt change (refs #7853) 2013-04-26 11:39:57 +02:00
Fabien Potencier a1031f6422 Revert "merged branch mvrhov/patch-1 (PR #4975)"
This reverts commit 407246a1da, reversing
changes made to 3841d1c6d7.
2013-04-26 10:12:31 +02:00
Fabien Potencier 604aaa2e1e merged branch fabpot/twig-url-escaping (PR #7850)
This PR was merged into the master branch.

Discussion
----------

[2.3] [TwigBridge] save auto-escaping of generated URLs when possible

| Q             | A
| ------------- | ---
| Bug fix?      | [no]
| New feature?  | [yes: optimization]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | #7088
| License       | MIT
| Doc PR        | [-]

Determines at compile time whether the generated URL will be safe and thus
saving the unneeded automatic escaping for performance reasons.

The URL generation process percent encodes non-alphanumeric characters. So there is no risk
that malicious/invalid characters are part of the URL. The only character within an URL that
must be escaped in html is the ampersand ("&") which separates query params. So we cannot mark
the URL generation as always safe, but only when we are sure there won't be multiple query
params. This is the case when there are none or only one constant parameter given.
E.g. we know beforehand this will be safe:
- path('route')
- path('route', {'param': 'value'})

But the following may not:
- path('route', var)
- path('route', {'param': ['val1', 'val2'] }) // a sub-array
- path('route', {'param1': 'value1', 'param2': 'value2'})

If param1 and param2 reference placeholder in the route, it would still be safe. But we don't know.

Commits
-------

725568b [TwigBridge] added some unit test for the previous commit
0721ff8 save auto-escaping of generated URLs when possible for performance reasons
2013-04-25 18:30:34 +02:00
Bernhard Schussek 8817e70042 [PropertyAccess] Made naming consistent with Form and Validator 2013-04-25 18:28:27 +02:00
Fabien Potencier ccc52a4e4b merged branch fabpot/bcrypt (PR #7853)
This PR was merged into the master branch.

Discussion
----------

[Security] Outsource all the BCrypt heavy lifting to a library

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

The [BCrypt bundle](https://github.com/elnur/ElnurBlowfishPasswordEncoderBundle) is already using the library.

This is a working implementation of #7247

Commits
-------

c83546d [Security] tweaked previous commit
b2e553a Outsource all the BCrypt heavy lifting to a library
2013-04-25 18:23:35 +02:00
Fabien Potencier 725568b66d [TwigBridge] added some unit test for the previous commit 2013-04-25 18:21:39 +02:00
Fabien Potencier c83546d268 [Security] tweaked previous commit 2013-04-25 17:52:07 +02:00
Fabien Potencier 0b0872784c merged branch jakzal/patch-1 (PR #7851)
This PR was merged into the master branch.

Discussion
----------

Fixed typo

Commits
-------

0600d83 Fixed typo
2013-04-25 17:50:33 +02:00
Jakub Zalas 0600d833ac Fixed typo 2013-04-25 17:43:02 +02:00
Elnur Abdurrakhimov b2e553ae1d Outsource all the BCrypt heavy lifting to a library 2013-04-25 17:38:27 +02:00
Tobias Schultze 0721ff8843 save auto-escaping of generated URLs when possible for performance reasons 2013-04-25 17:00:48 +02:00
Fabien Potencier 1099858678 merged branch bschussek/issue1341 (PR #7849)
This PR was merged into the master branch.

Discussion
----------

[Form] Added support for PATCH requests

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

Commits
-------

eabb7a1 [Form] Added support for PATCH requests
2013-04-25 16:47:21 +02:00
Fabien Potencier 5d12b2bf5d merged branch fabpot/dispatcher-compiler-pass (PR #7848)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] make RegisterKernelListenersPass reusable

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

see #6643

Commits
-------

5047227 moved the kernel listener compiler pass to HttpKernel to make it reusable (refs #6643)
45f1a16 make RegisterKernelListenersPass reusable
2013-04-25 16:17:16 +02:00
Bernhard Schussek eabb7a17ed [Form] Added support for PATCH requests 2013-04-25 16:09:14 +02:00
Fabien Potencier 5047227489 moved the kernel listener compiler pass to HttpKernel to make it reusable (refs #6643) 2013-04-25 16:01:08 +02:00
alexandresalome 45f1a16b93 make RegisterKernelListenersPass reusable 2013-04-25 15:40:01 +02:00
Fabien Potencier e9b6c7c2a4 merged branch Seldaek/windows-tests (PR #7847)
This PR was merged into the master branch.

Discussion
----------

Windows test fixes

I checked all components/bundles/bridges.. Now everything is green except a few things still in Process that I wasn't sure what to do with yet.

Commits
-------

ae1624f [Process] Fix tests on windows
08e95db [Finder] Fix tests on windows
e8b07a0 [Filesystem] Fix tests on windows
7b83b72 [Console] Fix tests on windows
2013-04-25 15:33:44 +02:00
Fabien Potencier 1362b388df merged branch fabpot/json-response (PR #7846)
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] added a note about JSON responses as arrays (refs #6970)

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

Commits
-------

abb32a1 [HttpFoundation] added a note about JSON responses as arrays (refs #6970)
2013-04-25 15:24:03 +02:00
Jordi Boggiano ae1624fe02 [Process] Fix tests on windows 2013-04-25 15:23:11 +02:00
Fabien Potencier e04ed3b9c2 merged branch fabpot/create-controller-names (PR #7843)
This PR was merged into the master branch.

Discussion
----------

Add a way to create a short controller name (a🅱️c) from a fully qualify one (controller::action)

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

Working implementation of #5865

Commits
-------

0795ea8 [FrameworkBundle] fixed implementation of previous merge (refs #5865)
91ebba4 new method to create shorthand name from full Controller name
2013-04-25 14:59:40 +02:00