Commit Graph

35998 Commits

Author SHA1 Message Date
Nicolas Grekas
0b86145f0b Merge branch '2.8' into 3.4
* 2.8:
  [appveyor] Workaround GitHub disabling of low versions of TLS
  [Routing] Don't throw 405 when scheme requirement doesn't match
  [Routing] Revert throwing 405 on missed slash/scheme redirections
  Fix ArrayInput::toString() for InputArgument::IS_ARRAY args
  [Routing] fix CS
2018-02-26 16:46:28 +01:00
Nicolas Grekas
19d6b592f4 Merge branch '2.7' into 2.8
* 2.7:
  [appveyor] Workaround GitHub disabling of low versions of TLS
  [Routing] Don't throw 405 when scheme requirement doesn't match
  [Routing] Revert throwing 405 on missed slash/scheme redirections
  Fix ArrayInput::toString() for InputArgument::IS_ARRAY args
  [Routing] fix CS
2018-02-26 16:33:21 +01:00
Nicolas Grekas
4f14fff13b bug #26312 [Routing] Don't throw 405 when scheme requirement doesn't match (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Routing] Don't throw 405 when scheme requirement doesn't match

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

Commits
-------

9d70ef0 [Routing] Don't throw 405 when scheme requirement doesn't match
2018-02-26 16:07:55 +01:00
Nicolas Grekas
0acbf2b68c minor #26320 [appveyor] Workaround GitHub disabling of low versions of TLS (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[appveyor] Workaround GitHub disabling of low versions of TLS

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

Commits
-------

04b56d6 [appveyor] Workaround GitHub disabling of low versions of TLS
2018-02-26 16:07:09 +01:00
Nicolas Grekas
04b56d6ddf [appveyor] Workaround GitHub disabling of low versions of TLS 2018-02-26 16:04:10 +01:00
Nicolas Grekas
ffb0a7a360 minor #26319 Use long array syntax (ro0NL)
This PR was merged into the 3.4 branch.

Discussion
----------

Use long array syntax

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| 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 -->

<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
 - Bug fixes must be submitted against the lowest 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 the master branch.
-->

Commits
-------

2abb8a4 Use long array syntax
2018-02-26 15:40:03 +01:00
Roland Franssen
2abb8a4fd1 Use long array syntax 2018-02-26 15:27:04 +01:00
Nicolas Grekas
239f2e21e5 [Routing] Fix GC control of PHP-DSL 2018-02-26 14:41:42 +01:00
Fabien Potencier
52af59fd48 bug #26275 Set controller without __invoke method from invokable class (Tobion)
This PR was merged into the 3.4 branch.

Discussion
----------

Set controller without __invoke method from invokable class

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

Fixes one part of #25103

Commits
-------

cc68c5074e Set controller without __invoke method from invokable class
2018-02-26 05:28:34 +01:00
Nicolas Grekas
9d70ef0915 [Routing] Don't throw 405 when scheme requirement doesn't match 2018-02-25 22:38:00 +01:00
Tobias Schultze
d8395f5035 minor #26307 [Routing] Revert throwing 405 on missed slash/scheme redirections (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Routing] Revert throwing 405 on missed slash/scheme redirections

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

This partially reverts an unreleased behavior: throwing a 405 when a non-safe verb prevents a slash/scheme redirection.
While this was correct, we are removing it from master to remove some complexity from the implementation of dumped router.
Better not make anyone rely on such nitpicking details that have little to no use in practice.

Commits
-------

391b01393d [Routing] Revert throwing 405 on missed slash/scheme redirections
2018-02-25 16:23:11 +01:00
Tobias Schultze
cd5f4105a4 minor #26280 [FrameworkBundle] clarify changelog and upgrade instructions (xabbuh)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[FrameworkBundle] clarify changelog and upgrade instructions

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

Commits
-------

a8df0aee92 clarify changelog and upgrade instructions
2018-02-25 16:08:35 +01:00
Fabien Potencier
84fd602f3f minor #26303 [WebProfilerBundle] fix test after ajax path updated (Simperfit)
This PR was merged into the 3.4 branch.

Discussion
----------

[WebProfilerBundle] fix test after ajax path updated

| 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 files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

Fixing the WebProfilerBundle test after the merge in 3.4.

Commits
-------

