Commit Graph

44241 Commits

Author SHA1 Message Date
Romain Monteil
d52d0969ab [TwigBridge] Add form templates for Bootstrap 5 2021-05-06 13:07:27 +02:00
Fabien Potencier
beca689412 minor #41117 [Security] Add missing Italian translations (ramundomario)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Italian translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- 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       | Fix #41051 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A <!-- required for new features -->

Commits
-------

4dc5c82fa4 [Security] Add missing Italian translations #41051
2021-05-06 13:04:48 +02:00
Fabien Potencier
4c7a54ac08 minor #41079 [Security] Added missing Polish translations (ShiroRyokoshi)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Polish translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix ##41061
| License       | MIT
| Doc PR        | N/A

The translations added were based off the english ones.
This is my first PR ever, I hope I didn't do any mistakes.

Commits
-------

774a1d35da [Security] Added missing Polish translations
2021-05-06 13:02:55 +02:00
Shiro
774a1d35da [Security] Added missing Polish translations 2021-05-06 13:02:50 +02:00
Mario Ramundo
4dc5c82fa4 [Security] Add missing Italian translations #41051 2021-05-05 22:22:20 +02:00
Alexander M. Turek
093b15c476 minor #41109 [HttpFoundation] Request::getProtocolVersion may return null (Jean85)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Request::getProtocolVersion may return null

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

This is just a minor PHPDoc fix, but we stumbled on it in https://github.com/getsentry/sentry-symfony/pull/495, and static analysis complains about our fix.

Basically, `SERVER_PROTOCOL` may not be set, even if it shouldn't be missing according to [RFC 3875 (GCI spec)](https://tools.ietf.org/html/rfc3875#section-4.1.16). In our case, the user reported the issue because the request was issued interally by a pod health check inside Kubernetes.

Commits
-------

99aadb31ff getProtocolVersion may return null
2021-05-05 18:50:48 +02:00
Nyholm
f9deae095b
minor #41092 [Security] Missing translations pt_BR (rezehnde)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Missing translations pt_BR

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38729
| License       | MIT

Commits
-------

8c61c2273f [Security] Missing translations pt_BR
2021-05-05 10:05:55 +02:00
Marcos Rezende
8c61c2273f
[Security] Missing translations pt_BR 2021-05-05 10:05:48 +02:00
Alessandro Lai
99aadb31ff
getProtocolVersion may return null 2021-05-05 09:40:41 +02:00
Alexander M. Turek
55574de05c Merge branch '5.2' into 5.x
* 5.2:
  Fix tests
2021-05-04 20:29:22 +02:00
Alexander M. Turek
22292d59d3 Fix tests 2021-05-04 20:20:21 +02:00
Alexander M. Turek
5483e1158c bug #41022 [PasswordHasher] Improved BC layer (derrabus)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PasswordHasher] Improved BC layer

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41020, Fix #41024
| License       | MIT
| Doc PR        | N/A

Commits
-------

0caad4f72d [PasswordHasher] Improved BC layer
2021-05-04 19:56:31 +02:00
Alexander M. Turek
ec33951582 Merge branch '5.2' into 5.x
* 5.2:
  [Inflector][String] Fixed singularize `edges` > `edge`
  ref #41087: missing turkish translations from security component
  Added translations for pt security file.
2021-05-04 19:55:50 +02:00
Alexander M. Turek
7be408a332 Merge branch '4.4' into 5.2
* 4.4:
  [Inflector][String] Fixed singularize `edges` > `edge`
  ref #41087: missing turkish translations from security component
  Added translations for pt security file.
2021-05-04 19:54:16 +02:00
Alexander M. Turek
21e9894c10 minor #41090 [Security] Added translations for pt security file. (Ana Raro)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Added translations for pt security file.

| Q             | A
| ------------- | ---
| Branch?       | 4.4<!-- 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       | Fix #41062 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | - <!-- required for new features -->
<!--
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 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

