Commit Graph

42431 Commits

Author SHA1 Message Date
Nicolas Grekas
17edc6ada6 minor #31912 [Translation] remove deprecated code paths (nicolas-grekas)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Translation] remove deprecated code paths

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

Commits
-------

1a0bfbcbcb [Translation] remove deprecated code paths
2019-06-07 17:30:38 +02:00
Nicolas Grekas
0fb9b1be3b minor #31932 [Config] remove the root method and the nullable name (Simperfit)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Config] remove the root method and the nullable name

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | none <!-- 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/roadmap):
 - 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 4.4.
 - Legacy code removals go to the master branch.
-->

This PR allows to remove the both deprecated path of the `TreeBuilder` and update tests accordingly.

Commits
-------

7c66e6f1c4 [Config] remove the root method and the nullable name
2019-06-07 17:29:51 +02:00
Nicolas Grekas
1a0bfbcbcb [Translation] remove deprecated code paths 2019-06-07 17:01:52 +02:00
Amrouche Hamza
7c66e6f1c4
[Config] remove the root method and the nullable name 2019-06-07 16:01:26 +02:00
Fabien Potencier
1af3952914 minor #31924 [Workflow] Removed un-used dependency in composer.json (lyrixx)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Workflow] Removed un-used dependency in composer.json

| 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 forgot to remove this deps in #31824

Commits
-------

28f2dac3c7 [Workflow] Removed un-used dependency in composer.json
2019-06-07 12:11:48 +02:00
Grégoire Pineau
28f2dac3c7 [Workflow] Removed un-used dependency in composer.json 2019-06-07 11:08:29 +02:00
Nicolas Grekas
37ee3695ae Merge branch '4.4'
* 4.4:
  Several components are incompatible with HttpKernel 5.0
  [Validator] fix deprecation layer of ValidatorBuilder
  [HttpKernel] Fix missing use for request and response classes
  bumped Symfony version to 4.3.2
  updated VERSION for 4.3.1
  updated CHANGELOG for 4.3.1
2019-06-06 20:32:37 +02:00
Nicolas Grekas
c8c159a755 Merge branch '4.3' into 4.4
* 4.3:
  [Validator] fix deprecation layer of ValidatorBuilder
  [HttpKernel] Fix missing use for request and response classes
  bumped Symfony version to 4.3.2
  updated VERSION for 4.3.1
  updated CHANGELOG for 4.3.1
2019-06-06 20:30:43 +02:00
Nicolas Grekas
5c7b4a0fef Merge branch '4.2' into 4.3
* 4.2:
  [Validator] fix deprecation layer of ValidatorBuilder
2019-06-06 20:29:58 +02:00
Nicolas Grekas
d98dd9bd82 bug #31908 [Validator] fix deprecation layer of ValidatorBuilder (nicolas-grekas)
This PR was merged into the 4.2 branch.

Discussion
----------

[Validator] fix deprecation layer of ValidatorBuilder

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

As identified in https://github.com/symfony/symfony/pull/31898: we cannot remove the interface and make the replacing implementation final in the same run. This PR turns only setTranslator() final to allow changing its type hint in 5.0.

Commits
-------

154ce81519 [Validator] fix deprecation layer of ValidatorBuilder
2019-06-06 20:29:27 +02:00
Nicolas Grekas
ad5028c65e minor #31890 Several components are incompatible with HttpKernel 5.0 (Simperfit)
This PR was merged into the 4.4 branch.

Discussion
----------

Several components are incompatible with HttpKernel 5.0

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | none <!-- 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/roadmap):
 - 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 4.4.
 - Legacy code removals go to the master branch.
-->