77dfc90846 [WebProfilerBundle] fix test after ajax path updated
2018-02-25 13:55:15 +01:00
Nicolas Grekas
391b01393d [Routing] Revert throwing 405 on missed slash/scheme redirections 2018-02-25 09:34:03 +01:00
Amrouche Hamza
efd8f7fa3a
[FrameworkBundle] [Console] add a warning when command is not found 2018-02-25 09:26:30 +01:00
Robin Chalas
25f3eb5cdd bug #26298 Fix ArrayInput::toString() for InputArgument::IS_ARRAY args (maximium)
This PR was merged into the 2.7 branch.

Discussion
----------

Fix ArrayInput::toString() for InputArgument::IS_ARRAY args

| Q             | A
| ------------- | ---
| Branch?       | 2.7 up to 4.0
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Fix ArrayInput::toString() method to eliminate 'Array to string conversion' notice and get right string representation of InputArgument::IS_ARRAY argument. It need to be fixed in all branches up to master.

Commits
-------

f371fd8 Fix ArrayInput::toString() for InputArgument::IS_ARRAY args
2018-02-24 21:25:11 +01:00
Amrouche Hamza
77dfc90846
[WebProfilerBundle] fix test after ajax path updated 2018-02-24 20:41:23 +01:00
Tobias Schultze
be1a3b4380 feature #26283 [Routing] Redirect from trailing slash to no-slash when possible (nicolas-grekas)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[Routing] Redirect from trailing slash to no-slash when possible

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

Implemented as suggest by @Tobion in https://github.com/symfony/symfony/pull/26059#issuecomment-365071281

When a route for `/foo` exists but the request is for `/foo/`, we now redirect.
(this complements the flipped side redirection, which already exists.)

Commits
-------

69a4e94130 [Routing] Redirect from trailing slash to no-slash when possible
2018-02-24 18:49:49 +01:00
Maxim Lovchikov
f371fd8ced Fix ArrayInput::toString() for InputArgument::IS_ARRAY args 2018-02-24 16:59:02 +00:00
Fabien Potencier
51c20fc8c5 bug #26177 Update excluded_ajax_paths for sf4 (jenaye)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #26177).

Discussion
----------

Update excluded_ajax_paths for sf4

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

