Commit Graph

14274 Commits

Author SHA1 Message Date
Fabien Potencier
1856df30c8 [Security] fixed wrong merge (refs #4776) 2013-05-05 18:48:12 +02:00
Fabien Potencier
5b7e1e6f68 added a missing check for the provider key 2013-05-05 18:38:27 +02:00
Jordi Boggiano
f1c2ab78af [DependencyInjection] Add a method map to avoid computing method names from service names 2013-05-05 12:11:01 +02:00
Jordi Boggiano
ea633f5787 [HttpKernel] Avoid updating the context if the request did not change
Due to the BC $this->setRequest() call in the onKernelRequest method, the
request is set twice every time in Symfony, and RequestContext::fromRequest
takes 1ms to run here so if we can skip one call it is a win.
2013-05-05 10:01:52 +02:00
Jordi Boggiano
997d549846 [HttpFoundation] Avoid a few unnecessary str_replace() calls 2013-05-05 10:01:43 +02:00
Jordi Boggiano
f5e7f24819 [HttpFoundation] Optimize ServerBag::getHeaders()
isset() vs in_array makes it take half the time (1ms/req here)
substr() does not have to scan the whole string so it's a wee bit faster
2013-05-04 20:09:58 +02:00
Fabien Potencier
c8f95b5dab merged branch Tobion/deprecated-form-exception (PR #7927)
This PR was merged into the master branch.

Discussion
----------

[Form] removed deprecated exceptions

Removed deprecated exceptions for 2.3.

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

Commits
-------

82ff360 [Form] removed deprecated exceptions
2013-05-04 14:33:51 +02:00
Fabien Potencier
1df787662c merged branch bschussek/fix-tests (PR #7928)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed failing test

Commits
-------

a2df1cf [Form] Fixed failing test
2013-05-04 14:32:51 +02:00
Bernhard Schussek
a2df1cfce3 [Form] Fixed failing test 2013-05-04 13:21:24 +02:00
Tobias Schultze
82ff36055c [Form] removed deprecated exceptions 2013-05-04 13:06:57 +02:00
Fabien Potencier
b0e3ea5f5f [Validator] fixed wrong URL for XSD 2013-05-04 10:54:37 +02:00
Fabien Potencier
cf35eb8ccb merged branch bschussek/fix-validator (PR #7919)
This PR was merged into the 2.2 branch.

Discussion
----------

[Validator] Fixed: $traverse and $deep is passed to the visitor from Validator::validate()

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

Commits
-------

59b78c7 [Validator] Fixed: $traverse and $deep is passed to the visitor from Validator::validate()
2013-05-03 16:19:45 +02:00
Bernhard Schussek
59b78c7c16 [Validator] Fixed: $traverse and $deep is passed to the visitor from Validator::validate() 2013-05-03 15:20:58 +02:00
Fabien Potencier
0a8c2ddd4b merged branch bschussek/issue7558 (PR #7917)
This PR was merged into the 2.1 branch.

Discussion
----------

[Form] Fixed transform()/reverseTransform() to always throw TransformationFailedExceptions

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

Commits
-------

bcb5400 [Form] Fixed transform()/reverseTransform() to always throw TransformationFailedExceptions
2013-05-03 13:10:52 +02:00
Fabien Potencier
1510faa96a merged branch bschussek/issue7371 (PR #7918)
This PR was merged into the 2.1 branch.

Discussion
----------

[Form] Fixed: String validation groups are never interpreted as callbacks

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

Commits
-------

7b2ebbf [Form] Fixed: String validation groups are never interpreted as callbacks
2013-05-03 13:08:49 +02:00
Bernhard Schussek
bcb540021a [Form] Fixed transform()/reverseTransform() to always throw TransformationFailedExceptions 2013-05-03 12:15:17 +02:00
Bernhard Schussek
7b2ebbfa41 [Form] Fixed: String validation groups are never interpreted as callbacks 2013-05-03 12:12:06 +02:00
Fabien Potencier
a7608d9115 merged branch bschussek/issue7642 (PR #7903)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed CSRF error messages to be translated and added "csrf_message" option

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

Commits
-------

549a308 [Form] Fixed CSRF error messages to be translated and added "csrf_message" option
2013-05-03 11:06:00 +02:00
Fabien Potencier
e57d87a2f2 merged branch bschussek/issue7609 (PR #7902)
This PR was merged into the 2.2 branch.

Discussion
----------

[Form] Improved multi-byte handling of NumberToLocalizedStringTransformer

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

Commits
-------

dcced01 [Form] Improved multi-byte handling of NumberToLocalizedStringTransformer
2013-05-03 11:03:51 +02:00
Fabien Potencier
795e828140 merged branch xabbuh/issue6651 (PR #7906)
This PR was squashed before being merged into the 2.1 branch (closes #7906).

Discussion
----------

if the repository method returns an array ensure that it's internal poin...

...ter is resetted

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

Commits
-------

0610750 if the repository method returns an array ensure that it's internal poin...
2013-05-03 10:59:56 +02:00
Christian Flothmann
0610750378 if the repository method returns an array ensure that it's internal poin... 2013-05-03 10:59:56 +02:00
Fabien Potencier
2d9154f467 merged branch bschussek/fix-translator (PR #7915)
This PR was merged into the master branch.

Discussion
----------

[Translation] Made translation domain defaults in Translator consistent with TranslatorInterface

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

Commits
-------

90a20d7 [Translation] Made translation domain defaults in Translator consistent with TranslatorInterface
2013-05-03 09:03:49 +02:00
Bernhard Schussek
dcced01fd5 [Form] Improved multi-byte handling of NumberToLocalizedStringTransformer 2013-05-03 08:56:21 +02:00
Bernhard Schussek
90a20d7835 [Translation] Made translation domain defaults in Translator consistent with TranslatorInterface 2013-05-03 08:41:16 +02:00
Bernhard Schussek
549a308a37 [Form] Fixed CSRF error messages to be translated and added "csrf_message" option 2013-05-03 08:38:36 +02:00
Fabien Potencier
3f5cffec8a merged branch beberlei/TaggedServices (PR #7909)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7909).

Discussion
----------

[DependencyInjection] Fix method use + example in doc block

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

Fixes using a wrong method in ``findTaggedServiceIds`` and adds an example for the usage and showing the returned data structure as ``@return array`` is not very helpful, the datastructure being a bit unintuitive.

Commits
-------

ad2c955 [DependencyInjection] Fix wrong method in findTaggedServiceIds(), add example to docblock.
2013-05-03 07:08:13 +02:00
Benjamin Eberlei
cfebe47000 Fix wrong method in findTaggedServiceIds(), add example to docblock. 2013-05-03 07:08:13 +02:00
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