22aad3962c Added translations for pt security file.
2021-05-04 19:43:10 +02:00
Alexander M. Turek
c1e9ba8708 minor #41091 ref #41087: missing security turksih translations (Koray Zorluoglu)
This PR was merged into the 4.4 branch.

Discussion
----------

ref #41087: missing security turksih translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41087
| License       | MIT

Missing Türkish Translations from Security Component.

Commits
-------

af53ecd1fd ref #41087: missing turkish translations from security component
2021-05-04 19:42:08 +02:00
Alexander M. Turek
68ee96d371 bug #41105 [Inflector][String] Fixed singularize edges > edge (ruudk)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Inflector][String] Fixed singularize `edges` > `edge`

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

I noticed that calling `$inflector->singularize('edges');` returned `['edg', 'edges']`.

It should be `edge`, only. See https://en.wiktionary.org/wiki/edge

Commits
-------

ebfb0c9944 [Inflector][String] Fixed singularize `edges` > `edge`
2021-05-04 19:40:55 +02:00
Ruud Kamphuis
ebfb0c9944 [Inflector][String] Fixed singularize edges > edge 2021-05-04 19:40:47 +02:00
Alexander M. Turek
3ba3a867e0 Merge branch '5.2' into 5.x
* 5.2:
  [Security] Add missing Spanish translations
  [Security] Update Czech translations
  Expand `LockConflictedException` docs
2021-05-04 18:03:17 +02:00
Alexander M. Turek
24febfaae8 Merge branch '4.4' into 5.2
* 4.4:
  [Security] Add missing Spanish translations
  [Security] Update Czech translations
  Expand `LockConflictedException` docs
2021-05-04 18:02:46 +02:00
Alexander M. Turek
4d3768f324 minor #41100 [Security] Add missing Spanish translations (makraz)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Spanish translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41083
| License       | MIT
| Doc PR        | N/A

Commits
-------

4e6e276d77 [Security] Add missing Spanish translations
2021-05-04 18:02:01 +02:00
Hamza Makraz
4e6e276d77 [Security] Add missing Spanish translations 2021-05-04 15:57:45 +00:00
Martin Hujer
076310cfe3 [Security] Update Czech translations
- closes #41040
- The translations are not perfect for some %minutes% values
   as the pluralization is more complicated in Czech than in English.
- See: https://github.com/symfony/symfony/issues/40863#issuecomment-823928594
2021-05-04 17:37:23 +02:00
Tomanhez
8c0e8f7d83 Fix return type on isAllowedProperty method 2021-05-04 15:54:33 +02:00
Noel Light-Hilary
2e4335fc70 Expand LockConflictedException docs
The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969
2021-05-04 13:06:07 +01:00
Robin Chalas
0abfb561b5 fix merge 2021-05-04 10:28:08 +02:00
Alexander M. Turek
1408af3be6 Merge branch '5.2' into 5.x
* 5.2:
  [Security] Add missing German translations
  [ErrorHandler] Skip "same vendor" `@method` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
  [Security] Add missing Dutch translations
2021-05-03 22:28:15 +02:00
Alexander M. Turek
6e22f082c3 Merge branch '4.4' into 5.2
* 4.4:
  [Security] Add missing German translations
  [ErrorHandler] Skip "same vendor" `@method` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
  [Security] Add missing Dutch translations
2021-05-03 22:27:30 +02:00
Alexander M. Turek
88dcf52964 bug #41075 [ErrorHandler] Skip "same vendor" `@method deprecations for Symfony\*` classes unless symfony/symfony is being tested (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ref #40975 #40996 #40893
| License       | MIT
| Doc PR        |

Replaces #41001

Commits
-------

