193 Commits

Author SHA1 Message Date
Nicolas Grekas
176cca38c6 Merge branch '6.4' into 7.0
* 6.4:
  Fix implicitly-required parameters
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 16:02:46 +01:00
Nicolas Grekas
e526d81040 Merge branch '6.3' into 6.4
* 6.3:
  minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
  Fix bad merge
  List CS fix in .git-blame-ignore-revs
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2024-01-23 15:51:35 +01:00
Nicolas Grekas
3d2ae12694 Merge branch '5.4' into 6.3
* 5.4:
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 15:35:58 +01:00
Nicolas Grekas
9f39bd6765 Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value 2024-01-23 14:51:25 +01:00
Nicolas Grekas
5823a77e4d Merge branch '6.4' into 7.0
* 6.4: (47 commits)
  Sync .github/expected-missing-return-types.diff
  [FrameworkBundle] Add void return-type to ErrorLoggerCompilerPass
  [DoctrineBridge] Fix cross-versions compat
  [HttpKernel] Handle nullable callback of StreamedResponse
  [Mailer] Capitalize sender header for Mailgun
  [FrameworkBundle] Configure `logger` as error logger if the Monolog Bundle is not registered
  DX: PHP CS Fixer - drop explicit nullable_type_declaration_for_default_null_value config, as it's part of ruleset anyway
  DX: PHP CS Fixer - drop explicit no_superfluous_phpdoc_tags config, as it's part of ruleset already
  [DI] Simplify using DI attributes with `ServiceLocator/Iterator`'s
  [FrameworkBundle] Fix registering workflow.registry
  Revert "Add keyword `dev` to leverage composer hint"
  [Validator] Add missing Ukrainian translations #51960
  [Validator] Add missing translations for Indonesian (id)
  [Validator] Add missing translations for Vietnamese (VI)
  Add missing Validator translations - Croatian (hr)
  [HttpFoundation]  Improve PHPDoc of Cache attribute
  [Validator] Add missing Spanish (es) translations #51956
  [Serializer] Add `XmlEncoder::CDATA_WRAPPING` context option
  [Finder] Add early directory prunning filter support
  Add missing dutch translations
  ...
2023-10-12 17:41:36 +02:00
Simon André
f3b5f6515d [CS] Fix command descriptions (code conventions)
* remove ending dot
* use imperative mood

See: https://symfony.com/doc/current/contributing/code/conventions.html#naming-commands-and-options
2023-10-10 07:29:54 +02:00
Nicolas Grekas
008116925e Remove BC layers related to new methods and new parameters 2023-07-03 16:18:55 +02:00
Nicolas Grekas
a1e34de817 Merge branch '6.2' into 6.3
* 6.2:
  fix merge
  [DependencyInjection] Filter "container.excluded" services when using `findTaggedServiceIds()`
  [Cache] Removing null coalescing assignment operator on 5.4
  [Console] Add missing ZSH mention in DumpCompletionCommand help
  [Cache] Fix storing binary keys when using pgsql
  [FrameworkBundle] Add missing monolog channel tag for messenger services
  update documentation for telegram bridge notifier
  [FrameworkBundle] Improve documentation about translation:extract --sort option
  [VarDumper] Disable links for IntelliJ platform
  [Notifier] Add bridge documentation
  [HttpClient] Add hint about `timeout` and `max_duration` options
  [HttpFoundation] Use separate caches for IpUtils checkIp4 and checkIp6
  [FrameworkBundle] Fix wiring session.handler when handler_id is null
  [FrameworkBundle] Workflow - Fix LogicException about a wrong configuration of "enabled" node
2023-03-30 11:40:52 +02:00
Nicolas Grekas
fcb9175af4 Merge branch '5.4' into 6.2
* 5.4:
  [Cache] Removing null coalescing assignment operator on 5.4
  [Cache] Fix storing binary keys when using pgsql
  [FrameworkBundle] Add missing monolog channel tag for messenger services
  [FrameworkBundle] Improve documentation about translation:extract --sort option
  [VarDumper] Disable links for IntelliJ platform
  [Notifier] Add bridge documentation
  [HttpClient] Add hint about `timeout` and `max_duration` options
  [HttpFoundation] Use separate caches for IpUtils checkIp4 and checkIp6
  [FrameworkBundle] Fix wiring session.handler when handler_id is null
  [FrameworkBundle] Workflow - Fix LogicException about a wrong configuration of "enabled" node
