Commit Graph

34254 Commits

Author SHA1 Message Date
Nicolas Grekas
a8afcba005 bug #25027 [FrameworkBundle] Hide server:log command based on deps (sroze)
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Hide server:log command based on deps

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

Remove the `server:log` command if monolog is not installed.

Commits
-------

b505ac7 Remove the `server:log` command if monolog is not loaded
2017-11-19 19:19:46 +02:00
Nicolas Grekas
0577d20ade [Bridge\PhpUnit] Disable broken auto-require mechanism of phpunit 2017-11-19 19:07:02 +02:00
Robin Chalas
a03513a25b minor #25031 [DI] Remove scalar typehint in class used in test case (ogizanagi)
This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Remove scalar typehint in class used in test case

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see comment below -->
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

Should fix 5.x builds: https://travis-ci.org/symfony/symfony/jobs/304298433#L3054

Commits
-------

5be25d5 [DI] Remove scalar typehint in class used in test case
2017-11-19 17:30:14 +01:00
Robin Chalas
6787d8e5ab [Console] Fix disabling lazy commands 2017-11-19 17:18:18 +01:00
Roland Franssen
f8e7478583 [FrameworkBundle] Dont create empty bundles directory 2017-11-19 16:46:18 +01:00
Maxime Steinhausser
5be25d55fd [DI] Remove scalar typehint in class used in test case 2017-11-19 14:43:05 +01:00
Samuel ROZE
b505ac7aec
Remove the server:log command if monolog is not loaded 2017-11-19 12:03:38 +02:00
Anton Bakai
9da7c5046a removed checks for absolute paths 2017-11-19 00:56:10 +02:00
Amrouche Hamza
62d933d00c
[HttpKernel] add type-hint for the requestType 2017-11-18 15:36:30 +02:00
Fabien Potencier
86986b41b0 minor #24969 Replace array|\Traversable by iterable (ro0NL)
This PR was merged into the 2.7 branch.

Discussion
----------

Replace array|\Traversable by iterable

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| 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#... <!--highly recommended for new features-->

Replace `array|\Traversable` by `iterable`, favoring pure API (or less mixed at least :)) and be clear whenever phpdoc is replaced.

https://secure.php.net/manual/en/language.types.iterable.php

Commits
-------

278088931b Replace array|\Traversable by iterable
2017-11-18 09:48:31 +02:00
Fabien Potencier
9447016979 minor #25008 [Console] Remove remaining dead code (chalasr)
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] Remove remaining dead code

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

Since they are always re-thrown, no need to catch `\Error` instances at all.

Commits
-------

3822c07f65 [Console] Remove remaining dead code
2017-11-18 09:40:15 +02:00
Fabien Potencier
c247717a9f minor #25009 [SecurityBundle] Fix syntax error in test (chalasr)
This PR was merged into the 2.7 branch.

Discussion
----------

[SecurityBundle] Fix syntax error in test

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

Should make appveyor green.

Commits
-------

20f9b75857 [SecurityBundle] Fix syntax error in test
2017-11-18 09:38:33 +02:00
Tobias Schultze
8eb97f5c48 minor #24961 [Console] remove debug dependency that was dead code (Tobion)
This PR was merged into the 4.0-dev branch.

Discussion
----------

[Console] remove debug dependency that was dead code

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

Commits
-------

453e7996ab [Console] remove debug dependency that was dead code
2017-11-17 16:56:02 +01:00
Tobias Schultze
453e7996ab [Console] remove debug dependency that was dead code 2017-11-17 16:43:27 +01:00
Christophe Coevoet
8d7f6ede84 bug #24991 [DependencyInjection] Single typed argument can be applied on multiple parameters (nicolas-grekas, sroze)
This PR was merged into the 3.4 branch.

Discussion
----------

[DependencyInjection] Single typed argument can be applied on multiple parameters

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