7a1a91017d [ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
2021-05-03 22:26:13 +02:00
Alexander M. Turek
2f3519ba4f minor #41076 [Security] Add missing German translations (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Add missing German translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41045
| License       | MIT
| Doc PR        | N/A

Commits
-------

31bba079c3 [Security] Add missing German translations
2021-05-03 22:24:54 +02:00
Alexander M. Turek
31bba079c3 [Security] Add missing German translations 2021-05-03 22:24:48 +02:00
Alexander M. Turek
a5e8e7d5e0 Make Serializable implementation internal and final 2021-05-03 22:23:22 +02:00
Nicolas Grekas
bcf63398b9 [Mime] update types map 2021-05-03 09:46:11 +02:00
Koray Zorluoglu
af53ecd1fd ref #41087: missing turkish translations from security component 2021-05-03 09:26:38 +02:00
Ana Raro
22aad3962c Added translations for pt security file. 2021-05-03 08:02:13 +01:00
Jan Schädlich
337f828b23 Make FailoverTransport always pick the first transport 2021-05-02 22:10:05 +01:00
Nicolas Grekas
7a1a91017d [ErrorHandler] Skip "same vendor" @method deprecations for Symfony\* classes unless symfony/symfony is being tested 2021-05-02 22:47:26 +02:00
Christiaan Wiesenekker
e30eb8f555 [Security] Add missing Dutch translations 2021-05-02 22:22:44 +02:00
Alexander M. Turek
29d51cad6f Merge branch '5.2' into 5.x
* 5.2:
  [Security] Update Security Arabic Translations
  add missing vietnamese translations
  Add missing Hungarian translations
  Update Romanian Translation based on English
2021-05-02 22:00:56 +02:00
Alexander M. Turek
73174430cf Merge branch '4.4' into 5.2
* 4.4:
  [Security] Update Security Arabic Translations
  add missing vietnamese translations
  Add missing Hungarian translations
  Update Romanian Translation based on English
2021-05-02 22:00:24 +02:00
Alexander M. Turek
c8cc4c3ee3 minor #41068 [Security] Update Security Arabic Translations (MouadZIANI)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Update Security Arabic Translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41028
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Related to #41028

Commits
-------

68c10337cc [Security] Update Security Arabic Translations
2021-05-02 21:25:58 +02:00
Mouad ZIANI
68c10337cc [Security] Update Security Arabic Translations 2021-05-02 21:25:52 +02:00
Alexander M. Turek
dab2c9c255 minor #41073 [Security] Add missing Hungarian translations (Daniel Tiringer)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Hungarian translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41049
| License       | MIT
| Doc PR        | N/A

This PR adds missing Hungarian translations.

Commits
-------

89057b97d0 Add missing Hungarian translations
2021-05-02 21:24:16 +02:00
Alexander M. Turek
1621d78a37 minor #41069 Update Romanian Translation based on English (cybernet)
This PR was merged into the 4.4 branch.

Discussion
----------

Update Romanian Translation based on English

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

Commits
-------

d2b38fa54a Update Romanian Translation based on English
2021-05-02 21:21:38 +02:00
Alexander M. Turek
9857faed7d bug #40994 [Config] More accurate message on invalid config builder (a-menshchikov)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Config] More accurate message on invalid config builder

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

Throw exception when trying to autowire nested bundle config instead of ConfigBuilder (related Doc PR https://github.com/symfony/symfony-docs/pull/15300).
Also renamed test class AcmeConfigBuilder to AcmeConfig according config builders auto naming.

Inspired by a chat with `@Nyholm`

Commits
-------

0501ecc2d8 More accurate message on invalid config builder
2021-05-02 21:10:54 +02:00
Alexander M. Turek
21e3738fdd bug #40767 [Routing] Fix localized paths (l-vo)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Routing] Fix localized paths

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

Related to #40266, localized paths does not work anymore. This PR aims to fix that and add a rework on the tests (using real annotations/attributes instead of guessing the parsing that may lead to errors).

Commits
-------

9bf4a24a6e [Routing] Fix localized paths
2021-05-02 20:54:57 +02:00
Jan Schädlich
3703010b1b add missing vietnamese translations 2021-05-02 18:29:24 +01:00
Daniel Tiringer
89057b97d0 Add missing Hungarian translations 2021-05-02 17:43:59 +02:00
Alexander M. Turek
0caad4f72d [PasswordHasher] Improved BC layer 2021-05-02 13:08:50 +02:00
cybernet
d2b38fa54a
Update Romanian Translation based on English
2 missing keys
2021-05-02 11:15:38 +01:00
Christian Flothmann
2ba1f89a3a fix merge 2021-05-02 10:42:38 +02:00
Fabien Potencier
b6966d9091 Bump Symfony version to 5.3.0 2021-05-01 17:01:32 +02:00
Fabien Potencier
a977a2852a Update VERSION for 5.3.0-BETA2 2021-05-01 16:58:22 +02:00
Fabien Potencier
77c2496c88 Bump Symfony version to 5.2.8 2021-05-01 16:56:20 +02:00
Fabien Potencier
c3b3c33d41 Update VERSION for 5.2.7 2021-05-01 16:53:15 +02:00
Fabien Potencier
30dd608576 Bump Symfony version to 4.4.23 2021-05-01 16:48:05 +02:00
Fabien Potencier
f015673f30 Update VERSION for 4.4.22 2021-05-01 16:38:48 +02:00
Fabien Potencier
cebbe5d7ad Merge branch '5.2' into 5.x
* 5.2:
  [Security] Add missing French translations for logging throttling
2021-05-01 16:29:44 +02:00
Fabien Potencier
998cdea529 Merge branch '4.4' into 5.2
* 4.4:
  [Security] Add missing French translations for logging throttling
2021-05-01 16:29:34 +02:00
Fabien Potencier
942847f169 feature #41002 [FrameworkBundle][HttpKernel] Move IDE file link formats from FrameworkExtension to FileLinkFormatter (MatTheCat)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[FrameworkBundle][HttpKernel] Move IDE file link formats from FrameworkExtension to FileLinkFormatter

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40901
| License       | MIT
| Doc PR        | N/A

I made `FileLinkFormatter` aware of IDEs file link formats so that you can set `framework.ide` as an env var containing a name (like `atom`).

Not sure how to test it from the `FrameworkExtension` POV though 🤔

Commits
-------

42a27b2770 Move IDE file link formats from FrameworkExtension to FileLinkFormatter
2021-05-01 16:23:06 +02:00
Fabien Potencier
4cc0ab3e99 bug #41014 [Routing] allow extending Route attribute (robmro27)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Routing] allow extending Route attribute

| Q             | A
| ------------- | ---
| Branch?       | 5.x <!-- 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       |  <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | <!-- required for new features -->

There is probably missed `\ReflectionAttribute::IS_INSTANCEOF` parameter and because of that Route attribute class could not be extended. This could be used by some popular bundles like `FOSRestBundle` for example. Right
now it's not possible to add attributes support there like it was before (extending Route Annotation).

Commits
-------

d733b78f88 [Routing] allow extending Route attribute
2021-05-01 16:20:47 +02:00
robmro27
d733b78f88 [Routing] allow extending Route attribute 2021-05-01 16:20:43 +02:00
Fabien Potencier
610c263181 minor #41009 [Config ]Remove log message when no configuration is found in ConfigBuilder (alexander-schranz)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Config ]Remove log message when no configuration is found in ConfigBuilder

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features / 4.4 or 5.2 for bug fixes <!-- see below -->
| Bug fix?      | -
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->
<!--
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 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

I think when a bundle has no configuration we should also not log an warning.

Commits
-------

20c03b5c87 Remove log message when not configuration is found
2021-05-01 16:15:21 +02:00
Christian Flothmann
83fd6ed8fb Merge branch '5.2' into 5.x
* 5.2:
  run tests against doctrine/persistence 2.2 again
  [Security] Do not try to rehash null-passwords
  Small phpdoc imporvement
2021-05-01 16:00:17 +02:00
Christian Flothmann
001aeb8bcb Merge branch '4.4' into 5.2
* 4.4:
  Small phpdoc imporvement
2021-05-01 15:46:24 +02:00
Fabien Potencier
0489ffcaed feature #39913 [OptionsResolver] Add prototype definition support for nested options (yceruto)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[OptionsResolver] Add prototype definition support for nested options

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #34207
| License       | MIT
| Doc PR        | symfony/symfony-docs#...

This proposal adds a new method `setPrototype(true)` to the `OptionsResolver` component to mark options definition as array prototype:
```php
$this->resolver
    ->setDefault('connections', static function (OptionsResolver $resolver) { // nested option
        $resolver
            ->setPrototype(true) // <- the new method
            ->setRequired('table')
            ->setDefaults(['user' => 'root', 'password' => null]);
    })
;
```
This feature will allow passing options this way:
```php
$this->resolver->resolve([
    'connections' => [
        'default' => [ // <- the array index "default" is optional and validation free
            'table' => 'default',
        ],
        'custom' => [
            'user' => 'foo',
            'password' => 'pa$$',
            'table' => 'symfony',
        ],
    ],
])
```
You can add as many items as you want with the advantage of validating each item according to its prototype definition.

The result for this example would be:
```php
[
    'connections' => [
        'default' => [
            'user' => 'root',
            'password' => null,
            'table' => 'default',
        ],
        'custom' => [
            'user' => 'foo',
            'password' => 'pa$$',
            'table' => 'symfony',
        ],
    ],
]
```

This feature is feasible only for nested options so far and the nested option (e.g. "connections") must be of type array of array.

See the test cases for more details about this feature.

Cheers!

Commits
-------

29d41b1970 Add prototype definition support for nested options
2021-05-01 10:55:42 +02:00
Fabien Potencier
3cde49c084 minor #41004 [FrameworkBundle] Use more explicite wording for debug:container command (lyrixx)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[FrameworkBundle] Use more explicite wording for debug:container command

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

I spent too much time debugging something stupid (in my app) and I do think Symfony could do better to help.
In the application, there was:

```yaml
services:
    _defaults:
        autoconfigure: true

    get_set_method_normalizer:
        class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
        tags:
            - { name: serializer.normalizer }
```

And I had to edit the priority. To ensure everything was right, I ran:

```
Symfony Container Services Tagged with "serializer.normalizer" Tag
==================================================================

 ------------------------------------------------------------ ---------- ---------------------------------------------------------------------------
  Service ID                                                   priority   Class name
 ------------------------------------------------------------ ---------- ---------------------------------------------------------------------------
  Symfony\Component\Serializer\Normalizer\DateTimeNormalizer   1          Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
  App\Serializer\Normalizer\JsonApiItemNormalizer                         App\Serializer\Normalizer\JsonApiItemNormalizer
  get_set_method_normalizer                                               Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
    "                                                          -900
  serializer.normalizer.constraint_violation_list              -915       Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer
  serializer.normalizer.datetimezone                           -915       Symfony\Component\Serializer\Normalizer\DateTimeZoneNormalizer
  serializer.normalizer.dateinterval                           -915       Symfony\Component\Serializer\Normalizer\DateIntervalNormalizer
  serializer.normalizer.data_uri                               -920       Symfony\Component\Serializer\Normalizer\DataUriNormalizer
  serializer.normalizer.datetime                               -910       Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
  serializer.normalizer.json_serializable                      -900       Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer
  serializer.normalizer.problem                                -890       Symfony\Component\Serializer\Normalizer\ProblemNormalizer
  serializer.normalizer.object                                 -1000      Symfony\Component\Serializer\Normalizer\ObjectNormalizer
  serializer.denormalizer.array                                -990       Symfony\Component\Serializer\Normalizer\ArrayDenormalizer
  fos_rest.serializer.form_error_normalizer                    -10        FOS\RestBundle\Serializer\Normalizer\FormErrorNormalizer
  fos_rest.serializer.exception_normalizer.symfony             -10        FOS\RestBundle\Serializer\Normalizer\ExceptionNormalizer
  fos_rest.serializer.flatten_exception_normalizer             -10        FOS\RestBundle\Serializer\Normalizer\FlattenExceptionNormalizer
 ------------------------------------------------------------ ---------- ---------------------------------------------------------------------------

```

Please, focus on the `get_set_method_normalizer` line and the `"        -900` line.
To me, it's understandable. I first thought it's a bug in Symfony. But it is not.

The bug is in my application. since the service have `autoconfigure` + an explicit tag it has  finally 2 tags.
And the command was not really helpful
* the usage of `"` instead of a clear message is highly misleading.
* the fact Symfony registers the tag (`autoconfigure`) without a `priority` (nothing is displayed in the console) does not help either. BTW, we might registry tag with an explicit priority (0) instead of nothing. WDYT? I could do another PR for that.

So with this patch, I hope it'll be clearer:

```
root /app php bin/console debug:container --tag=serializer.normalizer

Symfony Container Services Tagged with "serializer.normalizer" Tag
==================================================================

 ------------------------------------------------------------ ---------- ---------------------------------------------------------------------------
  Service ID                                                   priority   Class name
 ------------------------------------------------------------ ---------- ---------------------------------------------------------------------------
  Symfony\Component\Serializer\Normalizer\DateTimeNormalizer   1          Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
  App\Serializer\Normalizer\JsonApiItemNormalizer                         App\Serializer\Normalizer\JsonApiItemNormalizer
  get_set_method_normalizer                                               Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
   (same service as previous, another tag)                     -900
  serializer.normalizer.constraint_violation_list              -915       Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer
  serializer.normalizer.datetimezone                           -915       Symfony\Component\Serializer\Normalizer\DateTimeZoneNormalizer
  serializer.normalizer.dateinterval                           -915       Symfony\Component\Serializer\Normalizer\DateIntervalNormalizer
  serializer.normalizer.data_uri                               -920       Symfony\Component\Serializer\Normalizer\DataUriNormalizer
  serializer.normalizer.datetime                               -910       Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
  serializer.normalizer.json_serializable                      -900       Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer
  serializer.normalizer.problem                                -890       Symfony\Component\Serializer\Normalizer\ProblemNormalizer
  serializer.normalizer.object                                 -1000      Symfony\Component\Serializer\Normalizer\ObjectNormalizer
  serializer.denormalizer.array                                -990       Symfony\Component\Serializer\Normalizer\ArrayDenormalizer
  fos_rest.serializer.form_error_normalizer                    -10        FOS\RestBundle\Serializer\Normalizer\FormErrorNormalizer
  fos_rest.serializer.exception_normalizer.symfony             -10        FOS\RestBundle\Serializer\Normalizer\ExceptionNormalizer
  fos_rest.serializer.flatten_exception_normalizer             -10        FOS\RestBundle\Serializer\Normalizer\FlattenExceptionNormalizer
 ------
```

Commits
-------

3abebb16de [FrameworkBundle] Use more explicite wording for debug:container command
2021-05-01 07:30:39 +02:00
Fran Moreno
bd638a0fd8 Remove spaces between arguments
Blank spaces between the arguments of the GithubActionReporter
messages make them appear always on line 1.
2021-05-01 02:53:07 +02:00
Alexander Schranz
20c03b5c87
Remove log message when not configuration is found 2021-04-30 20:18:19 +02:00
Grégoire Pineau
3abebb16de [FrameworkBundle] Use more explicite wording for debug:container command 2021-04-30 19:49:31 +02:00
Thijs-jan Veldhuizen
a2a944e668 [Security] Do not try to rehash null-passwords 2021-04-30 19:39:44 +02:00
jmsche
b64efd2848 [Security] Add missing French translations for logging throttling 2021-04-30 16:11:22 +02:00
MatTheCat
42a27b2770
Move IDE file link formats from FrameworkExtension to FileLinkFormatter 2021-04-30 15:31:27 +02:00
Fabien Potencier
8679945b43 minor #40973 [HttpFoundation] Small phpdoc improvement (flack)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Small phpdoc improvement

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

I have been looking for a way to emulate `$_REQUEST` in Symfony, and I always thought the `get` method is useless for that, because it only looks at some custom routing stuff, GET and whatever BODY might be. Only today I actually looked at the source code and found out that it's actually (almost) doing what I was looking for, i.e. check `$_GET`, and then `$_POST`. So I figured it would be good to be a bit more explicit in the phpdoc (analoguous to the phpdoc for `$request->request`, which says "Request body parameters ($_POST).").

Commits
-------

a53f256b4b Small phpdoc imporvement
2021-04-30 14:05:50 +02:00
Alexander Menshchikov
0501ecc2d8
More accurate message on invalid config builder
Throw exception when try to autowire nested bundle config instead of ConfigBuilder.
Also renamed test class AcmeConfigBuilder to AcmeConfig according config builders auto naming.
2021-04-30 12:43:05 +03:00
Alexander M. Turek
8ff0a3e6f2 Merge branch '5.2' into 5.x
* 5.2:
  [Security/Core] fix checking for bcrypt
  [HttpFoundation] Fixes for PHP 8.1 deprecations
  [Mime] DataPart: remove confusing fix-me comment
  expose references detected in inline notation structures
2021-04-29 22:52:27 +02:00
Alexander M. Turek
92b6458f60 Merge branch '4.4' into 5.2
* 4.4:
  [Security/Core] fix checking for bcrypt
  [HttpFoundation] Fixes for PHP 8.1 deprecations
  [Mime] DataPart: remove confusing fix-me comment
  expose references detected in inline notation structures
2021-04-29 22:47:09 +02:00
Robin Chalas
68a97d6e9a bug #40920 [PasswordHasher] accept hashing passwords with nul bytes or longer than 72 bytes when using bcrypt (nicolas-grekas)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PasswordHasher] accept hashing passwords with nul bytes or longer than 72 bytes when using bcrypt

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

This limitation of bcrypt creates a risk for migrations. But we can remove it, so here we are.

Commits
-------

a5d3b89472 [PasswordHasher] accept hashing passwords with nul bytes or longer than 72 bytes when using bcrypt
2021-04-29 22:41:46 +02:00
Nicolas Grekas
a5d3b89472 [PasswordHasher] accept hashing passwords with nul bytes or longer than 72 bytes when using bcrypt 2021-04-29 20:11:32 +02:00
Nicolas Grekas
f01ea99254 [Security/Core] fix checking for bcrypt 2021-04-29 20:10:21 +02:00
Fabien Potencier
694c052e3c bug #40986 [Console] Negatable option are null by default (jderusse)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Console] Negatable option are null by default

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

given the command
```php
class TestCommand extends Command
{
    protected static $defaultName = 'test';

    protected function configure()
    {
        $this->addOption('ansi', null, InputOption::VALUE_NEGATABLE, 'Force/disable ANSI output');
    }

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        dump($input->getOption('ansi'));

        return Command::SUCCESS;
    }
}
```

 call | result
--- | ---
`bin/console test --no-ansi` | `false`
`bin/console test --ansi` | `true`
`bin/console test` | `null`

Commits
-------

22cb37cc85 [console] Negatable option are null by default
2021-04-29 16:17:51 +02:00
Jérémy Derussé
22cb37cc85
[console] Negatable option are null by default 2021-04-29 15:43:07 +02:00
flack
a53f256b4b Small phpdoc imporvement 2021-04-29 15:01:54 +02:00
Fabien Potencier
061ac77773 bug #40923 [Yaml] expose references detected in inline notation structures (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] expose references detected in inline notation structures

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

Commits
-------

6d7d3fb520 expose references detected in inline notation structures
2021-04-29 14:36:56 +02:00
Fabien Potencier
1882d266d4 bug #40951 [FrameworkBundle] Make debug:event-dispatcher search case insensitive (javiereguiluz)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[FrameworkBundle] Make debug:event-dispatcher search case insensitive

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

I was playing with the new features of `debug:event-dispatcher` and I thought that making the new search feature case insensitive could be better:

### Before

```
$ php bin/console debug:event-dispatcher mailer

 [WARNING] The event "mailer" does not have any registered listeners.
```

### After

```
$ php bin/console debug:event-dispatcher mailer

Registered Listeners of Event Dispatcher "debug.event_dispatcher" for "Symfony\Component\Mailer\Event\MessageEvent" Event
=========================================================================================================================

 ------- --------------------------------------------------------------------------- ----------
  Order   Callable                                                                    Priority
 ------- --------------------------------------------------------------------------- ----------
  #1      Symfony\Component\Mailer\EventListener\MessageListener::onMessage()         0
  #2      Symfony\Component\Mailer\EventListener\EnvelopeListener::onMessage()        -255
  #3      Symfony\Component\Mailer\EventListener\MessageLoggerListener::onMessage()   -255
 ------- --------------------------------------------------------------------------- ----------
```

Commits
-------

1e4c7d9c5d [FrameworkBundle] Make debug:event-dispatcher search case insensitive
2021-04-29 14:35:02 +02:00
Fabien Potencier
32534fbad2 bug #40966 [Messenger] fix manual amqp setup when autosetup disabled (Tobion)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Messenger] fix manual amqp setup when autosetup disabled

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix https://github.com/symfony/symfony/pull/39608#discussion_r621590663
| License       | MIT
| Doc PR        |

Commits
-------

29e5bde6c0 [Messenger] fix manual amqp setup when autosetup disabled
2021-04-29 14:30:13 +02:00
Roman Anasal
a95bbaaaef [TwigBridge] Fix HTML for translatable custom-file label in Bootstrap 4 theme
Bootstraps allows to translate the label of the button of a custom-file
input with SCSS variables depending on the lang attribute of the
*input*.
This attribute was set on the label instead and thus had no effect.
2021-04-29 13:03:05 +02:00
Oskar Stark
4c0f078c91 [Mailer] Move CHANGELOG entry 2021-04-29 11:19:46 +02:00
Alexander M. Turek
90e419d0de minor #40968 [Config] Remove unused sprintf + coding standards (HypeMC)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Config] Remove unused sprintf + coding standards

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

A few things I noticed, redundant `sprintf` and variable and coding standards.

Commits
-------

17479e2bb5 Minor code cleanup
2021-04-28 23:13:43 +02:00
Alexander M. Turek
a94de9e012 minor #40967 [Translation] [Loco] Remove SCHEME const (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Translation] [Loco] Remove SCHEME const

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

For consistency, we do it this way in mailer and notifier

cc `@welcoMattic`

Commits
-------

34be4a5120 [Translation] [Loco] Remove SCHEME const
2021-04-28 14:03:52 +02:00
Jordi Boggiano
a942b5f684
Avoid regenerating the remember me token if it is still fresh 2021-04-28 13:42:03 +02:00
HypeMC
17479e2bb5 Minor code cleanup 2021-04-28 09:57:32 +02:00
Oskar Stark
01602ef842 bug #40956 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name (MatTheCat)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Config] [ConfigBuilder] Set FQCN as properties type instead of class name

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40921
| License       | MIT
| Doc PR        | N/A

Commits
-------

e9aa1c5771 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name
2021-04-28 09:41:38 +02:00
MatTheCat
e9aa1c5771 [Config] [ConfigBuilder] Set FQCN as properties type instead of class name 2021-04-28 09:41:32 +02:00
Nyholm
92a61b1cf6
[Translation] Set default locale for IdentityTranslatorTest 2021-04-28 08:59:52 +02:00
Oskar Stark
34be4a5120 [Translation] [Loco] Remove SCHEME const 2021-04-28 08:48:47 +02:00
Tobias Schultze
29e5bde6c0 [Messenger] fix manual amqp setup when autosetup disabled 2021-04-28 00:28:04 +02:00
Pavel Kirpitsov
838f36b09f [Notifier] [Bridge] Store message id for slack transport's SendMessage 2021-04-27 20:16:47 +03:00
Jeremiasz Major
10be072b2b
[HttpFoundation] Fixes for PHP 8.1 deprecations 2021-04-27 18:57:06 +02:00
Oskar Stark
e6af3c2572 [Translation] [Loco] Simplify namespace 2021-04-27 17:24:37 +02:00