Commit Graph

49475 Commits

Author SHA1 Message Date
Gary PEGEOT
36cc98228e [DI][Framework] Use PHP instead of XML for test config 2020-06-11 17:33:16 +02:00
Fabien Potencier
afed5eaefd minor #37199 [FrameworkBundle] Move profiling configuration to PHP (hvt)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Move profiling configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | #37186
| License       | MIT

Moving profiling configuration in framework bundle to PHP.

Commits
-------

20b5d245c7 [FrameworkBundle] Move profiling configuration to PHP
2020-06-11 17:21:00 +02:00
Fabien Potencier
3c5f9d1c8c minor #37207 [Ssi] Move configuration to PHP (50bhan)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Ssi] Move configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT
| Doc PR        | n/a

Commits
-------

5a4d667369 [Ssi] Move configuration to PHP
2020-06-11 16:52:53 +02:00
50bhan
5a4d667369 [Ssi] Move configuration to PHP 2020-06-11 16:52:47 +02:00
Harm van Tilborg
20b5d245c7 [FrameworkBundle] Move profiling configuration to PHP 2020-06-11 16:47:52 +02:00
Fabien Potencier
188a9850df minor #37212 [FrameworkBundle] Move debug configuration to PHP (Benoit Mallo)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Move debug configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

a226a52d65 [FrameworkBundle] Move debug configuration to PHP
2020-06-11 16:41:46 +02:00
Benoit Mallo
a226a52d65 [FrameworkBundle] Move debug configuration to PHP 2020-06-11 16:41:38 +02:00
Fabien Potencier
eb4d77740f Fix CS 2020-06-11 16:40:03 +02:00
Fabien Potencier
c48a30e012 minor #37206 [FrameworkBundle] Move security-csrf configuration to PHP (j.schmitt)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Move security-csrf configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT
Moving security-csrf configuration in framework bundle to PHP.

Commits
-------

a2d6581345 [FrameworkBundle] Move security-csrf configuration to PHP
2020-06-11 16:38:48 +02:00
Fabien Potencier
596cdb04b7 minor #37219 FrameworkBundle fix incorrect nested arrays in php config (GromNaN)
This PR was merged into the 5.2-dev branch.

Discussion
----------

FrameworkBundle fix incorrect nested arrays in php config

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/pull/37201#discussion_r438652771
| License       | MIT

Commits
-------

20459884d2 Fix invalid syntax
2020-06-11 16:36:48 +02:00
Fabien Potencier
51be09c13c minor #37214 Remove non-existing arg and param from serializer service config (Tobion)
This PR was merged into the 4.4 branch.

Discussion
----------

Remove non-existing arg and param from serializer service config

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       |
| License       | MIT
| Doc PR        |

Leftover from #22741

Commits
-------

d179d71f45 Remove non-existing arg and param from serializer service config
2020-06-11 16:32:27 +02:00
Jérôme TAMARELLE
20459884d2 Fix invalid syntax 2020-06-11 16:03:44 +02:00
c.khedhi@prismamedia.com
8a81abeb6f [FrameworkBundle] Move web configuration to PHP 2020-06-11 15:15:23 +02:00
Fabien Potencier
816b6ea6f1 Fix typo 2020-06-11 15:00:25 +02:00
Fabien Potencier
54c9054ef4 bug #37182 [HttpKernel] Fix regression where Store does not return response body correctly (mpdude)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

[HttpKernel] Fix regression where Store does not return response body correctly

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37174
| License       | MIT
| Doc PR        |

Since #36833, the `Store` no longer uses or trusts the `X-Content-Digest` header present on a response, since that may come (in the case of using `CachingHttpClient`) from upstream HTTP sources. Instead, the `X-Content-Digest` is re-computed every time a response is written by the `Store`.

Additionally, the `Store` is implemented in a way that when restoring responses, it does _not_ actually load the response body, but just keeps the file path to the content on disk in another internal header called `X-Body-File`. It is up to others (`HttpCache`, for example) to actually load the content from there. For reasons I could not determine, the file path is also set as the response body.

