Commit Graph

734 Commits

Author SHA1 Message Date
Nicolas Grekas 7c5dafe88b Merge branch '5.4' into 6.0
* 5.4:
  fix merge
  [HttpClient] mark test transient
  [Mime] Fix test
  [Translation] Fix TranslationPullCommand with ICU translations
  [PropertyInfo] Fix phpstan extractor issues
  Allow package-versions-deprecated plugin
  Update security.lb.xlf
  [Notifier] Use correct factory for the msteams transport
  Fix SessionListener without session in request
  Remove direct dependency on composer/package-versions-deprecated
  Remove the unused dependency on composer/package-versions-deprecated
  [Security/Http] Fix cookie clearing on logout
  [HttpClient] fix checking for recent curl consts
2021-12-25 21:10:03 +01:00
Nicolas Grekas e190153d30 Merge branch '5.3' into 5.4
* 5.3:
  [HttpClient] mark test transient
  [Mime] Fix test
  [Translation] Fix TranslationPullCommand with ICU translations
  Allow package-versions-deprecated plugin
  Update security.lb.xlf
  [Notifier] Use correct factory for the msteams transport
  Fix SessionListener without session in request
  Remove direct dependency on composer/package-versions-deprecated
  Remove the unused dependency on composer/package-versions-deprecated
  [Security/Http] Fix cookie clearing on logout
  [HttpClient] fix checking for recent curl consts
2021-12-25 20:45:36 +01:00
Nicolas Grekas 83e138f494 Merge branch '4.4' into 5.3
* 4.4:
  [HttpClient] mark test transient
  [Mime] Fix test
  Allow package-versions-deprecated plugin
  Update security.lb.xlf
2021-12-25 20:43:47 +01:00
Alexander M. Turek 042c60086a Allow package-versions-deprecated plugin 2021-12-24 00:01:05 +01:00
Christophe Coevoet c106a6b0d1 Remove direct dependency on composer/package-versions-deprecated
This dependency in the doctrine-bridge was added to enforce the
replacement of the ocramius/package-versions package used by the ORM, to
keep support for PHP versions we needed. But as of 2.7.4, the ORM
switched its dependency, so this is not necessary anymore.
2021-12-22 19:38:25 +01:00
Nicolas Grekas 446686ab06 Merge branch '5.3' into 5.4
* 5.3:
  [HttpClient] Fix closing curl-multi handle too early on destruct
  [PropertyInfo] fix precedence of __get() vs properties
  [Form] Improve Persian (Farsi) Translation For Forms
  [Uid] Add ulid keyword in composer.json
  fix: lowest version of psr container supported
  [HttpClient] Don't reset timeout counter when initializing requests
