Commit Graph

40365 Commits

Author SHA1 Message Date
Reyo Stallenberg
02662384c3 [Validator] Add the missing translations for the Dutch (nl) locale 2019-02-12 20:38:21 +01:00
Dominik Hajduk
763f8dfeb3
Add missing PL translation 2019-02-12 20:12:42 +01:00
Luis Tacon
d7bcdddda7 Add missing translations. 2019-02-12 17:55:32 +01:00
Andrea Giannantonio
40903335fd Add missing translations for IT to Validator 2019-02-12 17:19:32 +01:00
Anton Chernikov
8d84cf916b minor #30184 [Validator] Add the missing translations for the Russian (ru) locale (antonch1989) 2019-02-12 18:05:36 +03:00
phydevs
21b5a27507
[Validator] Add the missing translations for the Arabic (ar) locale 2019-02-12 15:13:13 +01:00
Fabien Potencier
f2370eb570 minor #30201 [Validator] Add the missing translations for the Portuguese ("pt") locale (pedroresende)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add the missing translations for the Portuguese ("pt") locale

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

This PR addresses the issue https://github.com/symfony/symfony/issues/30181, adding the missing translations.

Commits
-------

95795dc8cd add_missing_translations_for_portuguese : [Validator] Add the missing translations for the Portuguese ("pt") locale
2019-02-12 13:46:20 +01:00
Fabien Potencier
650f712937 minor #30199 [Validator] Add the missing translations for the French (fr) locale (Martin)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add the missing translations for the French (fr) locale

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

To simplify things, translated files contains all the keys of the French file in `master` branch. That's why our translations in 3.4 branch contain the keys `id = 84` and `id = 85` even if that is not used in 3.4 branch.

I propose to also include that unused key in the French file to make it easier to keep things in sync.

Commits
-------

9a86504fc1 [Validator] Add the missing translations for the French (fr) locale
2019-02-12 13:41:20 +01:00
Pedro Resende
95795dc8cd add_missing_translations_for_portuguese : [Validator] Add the missing translations for the Portuguese ("pt") locale 2019-02-12 12:09:26 +00:00
Martin
9a86504fc1 [Validator] Add the missing translations for the French (fr) locale 2019-02-12 12:07:44 +01:00
Javier Eguiluz
ce4ff50b41
[Validator] Add some missing contents to the English translation 2019-02-12 11:07:29 +01:00
Fabien Potencier
b9b8f9da98 minor #30001 [FrameworkBundle] consolidate the mime types service definition (xabbuh)
This PR was merged into the 4.3-dev branch.

Discussion
----------

[FrameworkBundle] consolidate the mime types service definition

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

I wonder if we couldn't simplify things by just initializing the default `MimeTypes` instance once the first one is going to be created.

Commits
-------

