This week, we published a Symfony 8.2 showcase that builds the same example app with Symfony 8.2, 8.1 and 7.4, showing that 8.2 saves about 1,900 lines of code. SymfonyCasts also announced a free course on Symfony 8.2 security upgrades. Meanwhile, the upcoming Symfony 8.3 version added a flag to parse unquoted dates as strings in YAML files, allowed closures in the options of #[AsFormType] and #[FormField], and made ObjectMapper resolve a concrete subclass when mapping to an abstract target. Finally, we explained how SymfonyCloud protected applications from the recent nginx and PHP CVEs and how to build an interactive AI app with Symfony and SymfonyCloud.

Symfony development highlights

This week, 261 pull requests were merged (201 in code, 27 in docs, 21 in UX and 12 in AI) and 47 issues were closed (32 in code, 9 in docs, 4 in UX and 2 in AI). Excluding merges, 88 authors made additions and deletions. See details for code, docs, UX and AI.

7.4 changelog:

  • 5956e9d: [Lock] fix DoctrineDbalStore and PdoStore expiring locks before their key
  • 64d251f: [SecurityBundle] fix resetting services when the token storage is replaced
  • 16a3d88: [JsonStreamer] fix writing lists in a union with dicts
  • c4d6ce8: [Lock] fix CombinedStore refusing a TTL of one second
  • 99969c8: [Workflow] fix GuardListener without a role hierarchy
  • e69d062: [Workflow] fix linkStyle indexes in MermaidDumper when arcs are merged
  • ec64f78: [Scheduler] accept extra whitespace in hashed cron expressions
  • fd92e56: [Console] allow selecting false values in ChoiceQuestion
  • e3b10b0: [Uid] reject timestamps exceeding the 48-bit limit
  • f7ef940: [DoctrineBridge, HttpKernel, Mime, Security] fix the session Expires header and date tests during the repeated hour of a DST change
  • b127db0: [WebProfilerBundle] don't drop the flashes added by intercepted redirects
  • 1fb1796: [Workflow] pass the context to getMarking() in TraceableWorkflow
  • 869a271: [Scheduler] fix multi-unit frequencies drifting across DST changes
  • 6dc23d4: [HttpFoundation, HttpKernel] fix relative expiry dates during the repeated hour of a DST change
  • 7c7c6a0: [Lock] keep the fractional part of the TTL in DoctrineDbalStore
  • d88591c: [Form] format weeks in single-text date interval fields
  • 54b2b11: [Cache] fix integer overflow in PdoAdapter and DoctrineDbalAdapter when items expire after 2038
  • cc58f7c: [DoctrineBridge] fix AbstractUidType subclasses without getName() on DBAL 4
  • 76678e8: [HttpFoundation] URL-encode X-Sendfile paths
  • 757049a: [Console] keep styled output spacing in sync with verbosity changes
  • cb5fefc: [Config] check a GlobResource once per process when several caches hold it
  • a4811c8: [Config] speed up the freshness check of glob resources
  • 8e0e500: [Mime] decode HTML entities in DefaultHtmlToTextConverter
  • bf9de55: [PhpUnitBridge] don't let Composer's cooldown block the dependencies of PHPUnit
  • c1cd276: sync the Dependabot config with the maintained branches
  • da4940f: [DependencyInjection] match Graphviz aliases by exact service ID
  • 3a0718a: [DomCrawler] preserve fragments when building GET form URIs
  • a5385b1: [Messenger] fix database selection for persistent Redis connections
  • c9c1bc1: [Uid] fix random failure of UuidFactoryTest::testCreateTimed
  • 7a315f7: [Console] preserve text when wrapping with a custom line break
  • 4877a4b: [HttpFoundation] handle unknown MIME types when guessing file extensions
  • 639006f: [Form] support empty_data closures in compound WeekType fields
  • 5c5b48e: [Routing] ignore unrelated routes with a locale suffix during URL generation
  • 7a293b5: [Yaml] parse binary mapping keys in inline mappings
  • 9cc6085: [Yaml] dump nulls in inline sequences as null with DUMP_NULL_AS_EMPTY
  • 3de2f2e: [Serializer, Validator] handle files with an unknown MIME type
  • d31b707: [Form] support empty_data closures in compound DateIntervalType fields
  • d759a31: [Yaml] fix parsing quoted !php/const and !php/enum keys in inline mappings
  • a25ea62: [HttpFoundation] require symfony/polyfill-php83 for json_validate()
  • cb25c5a: [Console] don't drop output written to a non-blocking stream
  • e9a2e5f: [Serializer] fix repeated #[Context] attributes on a class
  • 76476a9: [FrameworkBundle] fix retry_failed.http_codes and validation.auto_mapping rejecting their documented shapes
  • c7b9969: [Mailer] reset the SMTP capabilities when falling back to HELO
  • f0821e1: [Console] fix the prompt of a multiselect question whose default is given as values
  • 7233750: [Serializer] fix ignoring the max depth handler set in the default context
  • 6c8cfed: [Console] fix the width of table columns whose style has another cell content format
  • 834e69c: [Mailer] fix SentMessage::getMessageId() when sending a raw message without a transport id
  • b0f6575: [Scheduler] fix cron messages colliding when only their timezone differs
  • 4476858: [Cache] keep live sub-namespaces connected when clearing an ArrayAdapter
  • 0164040: [Translation] load Qt messages from the requested context
  • 79d017d: [HttpKernel] preserve locale in StreamedResponse callbacks
  • 0220954: [HttpKernel] reuse the container rebuilt by a concurrent process when it is the same as the stale one
  • 7527c87: [Process] fix disabling the output when open_basedir is set
  • 61c49d7: [ExpressionLanguage] preserve whitespace in quoted strings
  • 9828bc4: [DoctrineBridge] reject UID objects the column type cannot read back
  • 5bccd42: [HttpFoundation] preserve ampersands in query values with custom separators
  • ef548d5: [Mime] leave the parts given to FormDataPart unchanged
  • bb9f20a: [Scheduler] distinguish periodic messages with different time bounds
  • 7245408: [TwigBridge, TwigBundle] preserve debug:twig template discovery with decorated loaders
  • 321382f: [HtmlSanitizer] keep the name attribute of map elements in the safe config
  • d920ed7: [Finder] fix consecutive asterisks matching slashes in .gitignore patterns
  • d691ca7: [Scheduler] fail when the name of a scheduled command cannot be determined
  • cb540e9: [Serializer] fix XmlEncoder throwing on arrays under keys that are not valid element names
  • 763c9bd: [JsonPath] fix slices with an empty step in selector lists
  • cf16a4a: [JsonPath] validate every member name shorthand of a path
  • ed564d1: [JsonPath] update the compliance test suite and fix the newly failing cases
  • 49b9e3a: [JsonPath] ignore operators and parentheses inside string literals in filters
  • 7b311c4: [JsonPath] reject filters with missing or invalid operands
  • 4c8d14b: [JsonPath] validate queries regardless of the document
  • 13e3416: [JsonPath] validate filters in selector lists
  • 1f1992b: [JsonPath] apply child selectors to the current object or array
  • 83099eb: [JsonStreamer] track the classes nested in composite types as cache resources
  • fdc46fb: [JsonStreamer] fix writing int-keyed arrays that are not lists
  • 2b2ba94: [JsonStreamer] fix evaluating property accessors several times when writing
  • c4ec65e: [JsonStreamer] stop sharing the default directory of standalone streamers between installations
  • 9d1d934: [JsonStreamer] fix reading JSON integers into unions with float
  • 48f6246: [JsonStreamer] throw an UnexpectedValueException when a value transformer gets a value of the wrong type
  • e6406ba: [JsonStreamer] throw an UnexpectedValueException when reading an invalid backed enum value
  • 0850ad0: [JsonStreamer] wrap TypeInfo exceptions thrown when loading property metadata
  • af65fbb: [Webhook] verify the signature before decoding the payload
  • 6f79ae1: [TypeInfo] fix resolving fully qualified class names without type context
  • 8e661ae: [JsonStreamer] fix reading JSON integers as float
  • 80d39f3: [JsonStreamer] fix reading Traversable collections from strings
  • a38453f: [JsonPath] fix a few RFC 9535 compliance issues
  • c61716a: [Serializer] fix XmlEncoder with keys that are not valid XML names
  • 03eda66: [Console] fix wrapping text with CRLF line breaks
  • 0330380: [Messenger] don't use the PHP serializer of the Redis extension by default in the Redis transport
  • 0034f8d: [Mailer, Mailchimp] verify the webhook signature before decoding the payload
  • 450a53a: [Mailer] keep the Content-ID of inline images whose name cannot be a cid in InfobipApiTransport
  • 9c1944b: [SecurityBundle] don't share the CAS token handler between firewalls