This will help to finish the HttpKernel dead code removal (#31672) as this conflict with the component since the type-hint of several listener has been updated.

Commits
-------

a0e4ad3086 Several components are incompatible with HttpKernel 5.0
2019-06-06 20:26:46 +02:00
Amrouche Hamza
a0e4ad3086
Several components are incompatible with HttpKernel 5.0 2019-06-06 20:23:06 +02:00
Nicolas Grekas
6875f66ee0 minor #31903 [HttpKernel] Fix missing use for request and response classes (andrew-demb)
This PR was merged into the 4.3 branch.

Discussion
----------

[HttpKernel] Fix missing use for request and response classes

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

There are `@method` phpdoc with mentions to not imported Request and Response classes.

Commits
-------

0041cd9828 [HttpKernel] Fix missing use for request and response classes
2019-06-06 19:42:50 +02:00
Nicolas Grekas
927b1b23f1 minor #31900 [FrameworkBundle] Fixed replace argument of routing.loader service (yceruto)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[FrameworkBundle] Fixed replace argument of `routing.loader` service

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

Fix https://github.com/symfony/symfony/pull/31702
> (1/1) OutOfBoundsException
The index "2" is not in the range [0, 1].

bd8d8a2cfd/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php (L33)

Commits
-------

5e2e79dbb9 Fixed replace argument of `routing.loader` service
2019-06-06 19:41:38 +02:00
Nicolas Grekas
49f852cc3a minor #31899 [FrameworkBundle] remove deprecated code paths (nicolas-grekas)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[FrameworkBundle] remove deprecated code paths

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

Needs #31898

Commits
-------

30418cfaf3 [FrameworkBundle] remove deprecated code paths
2019-06-06 19:38:57 +02:00
Nicolas Grekas
30418cfaf3 [FrameworkBundle] remove deprecated code paths 2019-06-06 19:13:23 +02:00
Nicolas Grekas
d559bd1c39 minor #31898 [Validator] remove deprecated code paths (nicolas-grekas)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[Validator] remove deprecated code paths

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

Commits
-------

7bb0359265 [Validator] remove deprecated code paths
2019-06-06 19:11:25 +02:00
Nicolas Grekas
7bb0359265 [Validator] remove deprecated code paths 2019-06-06 19:09:13 +02:00
Nicolas Grekas
154ce81519 [Validator] fix deprecation layer of ValidatorBuilder 2019-06-06 19:07:55 +02:00
Nicolas Grekas
9f4dad31e2 Merge branch '4.4'
* 4.4:
  fix typo
2019-06-06 18:44:19 +02:00
Nicolas Grekas
c289687599 fix typo 2019-06-06 18:44:02 +02:00
Nicolas Grekas
6cb9aeac1c Merge branch '4.4'
* 4.4:
  [FrameworkBundle] fix compat with some SF5 components
2019-06-06 18:29:29 +02:00
Nicolas Grekas
1093a5e0e2 minor #31907 [FrameworkBundle] fix compat with some SF5 components (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] fix compat with some SF5 components

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

Commits
-------

92aa6eed97 [FrameworkBundle] fix compat with some SF5 components
2019-06-06 18:29:13 +02:00
Nicolas Grekas
92aa6eed97 [FrameworkBundle] fix compat with some SF5 components 2019-06-06 18:11:34 +02:00
Andrii Dembitskyi
0041cd9828
[HttpKernel] Fix missing use for request and response classes 2019-06-06 17:13:36 +03:00
Fabien Potencier
07800fc3e4 bumped Symfony version to 4.3.2 2019-06-06 15:31:25 +02:00
Fabien Potencier
3ed6f51b12
Merge pull request #31901 from fabpot/release-4.3.1
released v4.3.1
2019-06-06 15:23:55 +02:00
Fabien Potencier
31e678cd31 updated VERSION for 4.3.1 2019-06-06 15:23:34 +02:00
Fabien Potencier
14bd3ed829 updated CHANGELOG for 4.3.1 2019-06-06 15:22:58 +02:00
Yonel Ceruto
5e2e79dbb9 Fixed replace argument of routing.loader service 2019-06-06 09:12:54 -04:00
Fabien Potencier
bd8d8a2cfd Merge branch '4.4'
* 4.4:
  Fix wrong requirements for ocramius/proxy-manager in root composer.json
  Change IntlTimeZone to DateTimeZone
2019-06-06 15:01:42 +02:00
Fabien Potencier
6dd72dedaa Merge branch '4.3' into 4.4
* 4.3:
  Fix wrong requirements for ocramius/proxy-manager in root composer.json
  Change IntlTimeZone to DateTimeZone
2019-06-06 15:01:21 +02:00
Fabien Potencier
495f6a3b0b Merge branch '4.2' into 4.3
* 4.2:
  Fix wrong requirements for ocramius/proxy-manager in root composer.json
  Change IntlTimeZone to DateTimeZone
2019-06-06 15:00:51 +02:00
Fabien Potencier
9c37d18719 Merge branch '3.4' into 4.2
* 3.4:
  Change IntlTimeZone to DateTimeZone
2019-06-06 14:59:36 +02:00
Fabien Potencier
0621a2f268 bug #31894 Fix wrong requirements for ocramius/proxy-manager in root composer.json (henrikvolmer)
This PR was squashed before being merged into the 4.2 branch (closes #31894).

Discussion
----------

Fix wrong requirements for ocramius/proxy-manager in root composer.json

| Q             | A
| ------------- | ---
| Branch?       |  4.2 for bug fixes
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31891
| License       | MIT

Fixed wrong requriement for `ocramius/proxy-manager`

Commits
-------

ee98786365 Fix wrong requirements for ocramius/proxy-manager in root composer.json
2019-06-06 14:58:47 +02:00
Henrik Volmer
ee98786365 Fix wrong requirements for ocramius/proxy-manager in root composer.json 2019-06-06 14:58:37 +02:00
Fabien Potencier
9691519ca4 bug #31865 [Form] Fix wrong DateTime on outdated ICU library (aweelex)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Fix wrong DateTime on outdated ICU library

| Q | A |
| --- | --- |
| Branch? | 3.4 |
| Bug fix? | Yes |
| New feature? | No |
| BC breaks? | No |
| Deprecations? | No |
| Tests pass? | Yes |
| Fixed tickets | --- |
| License | MIT |

There is a problem, when server uses outdated version of ICU (php-intl).

It throws no exeption or debug message on unexisting Timezone. So sometimes you can get wrong DateTime in Forms, because Intl uses 'Etc/Unknown' (UTC+0) instead correct Timezone. And it happens very unobvious.

I added `\IntlExeption` for that cases.

Commits
-------

a6025ab5ee Change IntlTimeZone to DateTimeZone
2019-06-06 14:47:09 +02:00
Александр Ли
a6025ab5ee Change IntlTimeZone to DateTimeZone 2019-06-06 15:54:42 +05:00
Nicolas Grekas
f930ed2374 Merge branch '4.4'
* 4.4:
  [HttpKernel] fix link to source generation
  [Doctrine Bridge] Check field type before adding Length constraint
  [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait
  [Cache] Pass  arg to get callback everywhere
  Fix DoctrineBridge upgrade 5.0
  [FramworkBundle][HttpKernel] fix KernelBrowser BC layer
  Add a missing quote in getValue() DocBlock
  [Messenger] Add runtime check for ext redis version
  [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor.
  minor: ChoiceType callable deprecation after/before seems wrong
2019-06-06 12:05:45 +02:00
Nicolas Grekas
3c8d4c2842 Merge branch '4.3' into 4.4
* 4.3:
  [HttpKernel] fix link to source generation
  [Doctrine Bridge] Check field type before adding Length constraint
  [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait
  [Cache] Pass  arg to get callback everywhere
  Fix DoctrineBridge upgrade 5.0
  [FramworkBundle][HttpKernel] fix KernelBrowser BC layer
  Add a missing quote in getValue() DocBlock
  [Messenger] Add runtime check for ext redis version
  [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor.
  minor: ChoiceType callable deprecation after/before seems wrong
2019-06-06 12:05:19 +02:00
Nicolas Grekas
fa07177838 Merge branch '4.2' into 4.3
* 4.2:
  [Cache] Pass  arg to get callback everywhere
  Add a missing quote in getValue() DocBlock
  [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor.
  minor: ChoiceType callable deprecation after/before seems wrong
2019-06-06 12:05:02 +02:00
Nicolas Grekas
05eb388c26 Merge branch '3.4' into 4.2
* 3.4:
  Add a missing quote in getValue() DocBlock
  [HttpFoundation] Fixed case-sensitive handling of cache-control header in RedirectResponse constructor.
  minor: ChoiceType callable deprecation after/before seems wrong
2019-06-06 12:03:46 +02:00
Fabien Potencier
fc2a86fc3f bug #31893 [HttpKernel] fix link to source generation (nicolas-grekas)
This PR was merged into the 4.3 branch.

Discussion
----------

[HttpKernel] fix link to source generation

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

Introduced in #30301

Commits
-------

4a4b62bf4d [HttpKernel] fix link to source generation
2019-06-06 11:45:54 +02:00
Nicolas Grekas
4a4b62bf4d [HttpKernel] fix link to source generation 2019-06-06 11:21:46 +02:00
Fabien Potencier
965ed1634e bug #31880 [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait (nicolas-grekas)
This PR was merged into the 4.3 branch.

Discussion
----------

[FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait

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

No properties should be exposed.

Commits
-------

625392669a [FrameworkBundle] fix BC-breaking property in WebTestAssertionsTrait
2019-06-06 10:35:06 +02:00
Fabien Potencier
92f333b848 bug #31881 [FramworkBundle][HttpKernel] fix KernelBrowser BC layer (nicolas-grekas)
This PR was merged into the 4.3 branch.

Discussion
----------

[FramworkBundle][HttpKernel] fix KernelBrowser BC layer

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

Swap the order of inheritance to preserve BC with legacy `Client` type hints.
From #30541

Commits
-------

1a4c2548d5 [FramworkBundle][HttpKernel] fix KernelBrowser BC layer
2019-06-06 10:33:46 +02:00
Nicolas Grekas
687f775223 bug #31879 [Cache] Pass arg to get callback everywhere (fancyweb)
This PR was merged into the 4.2 branch.

Discussion
----------

[Cache] Pass  arg to get callback everywhere

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

Some adapters does not pass an useless "save" bool arg. However, that makes a `CallbackInterface` callable unusable with them since the arg is required in the interface.

Commits
-------

d03eb033bb [Cache] Pass  arg to get callback everywhere
2019-06-06 09:46:35 +02:00
Christian Flothmann
9c8a6f96a1 bug #31874 [Doctrine Bridge] Check field type before adding Length constraint (belinde)
This PR was squashed before being merged into the 4.3 branch (closes #31874).

Discussion
----------

[Doctrine Bridge] Check field type before adding Length constraint

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

Validator\DoctrineLoader now add a Length constraint only on field of type string, text and guid; for any other type the mapping length is just ignored

Commits
-------

35e6df6bac [Doctrine Bridge] Check field type before adding Length constraint
2019-06-06 09:45:49 +02:00
Franco Traversaro
35e6df6bac [Doctrine Bridge] Check field type before adding Length constraint 2019-06-06 09:45:42 +02:00
Nicolas Grekas
01273b9d65 minor #31887 [DoctrineBridge] Removed legacy code related to DoctrineChoiceLoader (yceruto)
This PR was merged into the 5.0-dev branch.

Discussion
----------

[DoctrineBridge] Removed legacy code related to DoctrineChoiceLoader

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

Ref: https://github.com/symfony/symfony/pull/30966 and https://github.com/symfony/symfony/pull/30962

Commits
-------

4616e54c55 Removed legacy code related to DoctrineChoiceLoader
2019-06-06 09:10:36 +02:00