This PR update `excluded_ajax_paths` from `vendor/symfony/web-profiler-bundle/DependencyInjection/Configuration.php` because
there is no  neither `app.php` nor `app_dev.php` in symfony 4
We also need update this [Documentation](https://symfony.com/doc/current/reference/configuration/web_profiler.html)

Commits
-------

ce01097935 Update excluded_ajax_paths for sf4
2018-02-24 12:15:04 +01:00
Houziaux mike
ce01097935 Update excluded_ajax_paths for sf4 2018-02-24 12:14:39 +01:00
Tobias Schultze
dc56a83e31 minor #26285 [FrameworkBundle] fix lowest supported Serializer version (xabbuh)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[FrameworkBundle] fix lowest supported Serializer version

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

The `AbstractObjectNormalizer::setMaxDepthHandler()` method does not
exist before `symfony/serializer` 4.1.

Commits
-------

3b092a08ea fix lowest supported Serializer version
2018-02-24 03:18:53 +01:00
Robin Chalas
1c1ea5c491 bug #26289 [Security] Add missing use of Role (tony-tran)
This PR was merged into the 4.0 branch.

Discussion
----------

[Security] Add missing use of Role

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

Same as [here](https://github.com/symfony/symfony/pull/26286) but this time for 4.0

Commits
-------

3cfe7d0 Add missing use of Role
2018-02-23 16:53:28 +01:00
Robin Chalas
4271fecbea bug #26286 [Security] Add missing use for RoleInterface (tony-tran)
This PR was submitted for the 3.3 branch but it was merged into the 3.4 branch instead (closes #26286).

Discussion
----------

[Security] Add missing use for RoleInterface

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

Just a missing `use ...\RoleInterface` in the `UsernamePasswordToken` since 3.3.

Commits
-------

05359f3 Add missing use for RoleInterface
2018-02-23 16:50:25 +01:00
Tony Tran
05359f310f Add missing use for RoleInterface 2018-02-23 16:50:25 +01:00
Tony Tran
3cfe7d0ee3 Add missing use of Role 2018-02-23 15:40:28 +01:00
Nicolas Grekas
9587d04520 [Routing] fix CS 2018-02-23 15:02:47 +01:00
Robin Chalas
7be0ccccce minor #26282 [Console] fix console test (Simperfit)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[Console] fix console test

| Q             | A
| ------------- | ---
| Branch?       | master
| 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 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

It seems that tests are broken due to missing spaces.

Commits
-------

965e472 [Console] fix console test
2018-02-23 14:31:05 +01:00
Amrouche Hamza
965e472acb
[Console] fix console test 2018-02-23 14:20:15 +01:00
Christian Flothmann
3b092a08ea fix lowest supported Serializer version
The `AbstractObjectNormalizer::setMaxDepthHandler()` method does not
exist before `symfony/serializer` 4.1.
2018-02-23 14:04:00 +01:00
Nicolas Grekas
69a4e94130 [Routing] Redirect from trailing slash to no-slash when possible 2018-02-23 13:28:39 +01:00
Fabien Potencier
5311009a29 minor #26278 add container.autowiring.strict_mode to 3.4 docs (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

add container.autowiring.strict_mode to 3.4 docs

| 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        |

#26251 was a nice step, but IMO we need to add some docs to the 3.4 upgrade docs too as this is where people are probably looking first.

Commits
-------

4d973c2676 add container.autowiring.strict_mode to 3.4 docs
2018-02-23 11:42:12 +01:00
Fabien Potencier
f48ed85d9d minor #26274 [VarDumper] Fixed PHPDoc (lyrixx)
This PR was merged into the 3.4 branch.

Discussion
----------

[VarDumper] Fixed PHPDoc

| 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
-------

38ad82566a [VarDumper] Fixed PHPDoc
2018-02-23 10:06:40 +01:00
Christian Flothmann
c12c07865a fix markdown syntax 2018-02-23 09:25:41 +01:00
Christian Flothmann
a8df0aee92 clarify changelog and upgrade instructions 2018-02-23 09:21:43 +01:00
Christian Flothmann
4d973c2676 add container.autowiring.strict_mode to 3.4 docs 2018-02-23 09:15:10 +01:00
Tobias Schultze
cc68c5074e Set controller without __invoke method from invokable class 2018-02-23 00:30:18 +01:00
Grégoire Pineau
38ad82566a [VarDumper] Fixed PHPDoc 2018-02-22 18:29:24 +01:00
Nicolas Grekas
a38cbd08ce Merge branch '4.0'
* 4.0:
  [travis] fix libsodium install
2018-02-22 15:57:47 +01:00
Nicolas Grekas
c3afab9245 Merge branch '3.4' into 4.0
* 3.4:
  [travis] fix libsodium install
2018-02-22 15:57:28 +01:00
Nicolas Grekas
952786af26 [travis] fix libsodium install 2018-02-22 15:57:11 +01:00
Amrouche Hamza
33bace44d4
[WebProfilerBundle] limit ajax request to 100 and remove the last one 2018-02-22 15:11:08 +01:00
Nicolas Grekas
672097fd51 Merge branch '4.0'
* 4.0:
  fix merge
  [travis] cache in ~/php-ext/
2018-02-22 14:01:56 +01:00
Nicolas Grekas
73c2ea8d19 Merge branch '3.4' into 4.0
* 3.4:
  fix merge
  [travis] cache in ~/php-ext/
2018-02-22 14:01:32 +01:00
Nicolas Grekas
8f1ca2b3e4 fix merge 2018-02-22 14:01:17 +01:00
Nicolas Grekas
084a5bcc3b Merge branch '2.8' into 3.4
* 2.8:
  [travis] cache in ~/php-ext/
2018-02-22 14:00:34 +01:00
Nicolas Grekas
613697c47a Merge branch '2.7' into 2.8
* 2.7:
  [travis] cache in ~/php-ext/
2018-02-22 14:00:21 +01:00
Nicolas Grekas
0f1cae864b [travis] cache in ~/php-ext/ 2018-02-22 13:59:51 +01:00
Nicolas Grekas
8782f81eb2 Merge branch '4.0'
* 4.0:
  [travis] fix passing $INI to tpecl()
  Sync UPGRADE-3.0.md with 3.4
2018-02-22 13:53:45 +01:00
Nicolas Grekas
a1fa96dbac Merge branch '3.4' into 4.0
* 3.4:
  [travis] fix passing $INI to tpecl()
  Sync UPGRADE-3.0.md with 3.4
2018-02-22 13:53:36 +01:00