8.1 changelog:

  • 8d5ce7f: [WebProfilerBundle] keep the flashes of intercepted redirects
  • acbf4b7: [Scheduler] make method-level #[AsCommand] names relative to the class-level one
  • 041a29f: [HttpKernel] show the class of adapted bundles in the profiler's config panel
  • 33409de: [JsonStreamer] throw JsonStreamer exceptions for invalid value object data and timezone option
  • bd74eec: [FrameworkBundle] list the inner bundle class in kernel.bundles for MicroKernelTrait
  • a870972: [Tui] don't drop output written to a non-blocking stdout

8.2 changelog:

  • ed83bab: [Config] fix dumping the JSON schema of enum nodes with a non-backed enum default
  • 94ba35d: [Security] document the text/plain body of the access_token 401 responses in UPGRADE-8.2
  • e73b008: [PhpUnitBridge] classify deprecations from internal PHP types
  • 882358e: [AssetMapper] add crossorigin to assets rendered with an integrity
  • c8dfd71: [Console] fix ignoreValidationErrors() being ignored when resolving sub-commands
  • 57aa8c8: [Messenger] fix parallel workers aborting on errors whose code is not an integer (e.g. PDOException)
  • a3f5d5b: [EventDispatcher] document in UPGRADE-8.2 the named shape returned by getSubscribedEvents()
  • 2cb0058: [Cache] let configured pools replace the default pools of other bundles
  • 2895ca8: [Yaml] fix linting pure enums and binary data against a JSON schema
  • aa93aba: [KeyManagement] rebuild the container when the private properties of mapped classes change
  • aa85d31: [Mailer, PufferPost] fix losing Cc and Bcc when the first To address is also in Cc or Bcc
  • 01f4754: [KeyManagement] don't call sodium_memzero() when only sodium_compat provides it
  • 42a13df: [AssetMapper] resolve logical paths that start with the public prefix
  • d70d480: [JsonStreamer] warm up the streamers with the default options
  • 16b83dd: [EventDispatcher] fix removing a listener of the wrapped dispatcher through ScopedEventDispatcher
  • f871db6: [Config] fix ResourceCheckerConfigCacheTest::testIsFreshWhenResourceIsWrittenInSameSecondBeforeBeingLoaded on slow runners
  • 57daa3f: [JsonStreamer] validate the cache_variant default option at configuration time
  • 1464090: [Messenger] reject empty signing keys in SigningSerializer
  • 07bc727: [DependencyInjection] allow disabling a config section whose extension is not registered
  • b6eea14: [EventDispatcher] resolve container aliases in before/after constraints of listeners
  • e6e87ec: [Yaml] fix schema validation of values under custom tags
  • f89666a: [FrameworkBundle] preserve test state when the kernel boots between requests
  • f8f3fb1: [Messenger] publish on a connection of its own when the AMQP transport consumes
  • 1a86e6d: [Yaml] validate unquoted dates as strings in lint:yaml schema validation
  • fed9924: [Console] don't guess the item class of a union from one of its members
  • 5502173: [EventDispatcher] fix two edge cases of ScopedEventDispatcher
  • 2aeff73: [Config, HttpClient] fix the JSON schema for lists of the scalars that acceptAndWrap() wraps into a list
  • ea89e3d: [DependencyInjection, DoctrineBridge, EventDispatcher, Messenger, SecurityBundle] resolve container aliases in before/after constraints
  • e275de4: [KeyManagement] don't leak SodiumException from SealedBoxKms::encrypt()
  • b5cb8f9: [Messenger] don't sign a message skipped by messenger:failed:retry as verified
  • 672c4c6: [Messenger] keep only the reference in the failure to retrieve a claim check
  • 44e7fa9: [Webhook] always write the event name in the "type" key of Standard Webhooks payloads
  • ea892b8: [Messenger] keep only the string fields of a Redis stream entry in its decoding failure

