54 Commits

Author SHA1 Message Date
Mark van Duijker
7ef0c121d9 [FrameworkBundle] Configure custom marshaller per cache pool 2026-02-12 13:36:19 +01:00
Nicolas Grekas
fae016390a Merge branch '6.4' into 7.3
* 6.4:
  [Cache] Fix namespace of chained pools when using another chain as template
2025-12-28 11:45:15 +01:00
Nicolas Grekas
a1b306757c [Cache] Fix namespace of chained pools when using another chain as template 2025-12-27 19:26:25 +01:00
Nicolas Grekas
c23908ab80 Merge branch '6.4' into 7.3
* 6.4:
  [HttpClient] Fix ever growing $maxHostConnections
  Fix typo
  [DependencyInjection] Fix referencing build-time array parameters
  cs fix
  [FrameworkBundle] Fix cache:pool:prune exit code on failure
  [Form] Always normalize CRLF and CR to LF in `TextareaType`
  [Cache] Fix stampede protection when forcing item recomputation
  [Console] Fix EofShortcut instruction when using a modern terminal on Windows
  [Console] Fix choice autocomplete issue when string has spaces
  [Serializer] Fix inconsistent field naming from accessors when using groups
  [Finder] Fix converting unanchored glob patterns to regex
2025-12-23 15:45:27 +01:00
Younes ENNAJI
63d597811a [FrameworkBundle] Fix cache:pool:prune exit code on failure 2025-12-23 11:57:45 +01:00
Nicolas Grekas
499db0bae8 Merge branch '6.4' into 7.3
* 6.4:
  [Cache] Fix internal representation of non-static values
  [Cache] Make `TagAwareAdapter` registrable as a service
  refactor: Unify & more humane translation message
  fix Resources translations validators.pt.xlf
  [Security] Pass attributes to nested `ChainUserProviders`
  [Validator] Update translation for the Video constraint
  [Messenger] Firebird Database - incompatibility with expected lowercase columns
  SQLSRV: Change column type from TEXT to STRING
  Fix exception catch when deleting temporary table in the sameDatabaseChecker
  [Serializer] Fix serializer crash due to asymmetric visibility on `protected(set)` properties
2025-09-03 13:56:52 +02:00
a.dmitryuk
22a1caa7e7 [Cache] Make TagAwareAdapter registrable as a service 2025-09-03 11:07:26 +02:00
Nicolas Grekas
52a03d7916 CS fixes 2025-07-10 10:14:14 +02:00
Nicolas Grekas
7bc97a8d8c Merge branch '6.4' into 7.2
* 6.4:
  [Console] Table counts wrong column width when using colspan and `setColumnMaxWidth()`
  [Console] Table counts wrong number of padding symbols in `renderCell()` method when cell contain unicode variant selector
  [Cache] Fix using a `ChainAdapter` as an adapter for a pool
  [Serializer] Fix collect_denormalization_errors flag in defaultContext
  [VarDumper] Avoid deprecated call in PgSqlCaster
  Fix command option mode (InputOption::VALUE_REQUIRED)
  [Uid] Improve entropy of the increment for UUIDv7
2025-06-27 21:53:16 +02:00
Indra Gunawan
c88690befb [Cache] Fix using a ChainAdapter as an adapter for a pool 2025-06-27 20:31:36 +02:00
Christian Flothmann
8d773a575e Merge branch '7.1' into 7.2
* 7.1:
  [FrameworkBundle] Add missing `not-compromised-password` entry in XSD
  [AssetMapper] Fix CssCompiler matches url in comments
  Add support for doctrine/persistence 4
  Ensure TransportExceptionInterface populates stream debug data
  Fix typo in validators.sk.xlf
  [Mime] Fix body validity check in `Email` when using `Message::setBody()`
  Review Arabic translations for the validator
  Fixed mistakes in proper hebrew writing in the previous translation and confirmed the rest to be correct and in the same style.
  Review translation
  [Cache] Don't clear system caches on cache:clear
  [FrameworkBundle] Fix patching refs to the tmp warmup dir in files generated by optional cache warmers
  Mark Czech Validator translation as reviewed
  [PropertyInfo] Fix `TypeTest` duplicated assert
  [Validator] Fix `Url` constraint attribute assertion
  convert legacy types to TypeInfo types if getType() is not implemented
  [HtmlSanitizer] Avoid accessing non existent array key when checking for hosts validity
  Update validators.ar.xlf
  [DomCrawler] Make `ChoiceFormField::isDisabled` return `true` for unchecked disabled checkboxes
