Commit Graph

14297 Commits

Author SHA1 Message Date
Fabien Potencier
6a4100c615 merged branch 1ed/hungarian-validator-messages (PR #7914)
This PR was merged into the master branch.

Discussion
----------

[Validator] added hungarian translation for comparison constraints

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

Contains the dots added in #7911

Commits
-------

08708ca [Validator] added hungarian translation for comparison constraints
2013-05-03 07:07:18 +02:00
Fabien Potencier
1ef115aebf merged branch WouterJ/patch-3 (PR #7913)
This PR was merged into the master branch.

Discussion
----------

[Validation] Add dutch translation for new validators

This PR already uses the dots added in #7911

Commits
-------

84a0618 Add translation for new validators from #790
2013-05-03 07:06:19 +02:00
Fabien Potencier
6fbf5ce97e merged branch stloyd/bugfix/validator_translations (PR #7911)
This PR was merged into the master branch.

Discussion
----------

[Validator] Add missing translation for new validators from #790

> Note: dots are added to be consistent with other validators.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| License       | MIT

Commits
-------

90a7e86 [Validator] Add missing translation for new validators from #790
2013-05-03 07:06:02 +02:00
Gábor Egyed
08708caaba [Validator] added hungarian translation for comparison constraints 2013-05-03 01:23:57 +02:00
Wouter J
84a0618af1 Add translation for new validators from #790 2013-05-03 01:24:58 +03:00
Joseph Bielawski
90a7e86349 [Validator] Add missing translation for new validators from #790 2013-05-02 22:58:07 +02:00
Fabien Potencier
4902626511 merged branch bschussek/set-data-stofs (PR #7899)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed stofs from #7878

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

Commits
-------

1939dfc [Form] Fixed stofs from #7878
2013-05-02 18:59:37 +02:00
Bernhard Schussek
1939dfc5fc [Form] Fixed stofs from #7878 2013-05-02 09:53:57 +02:00
Fabien Potencier
36a8194c95 merged branch alexpods/patch-1 (PR #7891)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] Place initialization of $bundlesDir out of the foreach loop.

Code enhancement. $bundlesDir variable doesn't need any bundle information for initialization. So it must be placed out of the loop to not process unnecessary operations.

Commits
-------

9cca065 [FrameworkBundle] Place initialization of $bundlesDir out of foreach loop
2013-05-01 19:20:49 +02:00
Fabien Potencier
1284714cb5 merged branch bamarni/patch-1 (PR #7895)
This PR was merged into the master branch.

Discussion
----------

[Debug] tweak for #6474

This keeps the previous behavior as described in the comment.

Commits
-------

7d67b5b [Debug] tweak for #6474
2013-05-01 19:20:17 +02:00
Bilal Amarni
7d67b5b2d4 [Debug] tweak for #6474 2013-05-01 20:15:41 +03:00
Fabien Potencier
457e6abf77 bumped Symfony version to 2.3.0-DEV-DEV 2013-05-01 18:29:33 +02:00
Fabien Potencier
462b05847e updated VERSION for 2.3.0-BETA1 2013-05-01 17:41:17 +02:00
Fabien Potencier
6982f4b452 Merge branch '2.2'
* 2.2:
  [Swiftmailer] bumped allowed versions
  remove validation related headers when needed
  use while loop for iterating
  [Filesystem] copy() is not working when open_basedir is set
2013-05-01 09:15:46 +02:00
Fabien Potencier
9f02b05997 Merge branch '2.1' into 2.2
* 2.1:
  remove validation related headers when needed
  use while loop for iterating
  [Filesystem] copy() is not working when open_basedir is set

Conflicts:
	src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php
2013-05-01 09:15:36 +02:00
Fabien Potencier
609df321aa [Swiftmailer] bumped allowed versions 2013-05-01 09:13:20 +02:00
Alex Pods
9cca065d85 [FrameworkBundle] Place initialization of $bundlesDir out of foreach loop
Code enhancement. $bundlesDir variable doesnt't need any bundle information for initialization. So it must be placed out of the loop to not process unnecessary operations.
2013-05-01 10:39:32 +04:00
Fabien Potencier
2dc012ed01 [DependencyInjection] fixed ? position in some exception messages (refs #7861) 2013-05-01 06:24:56 +02:00
Fabien Potencier
38f9cf3a7e merged branch lyrixx/debug-dic (PR #7861)
This PR was merged into the master branch.

Discussion
----------

[DependencyInjection] Add suggestions on ParameterNotFoundException

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

Commits
-------

e989d8b [DependencyInjection] Added some check before guessing similar parameters
9300157 [DependencyInjection] Made tests more accurate
729db0f [DependencyInjection] Add suggestion on ServiceNotFoundException
f44db48 [DependencyInjection] Add suggestion on ParameterNotFoundException
2013-05-01 06:21:20 +02:00
Fabien Potencier
030695752b merged branch bamarni/issue-6977 (PR #7857)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7857).

Discussion
----------

[HttpCache] remove validation related headers when needed

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

Fixes #6977 by removing validation related headers when there is at least one embedded response.

I've added an embedded response counter because the current check was wrong I think, it was checking count($this->ttls) which isn't updated for validateable responses.

And for the BC break, looking at the interface PHPDoc description, it supposes add() method should only be applied on esi responses and update() takes the master one at the end, what do you think?

Commits
-------

bb80139 [HttpCache] remove validation related headers when needed
2013-05-01 06:14:15 +02:00
Bilal Amarni
2b554d77fa remove validation related headers when needed 2013-05-01 06:14:15 +02:00
Fabien Potencier
4ab05a35bc merged branch henrikbjorn/filesystem-limit (PR #7886)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7886).

Discussion
----------

[HttpKernel][Profile] Fixes #7883

Commits
-------

0172fc1 [HttpKernel][Profile] use while loop for iterating
2013-05-01 05:56:56 +02:00
Henrik Bjørnskov
fbe039bfca use while loop for iterating
The other method limits the number of results without taking the
constraints into account.

Fixes GH-7883
2013-05-01 05:56:28 +02:00
Grégoire Pineau
e989d8bd0b [DependencyInjection] Added some check before guessing similar parameters 2013-04-30 20:00:41 +02:00
Grégoire Pineau
9300157a61 [DependencyInjection] Made tests more accurate 2013-04-30 19:56:47 +02:00
Grégoire Pineau
729db0fde7 [DependencyInjection] Add suggestion on ServiceNotFoundException 2013-04-30 19:55:25 +02:00
Grégoire Pineau
f44db48ebe [DependencyInjection] Add suggestion on ParameterNotFoundException 2013-04-30 19:35:42 +02:00
Fabien Potencier
4dcee0a528 tweaked previous merge (refs #6474) 2013-04-30 19:23:11 +02:00
Fabien Potencier
9d5f10ce6f merged branch Koc/fatal-errors-logging (PR #6474)
This PR was squashed before being merged into the master branch (closes #6474).

Discussion
----------

[BC Break][Debug] #2042 implementation of fatal error logging

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

Commits
-------

7671e5c [BC Break][Debug] #2042 implementation of fatal error logging
2013-04-30 19:18:45 +02:00
Konstantin.Myakshin
7671e5c85d [BC Break][Debug] #2042 implementation of fatal error logging 2013-04-30 19:18:44 +02:00
Fabien Potencier
ca4fb5530e merged branch stloyd/patch-3 (PR #7869)
This PR was merged into the 2.1 branch.

Discussion
----------

[Filesystem] copy() is not working when open_basedir is set

More details: https://bugs.php.net/bug.php?id=64634

Commits
-------

10dea94 [Filesystem] copy() is not working when open_basedir is set
2013-04-30 19:08:19 +02:00
Fabien Potencier
f43a0eef9d Merge branch '2.2'
* 2.2:
  Fix getPort() returning 80 instead of 443 when X-FORWARDED-PROTO is set to https
  [Translation] fixed a unit test

Conflicts:
	src/Symfony/Component/HttpFoundation/Request.php
2013-04-30 19:05:37 +02:00
Fabien Potencier
01ff0765b2 Merge branch '2.1' into 2.2
* 2.1:
  Fix getPort() returning 80 instead of 443 when X-FORWARDED-PROTO is set to https
2013-04-30 19:05:10 +02:00
Fabien Potencier
0dacd56ee9 merged branch pst/master (PR #7871)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7871).

Discussion
----------

Fix getPort() returning 80 instead of 443 when X-FORWARDED-PROTO is set to https

[HttpFoundation] fixed something

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

Ensure that the getPort() method returns port 443 as default when
X-FORWARDED-PROTO is set to https. Currently it would return port 80
if X-FORWARDED-PROTO was set to https and X-FORWARDED-PORT was not
set by the trusted proxy.

Commits
-------

8554af3 Fix getPort() returning 80 instead of 443 when X-FORWARDED-PROTO is set to https
2013-04-30 19:03:37 +02:00
Philipp Strube
2a531d78be Fix getPort() returning 80 instead of 443 when X-FORWARDED-PROTO is set to https 2013-04-30 19:01:33 +02:00
Fabien Potencier
f7d8c98851 merged branch danielholmes/comparison_validators (PR #790)
This PR was merged into the master branch.

Discussion
----------

[2.3] [Validator] added comparison constraints and validators

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

They work on a class level and you specify a list of properties. Included are the standard GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual and Equal. e.g.:

```php
<?php
/**
 * @assert:GreaterThan({"diedDate", "bornDate"})
 * @assert:LessThanOrEqual({"bornDate", "firstSchoolDayDate", "diedDate"})
 */
class Person
{
    private $bornDate;
    private $firstSchoolDayDate;
    private $diedDate;
}
```

I think it would also be useful if they worked on a property level rather than just class. I'm not sure what the default option should be though. e.g. is there a reliable way to determine what's a raw value and what's a property name:

```php
<?php
/** @assert:GreaterThan(80) */
private $iq;
/** @assert:LessThan('dateDied') */
private $bornDate;
/** @assert:LessThanOrEqual('C') */
private $grade;
/** @assert:GreaterThanOrEqual({50, 'ageStartedSchool'}) */
private $age;
```

Commits
-------

0bffdff [Validator] Added comparison validators.
2013-04-30 18:44:58 +02:00
Fabien Potencier
be335d0ca4 merged branch danielholmes/prop_access_additions (PR #7876)
This PR was merged into the master branch.

Discussion
----------

Added negative path replaces and optional string arguments for PropertyPathBuilder.

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

Commits
-------

7c729f5 [PropertyAccess] Added negative path replaces and optional string arguments for PropertyPathBuilder.
2013-04-30 18:43:32 +02:00
Fabien Potencier
d1cad7e243 [Translation] fixed a unit test 2013-04-30 11:53:49 +02:00
Fabien Potencier
258ca07545 [HttpKernel] moved symfony/debug to be a requirement (to maintain BC as the code was part of HttpKernel before) 2013-04-30 09:25:51 +02:00
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
=
7c729f54b1 [PropertyAccess] Added negative path replaces and optional string arguments for PropertyPathBuilder. 2013-04-29 22:50:06 +10:00