ce546f5e5b consolidate the mime types service definition
2019-02-12 08:31:46 +01:00
Fabien Potencier
865127bca0 feature #30111 [SecurityBundle] Deprecate the normalization of the cookie names (javiereguiluz)
This PR was squashed before being merged into the 4.3-dev branch (closes #30111).

Discussion
----------

[SecurityBundle] Deprecate the normalization of the cookie names

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

This is an alternative solution to #24018 providing a BC layer until Symfony 5.0.

Commits
-------

36c5df4589 [SecurityBundle] Deprecate the normalization of the cookie names
2019-02-12 08:26:13 +01:00
Javier Eguiluz
36c5df4589 [SecurityBundle] Deprecate the normalization of the cookie names 2019-02-12 08:26:06 +01:00
Fabien Potencier
d3d880a1e7 bug #30122 [Security] fix switch user without having current token (Antoine Lamirault)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] fix switch user without having current token

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

Attempting to switch a user cause an error when not having any token in the storage

Commits
-------

15db914984 [Security] fix switch user without having current token
2019-02-12 08:21:07 +01:00
Fabien Potencier
a205211d16 minor #30132 [Form] add back test after fixing it (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] add back test after fixing it

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/29934#discussion_r250501108
| License       | MIT
| Doc PR        |

Commits
-------

0daeba8e8a add back test after fixing it
2019-02-12 08:16:18 +01:00
Fabien Potencier
d4ed49bab3 bug #30136 use PropertyAccessorInterface instead of PropertyAccessor (nick-zh)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #30136).

Discussion
----------

use PropertyAccessorInterface instead of PropertyAccessor

[Validator] [Constraints] use PropertyAccessorInterface instead of PropertyAccessor

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #30133 (partially)
| License       | MIT
| Doc PR        | none

Commits
-------

3e3ca9d467 use PropertyAccessorInterface instead of PropertyAccessor
2019-02-12 08:15:24 +01:00
Nick Chiu
3e3ca9d467 use PropertyAccessorInterface instead of PropertyAccessor 2019-02-12 08:15:17 +01:00
Fabien Potencier
637b10cce7 minor #30143 [PhpunitBridge] dropping ext-zip suggestion as its no longer needed (scuben)
This PR was merged into the 3.4 branch.

Discussion
----------

[PhpunitBridge] dropping ext-zip suggestion as its no longer needed

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| License       | MIT

The zip requirement was dropped after this pull request: https://github.com/symfony/symfony/pull/29265

Commits
-------

bb4b53bc45 Update composer.json
2019-02-12 08:13:11 +01:00
Fabien Potencier
82ba2d6c69 minor #30144 [Validator] Added a missing translation (javiereguiluz)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Added a missing translation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

34698372e4 [Validator] Added a missing translation
2019-02-12 08:12:10 +01:00
Fabien Potencier
6d881f7900 bug #30124 Fix KernelTestCase compatibility for PhpUnit 8 (bis) (nicolas-grekas)
This PR was squashed before being merged into the 3.4 branch (closes #30124).

Discussion
----------

Fix KernelTestCase compatibility for PhpUnit 8 (bis)

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

Follow up of #30084 and @Tobion's comment there.

Fabbot failure is a false-positive.

Commits
-------

1077df60ab Fix KernelTestCase compatibility for PhpUnit 8 (bis)
2019-02-12 08:11:16 +01:00
Nicolas Grekas
1077df60ab Fix KernelTestCase compatibility for PhpUnit 8 (bis) 2019-02-12 08:11:06 +01:00
Fabien Potencier
e3ceb1f3b0 minor #30142 add xabbuh as code owner of the Form component (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

add xabbuh as code owner of the Form component

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

Commits
-------

d0ae383517 add xabbuh as code owner of the Form component
2019-02-12 08:08:54 +01:00
Christian Flothmann
d0ae383517 add xabbuh as code owner of the Form component 2019-02-12 07:44:39 +01:00
Christian Flothmann
2d12aa0141 minor #30119 [Form] add missing null return type (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] add missing null return type

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

This reflects how all our implementations of this interface actually behave.

Commits
-------

03abfc09bd add missing null return type
2019-02-11 22:02:10 +01:00
Javier Eguiluz
34698372e4
[Validator] Added a missing translation 2019-02-11 19:25:53 +01:00
Patrick Landolt
bb4b53bc45
Update composer.json 2019-02-11 18:30:33 +01:00
Christian Flothmann
ace651e255 minor #30064 [Form][MappingRule] Remove unnecessary cast (fancyweb)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form][MappingRule] Remove unnecessary cast

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

Commits
-------

fc09c285a6 [Form][MappingRule] Remove unnecessary cast
2019-02-11 12:05:01 +01:00
Javier Eguiluz
33145dae62 minor #30130 [WebProfilerBundle] Add ajax request number (Antoine Lamirault)
This PR was merged into the 4.3-dev branch.

Discussion
----------

[WebProfilerBundle] Add ajax request number

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

Add request number foreach ajax call in profiler.
![screenshot_2019-02-10_18-54-02](https://user-images.githubusercontent.com/9253091/52537598-c830c980-2d68-11e9-815e-90345b6bbd88.png)

Commits
-------

70a38cfdfd [WebProfilerBundle] Add ajax request number
2019-02-11 08:56:29 +01:00
Christian Flothmann
0daeba8e8a add back test after fixing it 2019-02-10 22:02:18 +01:00
Antoine Lamirault
70a38cfdfd [WebProfilerBundle] Add ajax request number 2019-02-10 19:13:17 +01:00
Christian Flothmann
3be0d35b17 forward valid numeric values to transform() 2019-02-09 15:44:59 +01:00
Thomas Calvet
fc09c285a6 [Form][MappingRule] Remove unnecessary cast 2019-02-09 11:17:15 +01:00
Antoine Lamirault
15db914984 [Security] fix switch user without having current token 2019-02-09 10:27:13 +01:00
Yonel Ceruto
31d7a09bf5 Add support for translator paths and twig paths in translation commands 2019-02-08 12:20:37 -05:00
Christian Flothmann
03abfc09bd add missing null return type 2019-02-08 18:03:34 +01:00
Christian Flothmann
ce546f5e5b consolidate the mime types service definition 2019-02-08 14:33:15 +01:00
Nicolas Grekas
5ed68eec7e Merge branch '4.2'
* 4.2:
  replace mocks with real objects in tests
2019-02-08 14:20:39 +01:00
Nicolas Grekas
37f6be15d3 minor #30113 [Form] replace mocks with real objects in tests (xabbuh)
This PR was merged into the 4.2 branch.

Discussion
----------

[Form] replace mocks with real objects in tests

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

reapplies parts of #30108 on the `4.2` branch

Commits
-------

cee3ccd70f replace mocks with real objects in tests
2019-02-08 14:20:09 +01:00
Christian Flothmann
cee3ccd70f replace mocks with real objects in tests 2019-02-08 14:13:18 +01:00
Nicolas Grekas
41cc6d2676 Merge branch '4.2'
* 4.2:
  New extensions were released supporting PHP 7.3
  Remove "internal" annotation from datacollector serialization methods
  replace mocks with real objects in tests
  [DependencyInjection] fix #29930 add $lazyLoad flag to the generated factory code for lazy non-shared services
  escape function does not always take a string
  Fix phpunit 8 compatibility
  render integer types with grouping as text input
  ignore _method forms in NativeRequestHandler
  don't lose int precision with not needed type casts
2019-02-08 14:07:06 +01:00
Nicolas Grekas
17ac014306 Merge branch '3.4' into 4.2
* 3.4:
  Remove "internal" annotation from datacollector serialization methods
  replace mocks with real objects in tests
  Fix phpunit 8 compatibility
  render integer types with grouping as text input
  ignore _method forms in NativeRequestHandler
  don't lose int precision with not needed type casts
2019-02-08 14:06:27 +01:00
Nicolas Grekas
bb54e40ca7 minor #30112 Remove "internal" annotation from datacollector serialization methods (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

Remove "internal" annotation from datacollector serialization methods

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

I've been a bit too aggressively adding `@internal` in #30035.

Commits
-------

3c8fd2072f Remove "internal" annotation from datacollector serialization methods
2019-02-08 13:55:24 +01:00
Nicolas Grekas
ba54881dc8 minor #30057 New extensions were released supporting PHP 7.3 (tvlooy)
This PR was merged into the 4.2 branch.

Discussion
----------

New extensions were released supporting PHP 7.3

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | see travis
| License       | MIT

Requested in #30030

Commits
-------

31de71d216 New extensions were released supporting PHP 7.3
2019-02-08 13:49:05 +01:00
Tom Van Looy
31de71d216 New extensions were released supporting PHP 7.3 2019-02-08 13:40:57 +01:00
Nicolas Grekas
ac7d43b73f feature #30027 [FrameworkBundle] Add sid_length and sid_bits_per_character session ini options in session configuration (XuruDragon)
This PR was merged into the 4.3-dev branch.

Discussion
----------

[FrameworkBundle] Add sid_length and sid_bits_per_character session ini options in session configuration

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

this a fix for the issue #29830

After deliberation, we estimate that only `sid_length` and` sid_bits_per_character` session options should be exposed. These options à optional.

For others, we recommend changing your php.ini file

We can now configure the session like this :

```yaml
framwork:
  session:
    sid_length: 64 //optional, recommended value is 32
    sid_bits_per_character: 6 //optional, recommended value is 5
```

Commits
-------

0403e4ad67 [FrameworkBundle] Add sid_length and sid_bits_per_character session ini options in configuration
2019-02-08 13:28:53 +01:00
Nicolas Grekas
3c8fd2072f Remove "internal" annotation from datacollector serialization methods 2019-02-08 13:25:22 +01:00
Anthony MARTIN
0403e4ad67 [FrameworkBundle] Add sid_length and sid_bits_per_character session ini options in configuration
| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29830
| License       | MIT
| Doc PR        | n/a

this a fix for the issue #29830

After deliberation, we estimate that only `sid_length` and` sid_bits_per_character` session options should be exposed. These options à optional.

For others, we recommend changing your php.ini file

We can now configure the session like this :

```yaml
framwork:
  session:
    sid_length: 64 //optional, recommended value is 32
    sid_bits_per_character: 6 //optional, recommended value is 5
```
2019-02-08 13:22:56 +01:00
Nicolas Grekas
f331c54dbc bug #30061 [Form] render integer types with grouping as text input (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] render integer types with grouping as text input

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

Commits
-------

d6a5fde521 render integer types with grouping as text input
2019-02-08 13:13:01 +01:00
Nicolas Grekas
eb2a18ece1 bug #30063 [Form] don't lose int precision with not needed type casts (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] don't lose int precision with not needed type casts

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

Commits
-------

72136f1c04 don't lose int precision with not needed type casts
2019-02-08 13:10:33 +01:00