2025-01-27 12:08:17 +01:00
Christian Flothmann
3828c03755 Merge branch '6.4' into 7.1
* 6.4:
  [FrameworkBundle] Add missing `not-compromised-password` entry in XSD
  [AssetMapper] Fix CssCompiler matches url in comments
  Add support for doctrine/persistence 4
  Ensure TransportExceptionInterface populates stream debug data
  Fix typo in validators.sk.xlf
  [Mime] Fix body validity check in `Email` when using `Message::setBody()`
  Review Arabic translations for the validator
  Fixed mistakes in proper hebrew writing in the previous translation and confirmed the rest to be correct and in the same style.
  Review translation
  [Cache] Don't clear system caches on cache:clear
  [FrameworkBundle] Fix patching refs to the tmp warmup dir in files generated by optional cache warmers
  Mark Czech Validator translation as reviewed
  [PropertyInfo] Fix `TypeTest` duplicated assert
  [HtmlSanitizer] Avoid accessing non existent array key when checking for hosts validity
  Update validators.ar.xlf
  [DomCrawler] Make `ChoiceFormField::isDisabled` return `true` for unchecked disabled checkboxes
2025-01-27 11:57:12 +01:00
Nicolas Grekas
b209751ed2 [Cache] Don't clear system caches on cache:clear 2025-01-22 15:13:52 +01:00
Alexander M. Turek
360e65cff2 Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Nicolas Grekas
1989a2f3c1 Merge branch '7.0' into 7.1
* 7.0:
  [AssetMapper] Handle assets with non-ascii characters in dev server
  [Translation] Fix `TranslationNodeVisitor` with constant domain
  CS fix
  [Routing] Remove `@final` annotation from `Route` attribute
  [Messenger] [AMQP] Throw exception on `nack` callback
  [Validator] revise Latvian translations
  [ErrorHandler] Fix `RecursiveDirectoryIterator` exception with wrong composer autoload
  [HttpFoundation] Request without content-type or content-length header should result in null values, not empty strings
  [Cache] Fix possible infinite loop in `CachePoolPass`
  grab a service from the container only if it exists
  [Mime] Fix undefined array key 0 when empty sender
  [Console] Allow '0' as a $shortcut in InputOption.php
  fix multi-byte code area to convert
  [Validator] Make it explicit when English translation differs from its resource name
2024-01-23 14:40:04 +01:00
Nicolas Grekas
65b63ce340 Merge branch '6.4' into 7.0
* 6.4:
  [AssetMapper] Handle assets with non-ascii characters in dev server
  [Translation] Fix `TranslationNodeVisitor` with constant domain
  CS fix
  [Routing] Remove `@final` annotation from `Route` attribute
  [Messenger] [AMQP] Throw exception on `nack` callback
  [Validator] revise Latvian translations
  [ErrorHandler] Fix `RecursiveDirectoryIterator` exception with wrong composer autoload
  [HttpFoundation] Request without content-type or content-length header should result in null values, not empty strings
  [Cache] Fix possible infinite loop in `CachePoolPass`
  grab a service from the container only if it exists
  [Mime] Fix undefined array key 0 when empty sender
  [Console] Allow '0' as a $shortcut in InputOption.php
  fix multi-byte code area to convert
  [Validator] Make it explicit when English translation differs from its resource name