2021-12-13 18:47:48 +01:00
Maxime Veber b7644bd2aa
fix: lowest version of psr container supported 2021-12-13 09:11:41 +01:00
Alexander M. Turek 042fa9ff25 Merge branch '5.4' into 6.0
* 5.4: (27 commits)
  feat: add completion for DebugAutowiring search argument
  [Routing] Add support for aliasing routes
  [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait`
  Fix CS
  [Console] Open CompleteCommand for custom outputs
  [Intl] Update the ICU data to 70.1
  [Messenger] Add completion for failed messages commands.
  Fix tests
  Fixing missing full_stack variable that's needed by toolbar.html.twig
  [PropertyInfo] Bump phpstan/phpdoc-parser
  [Security] Backport type fixes
  [VarExporter] escape unicode chars involved in directionality
  [Framework] Add completion to debug:container
  [Messenger] Add completion to command messenger:consume
  [Intl] Update the ICU data to 70.1
  Fix more generic types
  Default access_decision_manager.strategy option with merge.
  Fix typos
  Update validators.ca.xlf
  Add missing Validator translations for Estonian
  ...

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-11-04 18:14:40 +01:00
Alexander M. Turek 3bf6c543e2 [PropertyInfo] Drop support for old PHPDoc parser versions
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-11-03 18:23:28 +01:00
Alexander M. Turek ca4b8a4358 [PropertyInfo] Bump phpstan/phpdoc-parser
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-11-03 15:56:25 +01:00
Alexander M. Turek 47e27e27c2 Merge branch '5.4' into 6.0
* 5.4:
  [FrameworkBundle][HttpKernel] Add the ability to enable the profiler using a parameter
  [FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call
  Add PhpStanExtractor
  [Messenger] allow processing messages in batches
  [Console] Fix backslash escaping in bash completion
  Add missing validators translation
  add suggestions for debug:firewall, debug:form, debug:messenger, debug:router
  [SecurityBundle] Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider
  [Inflector] Fix inflector for "zombies"
  [Config] Add some cache on SelfCheckingResourceChecker
  fix AJAX request unit spacing
  fix ErrorExcception in CacheWarmerAggregate
  Prevent FormLoginAuthenticator from responding to requests that should be handled by JsonLoginAuthenticator
  Fix wait duration for fixed window policy
  Add exact command used to trigger invocation to the completion debug log
  [Translation] correctly handle intl domains with TargetOperation
  Allow using param as connection atribute in `*.event_subscriber` and `*.event_listener` tags
2021-10-30 15:06:51 +02:00
Fabien Potencier 5745b430b4 feature #40457 [PropertyInfo] Add `PhpStanExtractor` (Korbeil)
This PR was merged into the 5.4 branch.

Discussion
----------

[PropertyInfo] Add `PhpStanExtractor`

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

This PR will add a PhpStanExtractor that is based on `phpstan/phpdoc-parser` library.
The PhpStan library allows us to manage union types in collection key values that we don't manage today.

### Todo
- [x] PhpStanExtractor
- [x] Add tests for unions types
- [x] Add FrameworkBundle glue (use this extractor if `phpstan/phpdoc-parser` is present)
- [x] Update CHANGELOG

Related PR:
- https://github.com/symfony/serializer-pack/pull/3 put the PhpStanExtractor as default extractor to use on the `serializer-pack` package.

Commits
-------

9931c3705d Add PhpStanExtractor
2021-10-30 11:35:35 +02:00
Baptiste Leduc 9931c3705d Add PhpStanExtractor 2021-10-30 11:35:29 +02:00
Fabien Potencier 0865ede0b8 feature #43788 [DependencyInjection][FrameworkBundle][SecurityBundle][TwigBundle] Require Composer's runtime API to be present (derrabus)
This PR was merged into the 6.0 branch.

Discussion
----------

[DependencyInjection][FrameworkBundle][SecurityBundle][TwigBundle] Require Composer's runtime API to be present

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

Recently, I was asked to help debugging a strange behavior of my client's app that surfaced only on some developer machines while others were fine. Turns out, a particular package was installed as a dev dependency (which was fine because we used it for dev tooling only at that time) and the difference between the environments was that the broken ones used Composer 2.

With `ContainerBuilder::willBeAvailable()`, we have introduced logic into the very heart of the framework that exposes significantly different behavior for Composer 1 and 2.

With this PR, I'd like to propose to make Composer's runtime API a requirement, essentially making the use of Composer 2 a requirement. Composer 2 has been released over a year ago and by now every developer should have been able to upgrade to version 2. I don't think that this constraint would push the ecosystem too hard.

Let's make everyone's lives easier by moving on to Composer 2.

Commits
-------

e08b36258b Require Composer's runtime API to be present
2021-10-30 10:48:16 +02:00
Nicolas Grekas b8133478f0 Merge branch '5.4' into 6.0
* 5.4:
  [Runtime] Consider also $_ENV when resolving APP_RUNTIME and APP_RUNTIME_OPTIONS
  [WebProfilerBundle] Add a "previews tab in mailer profiler for HTML email
  [Config] Fix signature generation with nested attributes on PHP 8.1
  [Cache] allow/provide psr/simple-cache v2
  [Validator] Add missing translations for Slovenian (sl)
  Add missing translations for Bosnian (bs)
  Bump Symfony version to 4.4.34
  Update VERSION for 4.4.33
  Update CONTRIBUTORS for 4.4.33
  Update CHANGELOG for 4.4.33
2021-10-29 18:14:07 +02:00
Nicolas Grekas 52c05a5fb6 Merge branch '5.3' into 5.4
* 5.3:
  [Runtime] Consider also $_ENV when resolving APP_RUNTIME and APP_RUNTIME_OPTIONS
  [Config] Fix signature generation with nested attributes on PHP 8.1
  [Cache] allow/provide psr/simple-cache v2
  [Validator] Add missing translations for Slovenian (sl)
  Add missing translations for Bosnian (bs)
  Bump Symfony version to 4.4.34
  Update VERSION for 4.4.33
  Update CONTRIBUTORS for 4.4.33
  Update CHANGELOG for 4.4.33
2021-10-29 18:09:06 +02:00
Nicolas Grekas 41336d9da8 Merge branch '4.4' into 5.3
* 4.4:
  [Config] Fix signature generation with nested attributes on PHP 8.1
  [Cache] allow/provide psr/simple-cache v2
  [Validator] Add missing translations for Slovenian (sl)
  Add missing translations for Bosnian (bs)
  Bump Symfony version to 4.4.34
  Update VERSION for 4.4.33
  Update CONTRIBUTORS for 4.4.33
  Update CHANGELOG for 4.4.33
2021-10-29 18:05:40 +02:00
Nicolas Grekas d511251a67 [Cache] allow/provide psr/simple-cache v2 2021-10-29 16:40:02 +02:00
Alexander M. Turek e08b36258b
Require Composer's runtime API to be present 2021-10-29 14:44:32 +02:00
Alexander M. Turek 453b06f11b Merge branch '5.4' into 6.0
* 5.4: (35 commits)
  fix: Improve FR validators translation
  [Notifier] Add push channel to notifier
  Fix CS
  [Lock] Split PdoStore into DoctrineDbalStore
  [Cache] Split PdoAdapter into DoctrineDbalAdapter
  Add swedish translation for issue #43458
  [HttpClient] fix collecting debug info on destruction of CurlResponse
  Fix CS
  added missing thai translations
  Add missing translations for Chinese (zh_TW)
  [DependencyInjection] fix "url" env var processor
  update translation
  [Serializer] symfony#36594 attributes cache breaks normalization
  Remove untranslated translation for Afrikaans
  [Validator] Add missing validator polish translation
  [Security,Validator] Added missing Latvian translations #41053
  Add the missing translations for Indonesian (id)
  [Validator] Add missing Lithuanian translation
  [Validator] Add missing Czech translation
  replace "ispravna" with "važeća" in translating "valid HTML/CSS"
  ...
2021-10-19 11:55:41 +02:00
Jérôme TAMARELLE db665be5a4 [Cache] Split PdoAdapter into DoctrineDbalAdapter 2021-10-19 08:47:09 +02:00
Alexander M. Turek f3d199d798 Merge branch '5.4' into 6.0
* 5.4:
  fix SQLSRV throws for method_exists()
  [HttpKernel] Add basic support for language negotiation
  [Messenger] Add a middleware to log when transaction has been left open
  [HttpClient] Add method to set response factory in mock client
  Move array_merge calls out of loops to improve performance
  Remove references to DBALException
  [VarDumper] Fix handling of "new" in initializers on PHP 8.1
2021-10-05 23:23:30 +02:00
Alexander M. Turek bcb6e967b8
Remove references to DBALException 2021-10-04 16:45:55 +02:00
Nicolas Grekas d84ac13495 [HttpClient] fix low-deps 2021-09-30 17:00:15 +02:00
Nicolas Grekas 7fa11cf974 [WebLink] allow psr/link v2 2021-09-24 16:11:41 +02:00
Alexander M. Turek 0895c361a9 Merge branch '5.4' into 6.0
* 5.4:
  [Serializer] Save missing arguments in MissingConstructorArgumentsException
  remove support for deprecated "threadKey" parameter
  Remove useless comment in test
  [DomCrawler] Added Crawler::innerText() method
  [Form] Add the EnumType
  Fix iterrator in ServiceConfigurator
  [Console] Add support of RGB functional notation for output colors
  Add Slovak lang translation #41081
  [Validator] Add error's uid to `Count` and `Length` constraints with "exactly" option enabled
  [Validator] Add missing thai translation
  [Yaml] Add 0 to float repr
  [Translation] Add Burmese translation
  [Notifier] Update FirebaseTransport.php
  fix: #43086 remove shortcut e for option exclude of Yaml/LintCommand - solve conflict with --env -e
  Map `multipart/form-data` as `form` Content-Type
  [Serializer] Throw NotNormalizableValueException when type is not known or not in body in discriminator map
  [Yaml] Use more concise float representation in dump
  [FrameworkBundle] Remove translation data_collector BEFORE adding it to profiler
2021-09-21 22:58:13 +02:00
Alexander M. Turek c6edc34bb7 [Form] Add the EnumType
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-09-21 08:24:56 +02:00
Alexander M. Turek 945fbe7e4d Remove remaining support for Doctrine Cache
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-09-13 19:17:41 +02:00
Alexander M. Turek f89fab122f Merge branch '5.4' into 6.0
* 5.4:
  Add Session Token to Amazon Mailer
  [ErrorHandler] Update TentativeTypes
  Prepare removing Doctrine Cache from remaining components
  [ErrorHandler] Add helper script to patch type declarations
  [Messenger] Do not reset services on WorkerRunningEvent anymore
  [Messenger] Add back kernel.event_subscriber tag on StopWorkerOnCustomStopExceptionListener
  Display the roles of the logged-in user in the Web Debug Toolbar -- bugfix
2021-09-13 18:51:44 +02:00
Alexander M. Turek a061fc4a3d Prepare removing Doctrine Cache from remaining components
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-09-13 11:56:16 +02:00
Alexander M. Turek 3ce1f76fbc Fix tests failing with DBAL 3 2021-09-01 14:46:02 +02:00
Alexander M. Turek 038ff397a6 Merge branch '5.4' into 6.0
* 5.4: (33 commits)
  [HttpFoundation] Fixed type mismatch
  Bump Symfony version to 5.3.6
  Update VERSION for 5.3.5
  Update CHANGELOG for 5.3.5
  Update VERSION for 5.2.13
  Update CHANGELOG for 5.2.13
  Bump Symfony version to 4.4.29
  Update VERSION for 4.4.28
  Update CHANGELOG for 4.4.28
  fix Check if it has session before getSession()
  [WebProfiler] "empty" filter bugfix. Filter with name "empty" is not exists in twig.
  Bump Symfony version to 5.3.5
  Update VERSION for 5.3.4
  Update CHANGELOG for 5.3.4
  Bump Symfony version to 4.4.28
  Update VERSION for 4.4.27
  Update CONTRIBUTORS for 4.4.27
  Update CHANGELOG for 4.4.27
  Update VERSION for 5.2.12
  Update CHANGELOG for 5.2.12
  ...
2021-07-27 19:20:39 +02:00
Fabien Potencier ccd3a15b9a feature #39141 [Notifier] Add Amazon SNS bridge (adrien-chinour)
This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[Notifier] Add Amazon SNS bridge

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | [symfony/symfony-docs#15486](https://github.com/symfony/symfony-docs/pull/15486)
| Recipe PR     | symfony/recipes#847

Hi,

This PR add a bridge on Notifier component for Amazon SNS.

This bridge use `async-aws/sns` and only work on actual dev-master version of `asyc-aws/core`.

I'm working on recipe and doc PR.

Commits
-------

3dc6ad4b73 [Notifier] Add Amazon SNS bridge
2021-07-25 17:14:44 +02:00
Adrien Chinour 3dc6ad4b73 [Notifier] Add Amazon SNS bridge 2021-07-25 17:14:39 +02:00
Nicolas Grekas 61ecf9bf6a Merge branch '5.3' into 5.4
* 5.3:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:43:48 +02:00
Nicolas Grekas 6d8dd92d74 Merge branch '5.2' into 5.3
* 5.2:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:40:44 +02:00
Nicolas Grekas 6d1f8c8c2b Merge branch '4.4' into 5.2
* 4.4:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:38:00 +02:00
Alexander M. Turek e585b26730 Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-21 14:19:41 +02:00
Alexander M. Turek 95029e560d Implement psr/log 3
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 18:40:00 +02:00
Alexander M. Turek dbc4a82b18 Merge branch '5.4' into 6.0
* 5.4:
  Indicate compatibility with psr/log 2 and 3
  [ci] Fix wrongly skipped integration tests
2021-07-18 17:38:47 +02:00
Alexander M. Turek c8f37996f6 Merge branch '5.3' into 5.4
* 5.3:
  Indicate compatibility with psr/log 2 and 3
  [ci] Fix wrongly skipped integration tests
2021-07-18 17:35:11 +02:00
Alexander M. Turek 4a6bcfd276 Merge branch '5.2' into 5.3
* 5.2:
  Indicate compatibility with psr/log 2 and 3
  [ci] Fix wrongly skipped integration tests

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 17:32:38 +02:00
Alexander M. Turek 5ec14aa468 Merge branch '4.4' into 5.2
* 4.4:
  Indicate compatibility with psr/log 2 and 3

Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 17:21:43 +02:00
Alexander M. Turek d2209ec8dd Indicate compatibility with psr/log 2 and 3
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-18 16:08:08 +02:00
Nicolas Grekas 44b1a7a57e [Contracts] add return types and bump to v3 2021-07-14 19:12:34 +02:00
Nicolas Grekas af1535caa2 [Contracts] Bump to 2.5 on branch 5.4 2021-07-12 16:48:14 +02:00
Alexander M. Turek 71d76c4a45 [Cache] Implement psr/cache 3
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-06 18:46:48 +02:00
Alexander M. Turek 49157af260 Merge branch '5.4' into 6.0
* 5.4:
  [Cache] Deprecate DoctrineProvider
  Allow to pass TranslatableMessage objects to the help option
2021-07-04 21:52:34 +02:00
Alexander M. Turek 16fccfa6bd [Cache] Deprecate DoctrineProvider 2021-07-04 14:16:52 +02:00
Nicolas Grekas 4da938cb6e Bump Contracts to 2.5 2021-06-09 15:36:38 +02:00