181 Commits

Author SHA1 Message Date
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
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
Nicolas Grekas
3dd6c675b4 Merge branch '4.4' into 5.0
* 4.4:
  [Validator] fix access to uninitialized property when getting value
  [HttpClient] Fix regex bearer
  [Translator] Default value for 'sort' option in translation:update should be 'asc'
  [HttpKernel] Fix stale-if-error behavior, add tests
  [Intl] Provide more locale translations
  [Mailer] Fix STARTTLS support for Postmark and Mandrill
  [Messenger] Check for all serialization exceptions during message dec…
  [Messenger] Fix bug when using single route with XML config
  Fix exception message in Doctrine Messenger
  [DI]  CheckTypeDeclarationsPass now checks if value is type of parameter type
  [SecurityBundle] fix security.authentication.provider.ldap_bind arguments
  Improved error message when no supported user provider is found
  Mysqli doesn't support the named parameters used by PdoAdapter
  Added debug argument to decide if debug page should be shown or not
  Mysqli doesn't support the named parameters used by PdoStore
  Properly handle phpunit arguments for configuration file
  [Mailer] add tests for http transports
2020-01-31 10:13:47 +01:00
Guillaume Verstraete
e31a0b5187 [Translator] Default value for 'sort' option in translation:update should be 'asc' 2020-01-30 17:24:00 +01:00
Nicolas Grekas
cc59bc797b Merge branch '4.4' into 5.0
* 4.4:
  [DI] Fix EnvVar not loaded when Loader requires an env var
  Fixed #34713 Move new messages to intl domain when possible
  [FrameworkBundle] Fix small typo in output comment
  chown and chgrp should also accept int as owner and group
  Revert "Fixed translations file dumper behavior"
  Fix RememberMe with null password
  [Validator] Fix plurals for sr_Latn (Serbian language written in latin script) validation messages
  Set booted flag to false when test kernel is unset
  [FrameworkBundle] remove messenger cache if not enabled
  [PhpUnitBridge][SymfonyTestsListenerTrait] Remove some unneeded code
  [HttpClient] Fix strict parsing of response status codes
  fix PHP const mapping keys using the inline notation
  [SecurityBundle] Drop duplicated code
  [FrameworkBundle] Make sure one can use fragments.hinclude_default_template
  Fix that no-cache requires positive validation with the origin, even for fresh responses
  Improve upgrading instructions for deprecated router options
  [DI] Suggest typed argument when binding fails with untyped argument
2020-01-21 09:40:24 +01:00
Yonel Ceruto
38922634bf Fixed #34713 Move new messages to intl domain when possible 2020-01-19 19:23:22 -05:00
Nicolas Grekas
3d57e8d0ea Merge branch '4.4' into 5.0
* 4.4:
  [Debug] fix ClassNotFoundFatalErrorHandler
  [Routing] Fix using a custom matcher & generator dumper class
  [Serializer] Fix cache in MetadataAwareNameConverter
  [Dotenv] Fixed infinite loop with missing quote followed by quoted value
  [HttpClient] Added missing sprintf
  [TwigBridge] button_widget now has its title attr translated even if its label = null or false
  [PhpUnitBridge] When using phpenv + phpenv-composer plugin, composer executable is wrapped into a bash script
  [Messenger] Added check if json_encode succeeded
  [Messenger] Added check if json_encode succeeded
  [FrameworkBundle][ContainerLintCommand] Only skip .errored. services
  [HttpClient] fix exception in case of PSR17 discovery failure
  [DependencyInjection] Handle ServiceClosureArgument for callable in container linting
  fix processing chain adapter based cache pool
  [HttpKernel] release lock explicitly
  [Security] Prevent canceled remember-me cookie from being accepted
  [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr
  [Security\Guard] Fix missing typehints
  do not render preferred choices as selected
2020-01-08 18:33:29 +01:00
Nicolas Grekas
6feca57ba6 Merge branch '4.3' into 4.4
* 4.3:
  [Debug] fix ClassNotFoundFatalErrorHandler
  [Routing] Fix using a custom matcher & generator dumper class
  [Dotenv] Fixed infinite loop with missing quote followed by quoted value
  [HttpClient] Added missing sprintf
  [TwigBridge] button_widget now has its title attr translated even if its label = null or false
  [PhpUnitBridge] When using phpenv + phpenv-composer plugin, composer executable is wrapped into a bash script
  [Messenger] Added check if json_encode succeeded
  [Security] Prevent canceled remember-me cookie from being accepted
  [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr
  [Security\Guard] Fix missing typehints
2020-01-08 18:29:02 +01:00
Nicolas Grekas
08c2b9afcb Merge branch '3.4' into 4.3
* 3.4:
  [Debug] fix ClassNotFoundFatalErrorHandler
  [Dotenv] Fixed infinite loop with missing quote followed by quoted value
  [TwigBridge] button_widget now has its title attr translated even if its label = null or false
  [PhpUnitBridge] When using phpenv + phpenv-composer plugin, composer executable is wrapped into a bash script
  [Security] Prevent canceled remember-me cookie from being accepted
  [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr
2020-01-08 18:19:22 +01:00
Thomas Calvet
93f7e1783d [FrameworkBundle][TranslationUpdateCommand] Do not output positive feedback on stderr 2020-01-06 12:26:45 +01:00
Nicolas Grekas
f3bce60ab5 Merge branch '4.4'
* 4.4: (21 commits)
  [appveyor] exclude tty group
  [HttpFoundation] Add types to private/final/internal methods and constructors.
  Add types to private/final/internal methods and constructors.
  SCA: minor code tweaks
  Tweak output
  [FrameworkBundle] Added --sort option for TranslationUpdateCommand
  [HttpClient] fallbackto CURLMOPT_MAXCONNECTS when CURLMOPT_MAX_HOST_CONNECTIONS is not available
  [DI] generate preload.php file for PHP 7.4 in cache folder
  Allow version 2 of the contracts package.
  [Serializer] Allow multi-dimenstion object array in AbstractObjectNormalizer
  fixed typo
  [HttpKernel] Fix Apache mod_expires Session Cache-Control issue
  deprecated not passing dash symbol (-) to STDIN commands
  [VarDumper] display ellipsed FQCN for nested classes
  [VarDumper] Display fully qualified title
  [Mailer] Change the syntax for DSNs using failover or roundrobin
  Removed workaround introduced in 4.3
  [Console] Added support for definition list
  [OptionsResolver] Display full nested options hierarchy in exceptions
  New welcome page
  ...
2019-09-08 22:44:36 +02:00
Fabien Potencier
e3fa44f3bf Tweak output 2019-09-08 19:15:29 +02:00
k0d3r1s
8039c4b3ab [FrameworkBundle] Added --sort option for TranslationUpdateCommand 2019-09-08 19:13:44 +02:00
Nicolas Grekas
be0063ce5a Merge branch '4.4'
* 4.4:
  Add more return types after fixing a typo in my script
2019-08-23 14:18:57 +02:00