2024-01-23 14:39:53 +01:00
Nicolas Grekas
3ee3ee1c7f Merge branch '6.3' into 6.4
* 6.3:
  [AssetMapper] Handle assets with non-ascii characters in dev server
  [Translation] Fix `TranslationNodeVisitor` with constant domain
  [Messenger] [AMQP] Throw exception on `nack` callback
  [Validator] revise Latvian translations
  [ErrorHandler] Fix `RecursiveDirectoryIterator` exception with wrong composer autoload
  [HttpFoundation] Request without content-type or content-length header should result in null values, not empty strings
  [Cache] Fix possible infinite loop in `CachePoolPass`
  grab a service from the container only if it exists
  [Mime] Fix undefined array key 0 when empty sender
  [Console] Allow '0' as a $shortcut in InputOption.php
  fix multi-byte code area to convert
  [Validator] Make it explicit when English translation differs from its resource name
2024-01-23 14:36:40 +01:00
Nicolas Grekas
7b53a9fa74 Merge branch '5.4' into 6.3
* 5.4:
  [Translation] Fix `TranslationNodeVisitor` with constant domain
  [Messenger] [AMQP] Throw exception on `nack` callback
  [Validator] revise Latvian translations
  [ErrorHandler] Fix `RecursiveDirectoryIterator` exception with wrong composer autoload
  [HttpFoundation] Request without content-type or content-length header should result in null values, not empty strings
  [Cache] Fix possible infinite loop in `CachePoolPass`
  [Mime] Fix undefined array key 0 when empty sender
  [Console] Allow '0' as a $shortcut in InputOption.php
  fix multi-byte code area to convert
  [Validator] Make it explicit when English translation differs from its resource name
2024-01-23 14:24:28 +01:00
HypeMC
46ffa4dc3b [Cache] Fix possible infinite loop in CachePoolPass 2024-01-23 09:26:04 +01:00
Javier Eguiluz
8c9ace5cbe Use faster hashing algorithms when possible 2023-12-17 20:10:05 +01:00
Fabien Potencier
3665ac68e8 Merge branch '6.4' into 7.0
* 6.4:
  [Notifier][Webhook] Add Vonage support
  [Notifier] Add GoIP bridge
  [Workflow] Use TRANSITION_TYPE_WORKFLOW for rendering workflow in profiler
  Remove unneeded calls to setPublic(false)