When the `HttpCache` performs revalidations, it may happen that it wants the `Store` to persist a previously restored response. In that case, the `Store` fails to honor its own `X-Body-File` header. Instead, it would compute (since #36833) the `X-Content-Digest`, which now is a hash of the cache file path.

So, we end up with a response that still carries `X-Body-File` for the original, correct response. Since the `HttpCache` honors this value, we don't immediately notice that. But inside the `Store`, the request is now associated with the _new_ (bogus) content entry.

It takes another round of looking up the content in the `Store` to now get a response where the `X-Body-File` _also_ points to the wrong content entry.

Although I feel a bit uncomfortable with trusting headers that seemingly need to be evaluated in different classes and may come from elsewhere, my suggestion is to skip the write inside `Store` if `X-Body-File` and `X-Content-Digest` are both present and consistent with each other.

Additionally, a `file_exists` check could be added to provide additional assertions, at the cost of accessing the filesystem.

Commits
-------

176e769e5f [HttpKernel] Fix regression where Store does not return response body correctly
2020-06-11 14:59:43 +02:00
Matthias Pigulla
176e769e5f [HttpKernel] Fix regression where Store does not return response body correctly 2020-06-11 14:59:37 +02:00
Fabien Potencier
b1f2a1409c bug #37193 [DependencyInjection][CheckTypeDeclarationsPass] Always resolve parameters (fancyweb)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection][CheckTypeDeclarationsPass] Always resolve parameters

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/37166
| License       | MIT
| Doc PR        | -

> Only array parameters are not inlined when dumped.

This is true only when the XML debug container is used, not on a live container that can contain unresolved parameters in the `%my_param%` form. That was my mistake. We have to resolve to get the parameter type.

`$value = [];` was just an improvement to avoid useless parameter resolve btw.

Commits
-------

da0e2c36ef [DependencyInjection][CheckTypeDeclarationsPass] Always resolve parameters
2020-06-11 14:58:51 +02:00
Fabien Potencier
faafec4a04 bug #37044 [DependencyInjection] Apply ExpressionLanguageProviderPass to router.default (wizhippo)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[DependencyInjection] Apply ExpressionLanguageProviderPass to router.default

| Q             | A
| ------------- | ---
| Branch?       |  5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/issues/37042
| License       | MIT

Using a `chain_router` usually replaces the `router` and add the `router.default` to it's chain.

This would `addExpressionLanguageProvider` to the default router only as the chain router is not expected to have `addExpressionLanguageProvider` as it is not part of the router interface.

Commits
-------

215ad1f93d [DependencyInjection] Apply ExpressionLanguageProviderPass to router.default
2020-06-11 14:57:51 +02:00
Douglas Hammond
215ad1f93d [DependencyInjection] Apply ExpressionLanguageProviderPass to router.default 2020-06-11 14:57:45 +02:00
Tobias Schultze
d179d71f45 Remove non-existing arg and param from serializer service config 2020-06-11 14:32:28 +02:00
Nicolas Grekas
69c37c0335 bug #37054 [String] Fix ellipsis of truncate when not using cut option (DuboisS)
This PR was merged into the 5.1 branch.

Discussion
----------

[String] Fix ellipsis of truncate when not using cut option

| Q             | A
| ------------- | ---
| Branch?       | 5.1 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | - <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | - <!-- required for new features -->

[Since 5.1](https://symfony.com/blog/new-in-symfony-5-1-string-improvements#keep-the-last-word-when-truncating), we can use a cut option on truncate.
But with this option, we don't have the expected behavior when the entire chain is returned.

Currently:
`u('Lorem Ipsum')->truncate(8, '…', false); // 'Lorem Ipsum...'`
Instead of:
`u('Lorem Ipsum')->truncate(8, '…', false); // 'Lorem Ipsum'`

Thanks to @jmsche for his help.

Commits
-------

a2ee6c6cf4 [String] Fix ellipsis of truncate when not using cut option
2020-06-11 14:17:23 +02:00
Steven Dubois
a2ee6c6cf4 [String] Fix ellipsis of truncate when not using cut option 2020-06-11 14:16:36 +02:00
Fabien Potencier
124c139c39 minor #37203 [PropertyInfo] Move configuration to PHP (qneyrat)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[PropertyInfo] Move configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT
| Doc PR        | n/a

Commits
-------

5dab6ffc4b [PropertyInfo] Move configuration to PHP
2020-06-11 13:19:48 +02:00
qneyrat
5dab6ffc4b [PropertyInfo] Move configuration to PHP 2020-06-11 13:19:42 +02:00
Fabien Potencier
263d54fc70 minor #37205 [Framework] Convert config/error_renderer.xml to php (benji07)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Framework] Convert config/error_renderer.xml to php

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT

Commits
-------

213091e8d2 [Framework] Convert config/error_renderer.xml to php
2020-06-11 13:17:38 +02:00
qneyrat
3f25c072c2 [PropertyAccess] Move configuration to PHP 2020-06-11 11:54:50 +02:00
j.schmitt
a2d6581345 [FrameworkBundle] Move security-csrf configuration to PHP 2020-06-11 11:24:10 +02:00
Fabien Potencier
7a9f9e4abb minor #37201 [FrameworkBundle] Convert config/secrets.xml to .php (GromNaN)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Convert config/secrets.xml to .php

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT

Commits
-------

6ec97116a3 Convert config/secrets.xml to .php
2020-06-11 11:14:18 +02:00
Fabien Potencier
6d9e13e5ff Bump min version of DI 2020-06-11 11:12:52 +02:00
Fabien Potencier
88a06c936c feature #37198 [FrameworkBundle] Add support for tagged_iterator/tagged_locator in unused tags util (fabpot)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Add support for tagged_iterator/tagged_locator in unused tags util

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | n/a

/cc @stof :)

Commits
-------

164ca90d89 [FrameworkBundle] Add support for tagged_iterator/tagged_locator in unused tags util
2020-06-11 11:10:19 +02:00
Benjamin Lévêque
213091e8d2 [Framework] Convert config/error_renderer.xml to php 2020-06-11 10:58:19 +02:00
Jérôme TAMARELLE
6ec97116a3 Convert config/secrets.xml to .php 2020-06-11 10:36:15 +02:00
Fabien Potencier
1b086eefb0 minor #37200 [FrameworkBundle] Convert config/mime_type.xml to .php (GromNaN)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Convert config/mime_type.xml to .php

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Ref #37186
| License       | MIT

Commits
-------

fa92490fcb Convert config/mime_type.xml into mime_type.php
2020-06-11 10:16:01 +02:00
Jérôme TAMARELLE
fa92490fcb Convert config/mime_type.xml into mime_type.php 2020-06-11 09:59:35 +02:00
Fabien Potencier
8df6380fc7 Fix CHANGELOG 2020-06-11 09:26:22 +02:00
Fabien Potencier
816958176c bug #37190 [HttpClient] disable AMP's inactivity timeout, we deal with it on our own already (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] disable AMP's inactivity timeout, we deal with it on our own already

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36911
| License       | MIT
| Doc PR        | -

I encountered this today also.

Commits
-------

a7b18ff590 [HttpClient] disable AMP's inactivity timeout, we deal with it on our own already
2020-06-11 08:14:20 +02:00
Fabien Potencier
7107080675 bug #37191 [HttpClient] fix offset computation for data chunks (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] fix offset computation for data chunks

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

A minor thingy, still a bugfix.

Commits
-------

ff05be06ec [HttpClient] fix offset computation for data chunks
2020-06-11 08:13:02 +02:00
Fabien Potencier
6ab2198fb5 minor #37196 [HttpClient] make DNS resolution lazy with NativeHttpClient (nicolas-grekas)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpClient] make DNS resolution lazy with NativeHttpClient

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Neither a bug nor a feature but still an improvement. This aligns the behavior of NativeHttpClient with the other adapters.

Commits
-------

d3a450353d [HttpClient] make DNS resolution lazy with NativeHttpClient
2020-06-11 08:10:34 +02:00
Fabien Potencier
131682fe75 minor #37189 [Notifier] Move configuration to PHP (szepczynski)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Notifier] Move configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | #37186 <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT

Move Notifier Component Container configuration to PHP

Commits
-------

9891809d47 [Notifier] Move configuration yo PHP
2020-06-11 08:08:24 +02:00
Fabien Potencier
164ca90d89 [FrameworkBundle] Add support for tagged_iterator/tagged_locator in unused tags util 2020-06-11 08:03:43 +02:00
Nicolas Grekas
d3a450353d [HttpClient] make DNS resolution lazy with NativeHttpClient 2020-06-11 00:12:57 +02:00
Thomas Calvet
da0e2c36ef [DependencyInjection][CheckTypeDeclarationsPass] Always resolve parameters 2020-06-10 18:12:11 +02:00
Nicolas Grekas
ff05be06ec [HttpClient] fix offset computation for data chunks 2020-06-10 17:33:47 +02:00
Nicolas Grekas
a7b18ff590 [HttpClient] disable AMP's inactivity timeout, we deal with it on our own already 2020-06-10 17:30:04 +02:00
Fabien Potencier
7c892eedba bug #37176 [Routing] Keeping routes priorities after add a name prefix to the collection (yceruto)
This PR was merged into the 5.1 branch.

Discussion
----------

[Routing] Keeping routes priorities after add a name prefix to the collection

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37089
| License       | MIT
| Doc PR        | -

Commits
-------

10105267b5 kept routes priorities after add a name prefix to the collection
2020-06-10 16:21:57 +02:00
Fabien Potencier
292be5fda8 bug #37140 [Lock] Fixed reading locks from replica set secondary nodes (kralos)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Lock] Fixed reading locks from replica set secondary nodes

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37139
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/13775

Force lock existence query to use `readPreference=primary` in case the given mongo connection is using any of the following `readPreference`s:

* primaryPreferred
* secondary
* secondaryPreferred
* nearest

Any of the above would fail if a secondary node is queried during a lock release.

Commits
-------

ebf7eaf503 [Lock] Fixed reading locks from replica set secondary nodes
2020-06-10 16:19:12 +02:00
Joe Bennett
ebf7eaf503 [Lock] Fixed reading locks from replica set secondary nodes 2020-06-10 16:18:57 +02:00
Marcin Szepczyński
9891809d47 [Notifier] Move configuration yo PHP 2020-06-10 15:35:51 +02:00
Fabien Potencier
9b08626180 minor #37187 add php loader to FrameworkExtension (szepczynski)
This PR was merged into the 5.2-dev branch.

Discussion
----------

add php loader to FrameworkExtension

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | #37186 <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT

Add php loader to migrate configuration from XML to PHP

Commits
-------

e05e811067 add php loader to FrameworkExtension
2020-06-10 14:06:49 +02:00
Yonel Ceruto
10105267b5 kept routes priorities after add a name prefix to the collection 2020-06-10 07:49:58 -04:00