8.3 changelog:

  • b67bb51: [Yaml] add Yaml::PARSE_DATETIME_AS_STRING to parse unquoted dates as strings
  • b197ec6: [Validator] deprecate using * as a validation group name
  • bc55c90: [Cache, HttpFoundation, Lock] fix saving cache items, sessions and locks to SQL databases after 2038
  • 31f6e38: [ErrorHandler] accept custom thrown error levels in configure()
  • b28b794: [Validator] use the optional parameter marker in the return type of createIsValidCallable()
  • ed26950: [DoctrineBridge] deprecate the getName() methods of the Doctrine types
  • 2ed9b61: [ObjectMapper] resolve a concrete subclass when mapping to an abstract target
  • 6bc05af: [Process] give the null device as standard input when no input is set
  • 9c9598f: [Form] allow closures in the options of #[AsFormType] and #[FormField]

Symfony UX development highlights

3.x changelog:

  • 991bb33: [Toolkit, Bootstrap] use the dark color mode in the dark dropdown and navbar examples
  • f866b26: add the OSS Scanner build and threat model
  • 791e20c: [LiveComponent] don't send X-Live-Url for components without URL props
  • 023b97b: [LiveComponent] keep the value typed into an input rendered without a value attribute
  • fc14261: [Map] fix MortonClusteringAlgorithm swapping latitude and longitude
  • 5783f90: [Map] fix GridClusteringAlgorithm cell keys colliding
  • 12be665: [Toolkit, Shadcn] position the tooltip arrow without an inline style
  • 623e15f: [Toolkit, Common] add password-strength recipe
  • 87ba2e3: [Toolkit, DaisyUI] add the remaining daisyUI recipes
  • f41b00d: [LiveComponent] don't take the time of a date LiveProp from the clock when its format has no time