2023-08-12 14:40:06 +02:00
Nicolas Grekas
3facad5dc0 Remove unneeded calls to setPublic(false) 2023-08-08 11:20:15 +02:00
Wouter de Jong
20e92ca00e [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Wouter de Jong
b065ff887e Add missing return types 2023-04-25 12:46:17 +02:00
Wouter de Jong
cd927d0f9e Add PHP types to private methods and functions 2023-02-13 10:14:48 +01:00
Grégoire Pineau
bfb56d623f [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Nicolas Grekas
22b9186ff8 Merge branch '5.4' into 6.0
* 5.4: (46 commits)
  move username/password fix to non-deprecated Connection class
  cs fix
  [VarDumper] Fix dumping twig templates found in exceptions
  do not replace definition arguments that have not been configured
  fix Console tests on Windows
  [Validator] Add translations for CIDR constraint
  [Dotenv] Fix testLoadEnv() to start from a fresh context
  [Console] Add completion to server:dump command
  bug #42194 [RateLimiter] fix: sliding window policy to use microtime
  [Validator] Update validators.sr_Cyrl.xlf
  [Validator] Update validators.sr_Latn.xlf
  Add suggestions for the option 'format' of lints commands: twig, yaml and xliff
  [VarDumper] Add support for Fiber
  uzb translation
  Update validators.uz.xlf
  Fix logging of impersonator introduced in 5.3
  [Console] Add show proxified command class in completion debug
  skip command completion tests with older Symfony Console versions
  [Uid] Allow use autocompletion
  [Console] Add completion to messenger:setup-transports command
  ...
2021-10-25 17:10:37 +02:00
Christian Flothmann
2762665a48 do not replace definition arguments that have not been configured 2021-10-25 16:47:45 +02:00
andyexeter
ec84b2fe2b Add completion for cache:pool:clear and cache:pool:delete commands 2021-10-21 13:22:52 +01:00
Robin Chalas
2f7ea10bdd 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
Nicolas Grekas
d182e9b4f4 Merge branch '4.4' into 5.3
* 4.4:
  cs fix
  [Security][Validator] Add missing translations for Indonesian (id)
  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
  Fix ExecutionContextInterface::setParameter phpdoc example
  always close open stopwatch section after handling kernel.request events
2021-08-09 11:00:11 +02:00
Michael Olšavský
b85a5424d2 Do not add namespace argument to NullAdapter in CachePoolPass 2021-08-06 12:35:20 +02:00
Nicolas Grekas
db5fb71aba Merge branch '5.4' into 6.0
* 5.4:
  [Cache] backport type fixes
  [Cache] Remove MemcachedTrait
2021-07-07 14:37:06 +02:00
Nicolas Grekas
b46da0d65b Merge branch '5.2' into 5.3
* 5.2:
  [Cache] backport type fixes
  [Cache] Remove MemcachedTrait
2021-07-07 14:34:15 +02:00
Nicolas Grekas
da6db84220 Merge branch '4.4' into 5.2
* 4.4:
  [Cache] backport type fixes
2021-07-07 14:33:44 +02:00
Malte Schlüter
dd6c2d34ac [Cache] Removed depreacted code 2021-05-21 11:30:31 +02:00
Nicolas Grekas
bc9acbae33 Deprecate configuring tag names and service ids in compiler passes 2021-03-15 19:33:21 +01:00
Lars Strojny
76b4582581 [Cache] Allow ISO 8601 time intervals to specify default lifetime 2020-10-05 15:19:55 +02:00
Nicolas Grekas
9517fce50d [Cache] add integration with Messenger to allow computing cached values in a worker 2020-09-11 15:42:58 +02:00
Tobias Schultze
9895dcb374 [Cache] give control over cache prefix seed
The configurable cache prefix seed does not give full control over the cache prefix because the container class is added to the prefix in any case. This is a problem because the container class contains the app env name. We use different app environments for different deployment targets (dev and test). Dev and test should use the same redis cache. But this is impossible to achieve because even setting the cache prefix seed does not accomplish this.
2020-09-02 11:53:39 +02:00
Christian Flothmann
8ddd854b90 fix processing chain adapter based cache pool 2020-01-07 11:39:48 +01:00
Nicolas Grekas
25918d3837 Merge branch '4.3' into 4.4
* 4.3:
  Fixed #35084
  Add missing use statement
  [HttpClient] fix scheduling pending NativeResponse
  do not overwrite variable value
  [Profiler] wording
  Use spaces correctly to display options in DebugCommand
  X-Accel Nginx URL updated
  ticket-30197 [Validator] Add the missing translations for the Chinese (Taiwan) ("zh_TW") locale
  Fixed test added in #35022
  Use locale_parse for computing fallback locales
  [Console] Fix filtering out identical alternatives when there is a command loader
2019-12-28 16:00:14 +01:00
Christian Flothmann
69b4a72836 do not overwrite variable value 2019-12-27 10:03:19 +01:00
Fabien Potencier
ec65a6bab4 Merge branch '4.3' into 4.4
* 4.3:
  fixed "link" to Contracts packages
  [WebProfilerBundle] Fix time panel legend buttons
  Fixed cache pools affecting each other due to an overwritten seed variable
  properly catch legacy tag syntax usages
2019-09-15 10:41:08 +02:00
Ruud Arentsen
48899baf98 Fixed cache pools affecting each other due to an overwritten seed variable 2019-09-13 12:59:08 +02:00
Christian Flothmann
b806943437 add parameter type declarations to private methods 2019-07-31 20:51:46 +02:00
Nicolas Grekas
3780cde585 [FrameworkBundle] Allow creating chained cache pools by providing several adapters 2019-07-04 19:09:10 +02:00
André R
d8dda03e4a [Cache] Add optimized FileSystem & Redis TagAware Adapters
Reduces cache lookups by 50% by changing logic of how tag information is
stored to avoid having to look it up on getItem(s) calls.

For Filesystem symlinks are used, for Redis "Set" datatype is used.
2019-04-24 07:47:35 +02:00
Tobias Nyholm
1dbafeb782 [Cache] Added command for list all available cache pools 2019-04-10 13:38:35 +02:00
Fabien Potencier
fa667c9ed8 fixed CS 2019-01-16 21:35:37 +01:00