2023-03-29 23:42:15 +02:00
Marien Fressinaud
886d85e53c [FrameworkBundle] Improve documentation about translation:extract --sort option
The `--sort` option only works with `--dump-messages` (i.e. not with
`--force`). It took me some time to realize that, and the documentation
didn't help me since it was showing an example that didn't work.

Contribute to https://github.com/symfony/symfony/issues/37918
2023-03-25 10:34:15 +01:00
Nicolas Grekas
f48bcbbcf3 Merge branch '6.2' into 6.3
* 6.2:
  CS fix
  Fix test provider
2023-02-16 11:14:28 +01:00
Wouter de Jong
34bd487d2e Add void return types 2023-02-13 14:18:23 +01:00
Javier Eguiluz
739c095888 Misc code improvements and optimizations 2023-02-05 09:19:36 +01:00
tigitz
b46d202008 Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
Nicolas Grekas
e16c0e497a Merge branch '6.1' into 6.2
* 6.1:
  [DI] fix tests
  [FrameworkBundle] fix merge
  [FrameworkBundle] Filter out trans paths that are covered by a parent folder path
  [Form] fix tests
  [Serializer] Fixed framework.serializer.default_context is not working for JsonEncoder
  [Ldap] Do not run ldap_set_option on failed connection
  Correct compare float data
  Bugfix: add \UnitEnum as a result of get() method
  Fix AbstractFormLoginAuthenticator return types (fixes #47571).
  Run composer with --ignore-platform-req=php+
  [FrameworkBundle] Fix a phpdoc in mailer assertions
2022-09-28 18:02:38 +02:00
Nicolas Grekas
1f77f32c1d Merge branch '6.0' into 6.1
* 6.0:
  [DI] fix tests
  [FrameworkBundle] fix merge
  [FrameworkBundle] Filter out trans paths that are covered by a parent folder path
  [Form] fix tests
  [Serializer] Fixed framework.serializer.default_context is not working for JsonEncoder
  [Ldap] Do not run ldap_set_option on failed connection
  Correct compare float data
  Bugfix: add \UnitEnum as a result of get() method
  Fix AbstractFormLoginAuthenticator return types (fixes #47571).
  Run composer with --ignore-platform-req=php+
  [FrameworkBundle] Fix a phpdoc in mailer assertions
2022-09-28 18:00:52 +02:00
Nicolas Grekas
085b4ae7dd Merge branch '5.4' into 6.0
* 5.4:
  [FrameworkBundle] fix merge
  [FrameworkBundle] Filter out trans paths that are covered by a parent folder path
  [Form] fix tests
  [Serializer] Fixed framework.serializer.default_context is not working for JsonEncoder
  [Ldap] Do not run ldap_set_option on failed connection
  Correct compare float data
  Fix AbstractFormLoginAuthenticator return types (fixes #47571).
  Run composer with --ignore-platform-req=php+
  [FrameworkBundle] Fix a phpdoc in mailer assertions
2022-09-28 17:52:47 +02:00
Nate Wiebe
6459b58d3c [FrameworkBundle] Filter out trans paths that are covered by a parent folder path 2022-09-28 17:35:09 +02:00
Grégoire Pineau
fb7ade8fab [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Thomas Calvet
2f62d5af2f Leverage non-capturing catches 2022-04-01 09:15:35 +02:00
Fabien Potencier
dd3bf10773 Revert "bug #44494 Remove FQCN type hints on properties (fabpot)"
This reverts commit 0a13eba7037c6636be7a35c194d7d2e86d6ea6ba, reversing
changes made to e4cfa82c31ffda491b73e181c8d3d4e0a307eee8.
2021-12-09 13:46:12 +01:00
Fabien Potencier
a871a08baa Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Alexander M. Turek
bf9d0d4969 [FrameworkBundle] Add types to private properties 2021-11-02 11:55:16 +01:00
Alexander M. Turek
da6fd64935 Merge branch '5.3' into 5.4
* 5.3:
  [FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call
  Fix wait duration for fixed window policy
2021-10-30 14:56:21 +02:00
Mathieu Santostefano
6f2178f730 [FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call 2021-10-30 12:17:57 +02:00
Fabien Potencier
84bc4b7d43 Merge branch '5.4' into 6.0
* 5.4:
  [FrameworkBundle] Add completion feature on translation:update command
  [Security] Backport 6.0 compat fixes
  Add completion feature on translation pull and push commands
  [Console] Add completion to debug:translation command
  [Console] Add autocompletion for security commands
  choose the proper array element to decode the message
  [RateLimiter] Add support for long intervals (months and years)
2021-10-29 17:34:49 +02:00
Fabien Potencier
a9c9a15589 feature #43676 [FrameworkBundle] Add completion feature on translation:update command (stephenkhoo)
This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[FrameworkBundle] Add completion feature on translation:update command

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Part of #43594
| License       | MIT
| Doc PR        | -

Adding completion for translation:update.
- [x] locale
- [X] bundle
- [X] --format
- [X] --domain
- [X] --sort

Test for
- [x] locale
- [x] bundle
- [X] --format
- [X] --domain
- [X] --sort

Locale completion still under discussion in https://github.com/symfony/symfony/pull/43644#pullrequestreview-786510272

Locale and bundle test still not complete

Commits
-------

2f301ae9e1 [FrameworkBundle] Add completion feature on translation:update command
2021-10-29 16:49:33 +02:00
Khoo Yong Jun
b606d68918 [FrameworkBundle] Add completion feature on translation:update command 2021-10-29 16:49:30 +02:00
Christian Flothmann
f68db3eb6c Merge branch '5.4' into 6.0
* 5.4: (33 commits)
  do not pass a boolean to the constructor of the Dotenv class
  [Notifier] Fix low-deps tests
  Deprecate Composer 1
  [Filesystem] Add third argument `$lockFile` to `Filesystem::appendToFile()`
  [TwigBundle] fix auto-enabling assets/expression/routing/yaml/workflow extensions
  [PhpUnitBridge] fix symlink to bridge in docker by making its path relative
  [Dotenv] Duplicate $_SERVER values in $_ENV if they don't exist
  Fix markup
  [Notifier] Add Expo bridge
  Add polish translations (#43725)
  Rename translation:update to translation:extract
  [String] Add PLURAL_MAP "zombies" -- fix #43789
  Added support for `statusCode` default parameter when loading a template directly from route using the `Symfony\Bundle\FrameworkBundle\Controller\TemplateController` controller.
  [Validator] Update validators.bs.xlf
  Cache voters that will always abstain
  [Messenger] Fix `TraceableMessageBus` implementation so it can compute caller even when used within a callback
  [Validator] Add the missing translations for Russian (ru)
  [Validator] Added missing translations for Latvian (lv)
  [Validator] Added missing translations
  [Validator] Add missing translations for Vietnamese (VI)
  ...
2021-10-29 09:35:21 +02:00
Mathieu Santostefano
6194a60596 Rename translation:update to translation:extract 2021-10-28 09:07:14 +02:00
Nicolas Grekas
54788c67a5 Use #[AsCommand] to describe commands 2021-09-30 17:28:07 +02:00
Robin Chalas
30cdace39f Merge branch '5.4' into 6.0
* 5.4: (31 commits)
  fix test
  Clarify goals of AbstractController
  cs fix
  [Security][Validator] Add missing translations for Indonesian (id)
  [Security] Deprecate legacy signatures
  [Notifier] fix typo firebase
  [SecurityBundle] Create a smooth upgrade path for security factories
  Add trailing Line return if last line is non empty
  Add trailing Line return if last line is non empty
  [Security] Deprecate `PassportInterface`
  Report mismatches between trans-unit id and source text via status script
  Do not add namespace argument to NullAdapter in CachePoolPass
  [FrameworkBundle] Update cache:clear help
  [HttpFoundation] Add `litespeed_finish_request` to `Response`
  Fix markup
  (minor) remove author tags from test classes
  [Notifier] add `SentMessageEvent` and `FailedMessageEvent`
  [HttpFoundation] Mark Request::get() internal
  Add missing to semi-colon to exception.js
  [FrameworkBundle] remove dead conditions in Translation Commands
  ...
2021-08-09 12:14:54 +02:00
Roman Anasal
6a56e506c8 [FrameworkBundle] remove dead conditions in Translation Commands
Since $targetPath is directly set just 3 lines above
!isset($targetPath[1]) will *always* evaluate to true.

This check was originally to support legacy paths which was removed in
b6eb1f4979db346ffe9fe7f6a5f335323f0c7175
2021-08-05 14:03:35 +02:00
Javier Eguiluz
57daca26ae [FrameworkBundle] Remove deprecated options in translation:update command 2021-07-15 19:16:33 +02:00
Mathieu Santostefano
5dbd68b24f Added Translation Providers
Co-authored-by: Olivier Dolbeau <github@a.bbnt.me>
2021-04-21 11:10:56 +02:00
Fabien Potencier
3f8b570669 Merge branch '5.2' into 5.x
* 5.2:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 09:05:19 +01:00
Fabien Potencier
a26f088761 Merge branch '4.4' into 5.2
* 4.4:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 08:59:01 +01:00
Dane Powell
1d7c9a5590 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Nate Wiebe
0087552850 [FrameworkBundle][Translation] Extract translation IDs from all of src 2021-03-05 13:17:50 +01:00
Nicolas Grekas
87bb283ba0 Merge branch '5.2' into 5.x
* 5.2:
  Allow psr/cache v3 but on symfony/cache
  [DI] fix tracking of changes to vendor/ dirs
  Remove EOLed 5.1 branch from PR template
  [HttpKernel] [Kernel] Silence deprecations logs writes
  Update PULL_REQUEST_TEMPLATE.md
  fix typo
  [Mailer][Mime] Update inline part names with newly generated ContentId
  Fixed updating catalogue metadata from intl domain
  [HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object
2021-02-05 18:04:25 +01:00
Nicolas Grekas
7a0afbeb10 Merge branch '4.4' into 5.2
* 4.4:
  Allow psr/cache v3 but on symfony/cache
  [DI] fix tracking of changes to vendor/ dirs
  Remove EOLed 5.1 branch from PR template
  [HttpKernel] [Kernel] Silence deprecations logs writes
  Update PULL_REQUEST_TEMPLATE.md
  [Mailer][Mime] Update inline part names with newly generated ContentId
  Fixed updating catalogue metadata from intl domain
  [HttpFoundation] Setting `REQUEST_TIME_FLOAT` when constructing a Request object
2021-02-05 18:02:58 +01:00
Yonel Ceruto
cfbc038721 Fixed updating catalogue metadata from intl domain 2021-01-31 21:39:35 -05:00
Nicolas Grekas
a2ab2c0854 [Console] enable describing commands in ways that make the list command lazy 2021-01-20 12:45:16 +01:00
Alexander M. Turek
18c25ba8c6 Merge branch '5.1' into 5.x 2020-10-28 22:46:03 +01:00
Marco Lipparini
ec71f32b09 [FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup" 2020-10-28 19:07:38 +01:00
Jan Schädlich
80c5c3883b [FrameworkBundle] Add option --as-tree to translation:update command 2020-10-06 07:38:58 +02:00
Nicolas Grekas
1e1d4eb97c Merge branch '3.4' into 4.4
* 3.4:
  Enable "native_constant_invocation" CS rule
  Make AbstractPhpFileCacheWarmer public
2020-09-02 18:08:58 +02:00
Nicolas Grekas
5da40103c3 Enable "native_constant_invocation" CS rule 2020-09-02 18:06:40 +02:00
Nicolas Grekas
da168529de Merge branch '4.4' into 5.0
* 4.4: (23 commits)
  [Filesystem] Handle paths on different drives
  [WebProfiler] Do not add src-elem CSP directives if they do not exist
  [Yaml] fix parse error when unindented collections contain a comment
  Execute docker dependent tests with github actions
  Update exception.html.php
  [3.4][Inflector] Improve testSingularize() argument name
  [Inflector] Fix testPluralize() arguments names
  [PhpUnitBridge] fix PHP 5.3 compat again
  Skip validation when email is an empty object
  fix sr_Latn translation
  [Validator] fix lazy property usage.
  Fix annotation
  [Debug][ErrorHandler] cleanup phpunit.xml.dist files
  [Translation] Fix for translation:update command updating ICU messages
  [PhpUnitBridge] fix compat with PHP 5.3
  bumped Symfony version to 4.4.9
  updated VERSION for 4.4.8
  updated CHANGELOG for 4.4.8
  provide a useful message when extension types don't match
  [Cache] Fixed not supported Redis eviction policies
  ...
2020-05-04 16:05:24 +02:00
Artem Oliynyk
878e3513ae [Translation] Fix for translation:update command updating ICU messages 2020-04-30 20:05:09 +02:00