Symfony AI development highlights

Changelog:

  • aa7f8ca: [Mate] do not fail Composer when discover fails
  • eafa468: [Store] combine vector distance and text match in InMemory hybrid queries
  • 8d27b90: [Agent] add an optional Amp tool executor
  • 20d464f: [Platform] fix JSON Schema describers when the serializer or property-info is disabled
  • 24961f5: [MCP Bundle] check the #[IsGranted] attributes of tools before running the MCP server
  • a17bd48: [Store, Cache] only delete the store's item on drop()
  • 45563cc: [Store, S3Vectors] only delete the store's index on drop()
  • 2f61064: [Store, Milvus] drop the store's collection instead of the database on drop()
  • 11812b0: [Store, Neo4j] only delete the store's nodes and index on drop()
  • 9892d85: [Store, Weaviate] throw when objects of a batch failed to be added
  • 1b191c1: [AI Bundle, Agent] let an empty prefix expose the tools of an MCP server under their own names

Symfony Jobs

These are some of the most recent Symfony job offers:

  • Backend Symfony Developer at Edflex
    Full-time - €45,000 – €55,000 / year
    France Remote + part-time onsite (Nantes, Paris, France)
    View details
  • Symfony Developer at Bas Software
    Full-time - €4,000 – €5,000 / month
    Netherlands Remote + part-time onsite (Eindhoven, Netherlands)
    View details
  • Backend Symfony Developer at UpcoMinds
    Full-time - €2,800 – €3,200 / month
    Greece Remote + part-time onsite (Athens, Greece)
    View details
  • Backend Symfony Developer at MyUnisoft
    Full-time - €45,000 – €50,000 / year
    France Remote + part-time onsite (Montigny-le-Bretonneux, France)
    View details
  • Symfony Developer at Bas Software
    Full-time - €5,500 – €6,500 / month
    Netherlands Remote + part-time onsite (Eindhoven, Netherlands)
    View details

You can publish a Symfony job offer for free on symfony.com.

SymfonyCasts Updates

SymfonyCasts is the official way to learn Symfony. Select a track for a guided path through 100+ video tutorial courses about Symfony, PHP and JavaScript.

This week, SymfonyCasts published the following updates:

Call to Action

Published in #A week of symfony