118 Commits

Author SHA1 Message Date
Silas Joisten
b9235e317f [FrameworkBundle] Add AbstractController::createFormFlowBuilder 2026-01-19 16:02:21 +01:00
Dariusz Ruminski
ef7f276afd PHP CS Fixer: enable static_lambda 2025-12-19 09:33:17 +01:00
Christian Flothmann
807317cef6 Merge branch '7.4' into 8.0
* 7.4: (40 commits)
  [PropertyInfo] treat mixed[] the same as array when getting types from docblocks
  treat `mixed[]` the same as `array` when getting types from docblocks
  install ext-zstd on PHP 8.5 as well
  fix merge
  [Console] Fix profile invokable command
  sync ControllerHelper docblock with latest AbstractController changes
  fix: Typehint for `createForm` in abstractController
  [Notifier][Mercure] Add support for Mercure 0.7
  register attribute loader arguments in a forward-compatible way
  ensure compatibility with RelayCluster 0.20.0
  mark test using a Redis connection as an integration test
  ensure compatibility with Relay extension 0.20.0
  [FrameworkBundle] Allow backed enum to be used in initial_marking workflow configuration
  [DependencyInjection] Fix `query_string` env processor for URLs without query string
  [HttpFoundation] Fix Expires response header for EventStream
  Bump Symfony version to 7.4.1
  Update VERSION for 7.4.0
  Update CHANGELOG for 7.4.0
  -
  [DependencyInjection] Fix state corruption in PhpFileLoader during recursive imports
  ...
2025-12-01 10:13:36 +01:00
Christian Flothmann
0af40dff1c sync ControllerHelper docblock with latest AbstractController changes 2025-11-29 12:55:27 +01:00
Silas Joisten
bb4cf32c77 fix: Typehint for createForm in abstractController 2025-11-29 11:35:36 +01:00
Nicolas Grekas
0bdcd24d3b Merge branch '7.4' into 8.0
* 7.4:
  [Translation] Make the extractor alias optional
  [Cache] Fix accepting named closures as early-expiration callbacks
  [Mime] Update mime types
  [HttpKernel] Conflict with symfony/flex < 2.10
  [Yaml] Align unquoted multiline scalar parsing with spec for comments
  work around limitation in JsonResponse when the data is null
  do not use recipient phone numbers as sender e-mail addresses
  [Dotenv] DotenvDumpCommand cannot be internal
2025-11-16 11:17:21 +01:00
Nicolas Grekas
784409732d Merge branch '7.3' into 7.4
* 7.3:
  [Cache] Fix accepting named closures as early-expiration callbacks
  [Mime] Update mime types
  [Yaml] Align unquoted multiline scalar parsing with spec for comments
  work around limitation in JsonResponse when the data is null
  do not use recipient phone numbers as sender e-mail addresses
  [Dotenv] DotenvDumpCommand cannot be internal
2025-11-16 11:14:42 +01:00
Nicolas Grekas
c3f09786aa Merge branch '6.4' into 7.3
* 6.4:
  [Cache] Fix accepting named closures as early-expiration callbacks
  [Mime] Update mime types
  [Yaml] Align unquoted multiline scalar parsing with spec for comments
  work around limitation in JsonResponse when the data is null
  do not use recipient phone numbers as sender e-mail addresses
  [Dotenv] DotenvDumpCommand cannot be internal
2025-11-16 11:09:06 +01:00
Christian Flothmann
4e623d4817 work around limitation in JsonResponse when the data is null 2025-11-15 09:07:02 +01:00
Nicolas Grekas
d2366a083d Remove legacy code paths that rely on feature checks 2025-07-19 11:21:01 +02:00
Nicolas Grekas
291b51ee99 CS fixes 2025-07-10 10:14:14 +02:00
Nicolas Grekas
1d8af87393 [FrameworkBundle] Add ControllerHelper; the helpers from AbstractController as a standalone service 2025-06-25 13:22:33 +02:00
Nicolas Grekas
bb860bf829 [Security] Add ability for voters to explain their vote 2025-02-14 17:13:39 +01:00
Alexander M. Turek
4875a8487f Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
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
c647b0162e Merge branch '6.4' into 7.0
* 6.4:
  [Cache] fix the previous fix
  [Cache] Fix expiration time for CouchbaseCollection
  [FrameworkBundle] Update docblock AbstractController
  [HttpFoundation][FrameworkBundle] Fix default locale is ignored when set_locale_from_accept_language is used
  add missing translations
  [Validator] updated Lithuanian translation
  [Validator] fix some non-sense Lithuanian translations
  [Validator] updated Slovenian translation
  [Validator] updated Finnish translation
  [RateLimit] Test and fix peeking behavior on rate limit policies
  [Validator] Add `Charset` french translation
  [Tests] Streamline CompiledUrlGenerator tests
  [Serializer] Skip uninitialized properties with deep_object_to_populate
  fix Constraints\Email::ERROR_NAMES