I'm @nicolas-grekas' test writer today. This makes the argument resolution working when injecting the same type multiple times (sub-set of PR #24978)

Commits
-------

d51265447d Test that named arguments are prioritized over typehinted
bf7eeef3fb Prove that change is working with tests
2176be74d8 [DI] Fix by-type args injection
2017-11-17 15:27:47 +01:00
Robin Chalas
20f9b75857 [SecurityBundle] Fix syntax error in test 2017-11-17 15:26:00 +01:00
Christophe Coevoet
2f19ddbd47 bug #24983 [Validator] enter the context in which to validate (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] enter the context in which to validate

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

Commits
-------

7359cbe063 [Validator] enter the context in which to validate
2017-11-17 15:23:59 +01:00
Christophe Coevoet
11d79cbb12 bug #24956 Fix ambiguous pattern (weltling)
This PR was merged into the 2.7 branch.

Discussion
----------

Fix ambiguous pattern

[Validator][Constraints][UrlValidator] Fix domain name pattern.

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

`\pS` is a unicode character class, `\pS-\.` pretends to be a range which is not. This pattern fails with PCRE2.

Thanks.

Commits
-------

059f59a106 Fix ambiguous pattern
2017-11-17 14:57:47 +01:00
Robin Chalas
3822c07f65 [Console] Remove remaining dead code 2017-11-17 13:59:02 +01:00
Nicolas Grekas
5766e1dc93 bug #24732 [DependencyInjection] Prevent service:method factory notation in PHP config (vudaltsov)
This PR was merged into the 3.4 branch.

Discussion
----------

[DependencyInjection] Prevent service:method factory notation in PHP config

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

Started working on fixing #24704.

@nicolas-grekas, am I on the right way? If yes I will look at the tests and try to add this case.

Commits
-------

49fc677 Throw on service:method factory notation in PHP-based DI configuration
2017-11-17 11:59:25 +02:00
Valentin
49fc6778ee Throw on service:method factory notation in PHP-based DI configuration 2017-11-17 12:52:23 +03:00
Samuel ROZE
d51265447d
Test that named arguments are prioritized over typehinted 2017-11-17 10:42:21 +02:00
Fabien Potencier
3b6c22e86a bumped Symfony version to 3.3.14 2017-11-17 07:39:26 +01:00
Fabien Potencier
58352f2f02 bumped Symfony version to 2.8.32 2017-11-17 07:34:32 +01:00
Fabien Potencier
c963178206 bumped Symfony version to 2.7.39 2017-11-17 07:26:23 +01:00
Samuel ROZE
bf7eeef3fb
Prove that change is working with tests 2017-11-17 01:07:36 +02:00
Nicolas Grekas
4fadbcdc58 bug #24979 [HttpKernel] remove services resetter even when it's an alias (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[HttpKernel] remove services resetter even when it's an alias

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

All the other places in the compiler pass do not care whether the
resetter service is aliased or not. Let's just also properly deal with
the case that the services resetter service was aliased by another
bundle.

Commits
-------

f7e634b remove services resetter even when it's an alias
2017-11-16 23:50:23 +02:00
Nicolas Grekas
a2f8c32bd3 bug #24972 [HttpKernel] Fix service arg resolver for controllers as array callables (sroze, nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

[HttpKernel] Fix service arg resolver for controllers as array callables

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

Replacing #24970 as I can't push tests directly to @nicolas-grekas' PR.

> As spotted today during a Symfony 4 workshop at SymfonyCon Cluj, setting a controller as an array [SomeController::class, 'helloAction'] works, it is defined as a service, BUT the actions don't get the services as arguments. This is fixing it.

Commits
-------

fc3d3bb [HttpKernel] Fix service arg resolver for controllers as array callables
a9e9f36 Add service value resolver tests Prove that the service value resolver will not work with the array notation
2017-11-16 23:41:27 +02:00
Nicolas Grekas
3398c4b881 bug #24971 [FrameworkBundle] Empty event dispatcher earlier in CacheClearCommand (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] Empty event dispatcher earlier in CacheClearCommand

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

Once the cache folder is emptied, the event dispatcher cannot be used because service factories are gone. This currently fails very badly when an error is dispatched, but the error listeners are themselves failing to be loaded for this reason.

Commits
-------

a961392 [FrameworkBundle] Empty event dispatcher earlier in CacheClearCommand
2017-11-16 23:39:45 +02:00
Fabien Potencier
9b02263407
Merge pull request #25002 from fabpot/release-3.3.13
released v3.3.13
2017-11-16 19:15:01 +01:00
Fabien Potencier
c41da93c91 updated VERSION for 3.3.13 2017-11-16 19:14:43 +01:00
Fabien Potencier
cf140018b2 updated CHANGELOG for 3.3.13 2017-11-16 19:14:38 +01:00
Fabien Potencier
fa9fa59d7b
Merge pull request #25000 from fabpot/release-2.8.31
released v2.8.31
2017-11-16 18:44:10 +01:00
Fabien Potencier
762b8d85f3 updated VERSION for 2.8.31 2017-11-16 18:43:55 +01:00
Fabien Potencier
b2febb4688 updated CHANGELOG for 2.8.31 2017-11-16 18:43:51 +01:00
Nicolas Grekas
3fc2d1c4bf Merge branch '3.4'
* 3.4:
  fix merge
2017-11-16 18:57:03 +02:00
Nicolas Grekas
e70c1f8d1a Merge branch '3.3' into 3.4
* 3.3:
  fix merge
2017-11-16 18:56:55 +02:00
Nicolas Grekas
64225778e6 fix merge 2017-11-16 18:56:40 +02:00
Nicolas Grekas
76ceccbb71 Merge branch '3.4'
* 3.4:
  fix deps=low (bis)
2017-11-16 18:34:21 +02:00
Nicolas Grekas
154e05fb6e Merge branch '3.3' into 3.4
* 3.3:
  fix deps=low (bis)
2017-11-16 18:34:02 +02:00
Nicolas Grekas
45a0cd93fc fix deps=low (bis) 2017-11-16 18:31:29 +02:00
Fabien Potencier
b95964ae88
Merge pull request #24997 from fabpot/release-2.7.38
released v2.7.38
2017-11-16 17:26:07 +01:00
Fabien Potencier
330c5e5577 updated VERSION for 2.7.38 2017-11-16 17:24:22 +01:00
Fabien Potencier
ddffd6163f updated CHANGELOG for 2.7.38 2017-11-16 17:24:08 +01:00
Nicolas Grekas
d97c1779c1 Merge branch '3.4'
* 3.4:
  fix deps=low
2017-11-16 18:23:39 +02:00
Nicolas Grekas
c5595a1f11 Merge branch '3.3' into 3.4
* 3.3:
  fix deps=low
2017-11-16 18:19:19 +02:00
Nicolas Grekas
e4f00cc6be Merge branch '2.8' into 3.3
* 2.8:
  fix deps=low
2017-11-16 18:14:18 +02:00
Nicolas Grekas
1c026e0a5b Merge branch '2.7' into 2.8
* 2.7:
  fix deps=low
2017-11-16 18:08:43 +02:00
Nicolas Grekas
7993ce57a4 fix deps=low 2017-11-16 17:51:27 +02:00
Nicolas Grekas
595a5b947f Merge branch '3.4'
* 3.4:
  fixed CS
  fixed CS
  [Security] Namespace generated CSRF tokens depending of the current scheme
  ensure that submitted data are uploaded files
  [Console] remove dead code
  bumped Symfony version to 3.3.13
  updated VERSION for 3.3.12
  updated CHANGELOG for 3.3.12
  bumped Symfony version to 2.8.31
  updated VERSION for 2.8.30
  updated CHANGELOG for 2.8.30
  bumped Symfony version to 2.7.38
  updated VERSION for 2.7.37
  updated CHANGELOG for 2.7.37
  [Security] Validate redirect targets using the session cookie domain
  prevent bundle readers from breaking out of paths
2017-11-16 17:25:49 +02:00