2023-12-29 16:37:40 +01:00
Nicolas Grekas
c26a221e04 Merge branch '6.3' into 6.4
* 6.3:
  [Cache] fix the previous fix
  [Cache] Fix expiration time for CouchbaseCollection
  [FrameworkBundle] Update docblock AbstractController
  [HttpFoundation][FrameworkBundle] Fix default locale is ignored when set_locale_from_accept_language is used
  add missing translations
  [Validator] updated Lithuanian translation
  [Validator] fix some non-sense Lithuanian translations
  [Validator] updated Slovenian translation
  [Validator] updated Finnish translation
  [RateLimit] Test and fix peeking behavior on rate limit policies
  [Validator] Add `Charset` french translation
  [Tests] Streamline CompiledUrlGenerator tests
  [Serializer] Skip uninitialized properties with deep_object_to_populate
  fix Constraints\Email::ERROR_NAMES
2023-12-29 16:34:34 +01:00
Nicolas Grekas
0b436fd990 Merge branch '5.4' into 6.3
* 5.4:
  [FrameworkBundle] Update docblock AbstractController
  [HttpFoundation][FrameworkBundle] Fix default locale is ignored when set_locale_from_accept_language is used
  add missing translations
  [Validator] updated Lithuanian translation
  [Validator] fix some non-sense Lithuanian translations
  [Validator] updated Slovenian translation
  [Validator] updated Finnish translation
  [Validator] Add `Charset` french translation
  [Tests] Streamline CompiledUrlGenerator tests
  [Serializer] Skip uninitialized properties with deep_object_to_populate
  fix Constraints\Email::ERROR_NAMES
2023-12-29 16:20:22 +01:00
fmata
fe815b4579 [FrameworkBundle] Update docblock AbstractController 2023-12-29 15:52:31 +01:00
Nicolas Grekas
6fae4eaa97 Merge branch '6.4' into 7.0
* 6.4:
  [FrameworkBundle] Deprecate not setting both `framework.session.save_path` and `framework.session.handler_id` at the same time
  [Translation] add @welcomattic as codeowner
  [FrameworkBundle] Add `AbstractController::renderBlock()` and `renderBlockView()`
  [Clock] Add $modifier argument to now() helper
2023-08-21 13:37:23 +02:00
Nicolas Grekas
e951390d95 [FrameworkBundle] Add AbstractController::renderBlock() and renderBlockView() 2023-08-17 16:28:33 +02:00
Nicolas Grekas
d27d89c588 Add types to public and protected properties 2023-07-27 18:29:09 +02:00
Nicolas Grekas
86af3e9768 Merge branch '6.4' into 7.0
* 6.4:
  More short closures + isset instead of null checks + etc.
2023-07-27 09:02:19 +02:00
Nicolas Grekas
afefa62b87 More short closures + isset instead of null checks + etc. 2023-07-27 08:52:43 +02:00
Nicolas Grekas
7f96ac7269 [7.0] Remove remaining deprecated code paths 2023-07-05 11:17:29 +02:00
Kévin Dunglas
c78fe5c2d2 [FrameworkBundle] remove support for preloading ESM modules using headers 2023-05-30 17:24:33 +02:00
Ryan Weaver
f620b0c4aa [Asset] [AssetMapper] New AssetMapper component: Map assets to publicly available, versioned paths 2023-05-01 07:58:57 +02:00
Kévin Dunglas
4c2d28ca74 [HttpFoundation] Add support for the 103 status code (Early Hints) and other 1XX statuses 2023-03-13 10:53:13 +01:00
Nicolas Grekas
a5b189e390 Merge branch '6.2' into 6.3
* 6.2:
  fix style of label containing new lines in PUML dump
  [TwigBridge] Allow floats in html5 input type number field
  [Translation] Handle the translation of empty strings
  [VarDumper] Fix error when reflected class has default Enum parameter in constructor
  [FrameworkBundle] Fix denyAccessUnlessGranted for mixed attributes
  [Validator] Fix translation of AtLeastOneOf constraint message
  do not drop embed label classes
  [Validator] Sync IBAN formats with Swift IBAN registry
  Update Infobip API transport to use the API V3
  [String] Use same alphabet for ByteString::fromRandom tests
  Fix phpdocs in components
  Fix the rendering of query explanation with Postgresql
2023-02-24 11:44:40 +01:00
Nicolas Grekas
1c60151e4c Merge branch '5.4' into 6.2
* 5.4:
  fix style of label containing new lines in PUML dump
  [TwigBridge] Allow floats in html5 input type number field
  [Translation] Handle the translation of empty strings
  [VarDumper] Fix error when reflected class has default Enum parameter in constructor
  [FrameworkBundle] Fix denyAccessUnlessGranted for mixed attributes
  [Validator] Fix translation of AtLeastOneOf constraint message
  [Validator] Sync IBAN formats with Swift IBAN registry
  [String] Use same alphabet for ByteString::fromRandom tests
  Fix phpdocs in components
2023-02-24 11:42:00 +01:00
Robert Worgul
b99d83ef43 [FrameworkBundle] Fix denyAccessUnlessGranted for mixed attributes
Fix AbstractController::denyAccessUnlessGranted() for attributes that aren't string or array. Always wrap the given single attribute into an array to not break the parameter type of AccessDeniedException#setAttributes() (which supports strings only for convenience).
2023-02-23 10:17:25 +01:00
Alexis Lefebvre
0ec2d60bba remove double required annotation + attribute 2023-01-05 03:10:13 +01:00
BASAK Semih
ffd9c3d569 feat: using coalescing operator in file function 2022-12-04 16:42:25 +01:00
Nicolas Grekas
c7a7ed1dfc Use ??= more 2022-11-02 10:08:04 +01:00
Alexis Lefebvre
e246bc4f73 Explain status codes in comments 2022-07-22 14:41:34 +02:00
Jérôme Tamarelle
f4a7283e2b Hide sensitive information with SensitiveParameter attribute 2022-07-11 08:49:17 +02:00
Nicolas Grekas
f5f40bc738 [FrameworkBundle] Make AbstractController::render() able to deal with forms and deprecate renderForm() 2022-07-06 14:26:19 +02:00
Vincent Langlet
ddcbd23503 Add deprecation when the session is not FlashBagAware 2022-07-04 08:33:28 +02:00
Kevin Bond
419ab3999f [DI] add #[Required] where applicable 2022-03-09 10:17:56 -05:00
Nicolas Grekas
a6a07c8b50 Merge branch '5.4' into 6.0
* 5.4:
  [Semaphore] fix tests
  [HttpClient] fix destructing CurlResponse
  [Cache] Fix connecting to Redis via a socket file
  [DependencyInjection][FrameworkBundle] Fix using PHP 8.1 enum as parameters
  [PropertyAccessor] Add missing TypeError catch
  [HttpKernel] Fixed error count by log not displayed in WebProfilerBundle
  Added `kernel.event_listener` to the default list of behavior describing tags, fixing AsEventListener attribute not working on decorators.
  [WebProfilerBundle] Fixes weird spacing in log message context/trace output
  [Notifier] fix Microsoft Teams webhook url
  [FrameworkBundle] Fix log channel of TagAwareAdapter
  [Postmark] ensure only a single tag can be used with Postmark
  [Mailer] allow Mailchimp to handle multiple TagHeader's
  [HttpClient] Fix Content-Length header when possible
  [DependencyInjection] Don't dump polyfilled classes in preload script
2022-02-04 20:03:38 +01:00
Nicolas Grekas
2961c37694 Merge branch '4.4' into 5.4
* 4.4:
  [Cache] Fix connecting to Redis via a socket file
  [DependencyInjection][FrameworkBundle] Fix using PHP 8.1 enum as parameters
  [PropertyAccessor] Add missing TypeError catch
  [FrameworkBundle] Fix log channel of TagAwareAdapter
  [HttpClient] Fix Content-Length header when possible
  [DependencyInjection] Don't dump polyfilled classes in preload script
2022-02-04 19:39:09 +01:00
Maxime Steinhausser
b9739b4fcb [DependencyInjection][FrameworkBundle] Fix using PHP 8.1 enum as parameters 2022-02-04 15:19:18 +01:00
Nicolas Grekas
33292782a0 [6.0] cs fixes 2021-12-16 23:13:01 +01:00
Robin Chalas
c1ad9bd96a Merge branch '5.4' into 6.0
* 5.4:
  [Security][WIP] Add authenticators info to the profiler
  [Translation] Use symfony default locale when pulling translations from providers
  added missing translations for Bosnian (bs)
  Add the missing greek translations for security core and validator component
  [HttpKernel] Fix return types in `EventDataCollector`
  Do not call substr_count() if ip is null to avoid deprecation warning in PHP 8.1
  [Security][Validator] Add missing translations for Slovenian (sl)
  [Messenger] Add worker metadata inside logs
  [Messenger] Log when worker should stop and when `SIGTERM` is received
  cs fix
  [Security][Validator] Add missing translations for Finnish (fi)
  [VarDumper] returns a 500 when dd() is executed
  chore(VarDumper): declare that dd() never returns
  [MonologBridge] Deprecate the Swiftmailer handler
  [Cache] Commit items implicitly only when deferred keys are requested
  [MonologBridge] Deprecates ResetLoggersWorkerSubscriber
  Fix "can not" spelling
  [HttpClient] fix missing kernel.reset tag on TraceableHttpClient services
  [Form] Fix ChoiceType Extension to effectively set and use the translator
  Added new CssColor constraint
2021-10-11 18:08:10 +02:00
Michael Voříšek
2e213a04c4 Fix "can not" spelling 2021-10-06 09:48:14 +02:00
Ion Bazan
76c68de82d remove AbstractController's services marked for deletion 2021-09-21 17:20:40 +08:00
Nicolas Grekas
36e0d7384a Remove deprecated code paths 2021-09-07 23:20:46 +02:00