Zum Inhalt springen

Symfony Release Notes

Einträge
74
Quellen
1
Zuletzt aktualisiert

Folge Symfony, um die Release Notes in deinen Feed zu holen.

Symfony

New in Symfony 8.2: Security Expressions Everywhere

Security expressions let you use functions such as is\_granted() and is\_authenticated() to define complex access rules in access\_control, #\[IsGranted\] and other security features. Symfony 8.2 makes these functions available in more expressions, such as validation…

Security expressions let you use functions such as is_granted() and is_authenticated() to define complex access rules in access_control, #[IsGranted] and other security features. Symfony 8.2 makes these functions available in more expressions, such as validation constraints and controller attributes.

Security Functions in Validation Constraints

Matthias Perret

Contributed by Matthias Perret in #63719

Sometimes, validation rules depend on who's submitting the data. For example, you might want to limit the length of a blog post summary for most users, while letting editors write longer ones.

In Symfony 8.2, when your application uses both the Validator and Security components, the Expression constraint and the When constraint can use the is_granted(), is_authenticated(), is_fully_authenticated() and is_remember_me() functions:

// src/Entity/BlogPost.php
use Symfony\Component\Validator\Constraints as Assert;

class BlogPost
{ …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Call for IT student volunteers: Join us at all our upcoming Symfony conferences!

Symfony is proud to offer IT students the opportunity to participate as volunteers during its conferences: SymfonyCon Warsaw (Poland) on November 26 – 27, 2026 SymfonyLive Paris (France) on March 25 – 26, 2027 SymfonyLive Cologne (Germany) on May 20 – 21,…

Symfony is proud to offer IT students the opportunity to participate as volunteers during its conferences:

Being a volunteer means: 1 day of participation in the organization of a national or international conference and 1 day free to attend great talks and meet peers! 🤝

ℹ️ Please find below more details:

  • Volunteer assignments: Welcoming, orienting and informing participants during 1 day

  • 📋 Prerequisites:

    • Being a student in computer science / IT (no matter your study path)
    • Have an interest in the following careers: Developers, IT Professionals
    • Availability for at least 1 full day
    • Speak English
  • 🎁 What we offer:

    • Free registration for the 2-day conference
    • Meet and network with Symfony community
    • Attend exciting talks and meet inspiring speakers
    • Lunches
    • Have fun in a inclusive and friendly environment!
  • ❌ We do not cover:

    • Transportation and accommodation
    • Dinners …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Symfony 7.4.22 released

Symfony 7.4.22 has just been released. Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project. Tip…

Symfony 7.4.22 has just been released.

Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project.

Tip

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Changelog Since Symfony 7.4.21

AssetMapper

  • bug #67240 [AssetMapper] Fix importmap:update and importmap:remove deleting vendor files when they fail (@nicolas-grekas)

BrowserKit

  • bug #67235 [BrowserKit] Send a Content-Length header when uploading files (@nicolas-grekas)
  • bug #67104 [BrowserKit] Fix HttpBrowser ignoring UploadedFile instances (@nicolas-grekas) …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Symfony 6.4.49 released

Symfony 6.4.49 has just been released. Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project. Tip…

Symfony 6.4.49 has just been released.

Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project.

Tip

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Changelog Since Symfony 6.4.48

AssetMapper

  • bug #67240 [AssetMapper] Fix importmap:update and importmap:remove deleting vendor files when they fail (@nicolas-grekas)

BrowserKit

  • bug #67235 [BrowserKit] Send a Content-Length header when uploading files (@nicolas-grekas)
  • bug #67104 [BrowserKit] Fix HttpBrowser ignoring UploadedFile instances (@nicolas-grekas) …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Symfony 5.4.55 released

Symfony 5.4.55 has just been released. Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project. Tip…

Symfony 5.4.55 has just been released.

Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project.

Tip

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Changelog Since Symfony 5.4.54

Console

  • bug #67576 [Console] Don't format escaped tags again when sections measure their lines (@nicolas-grekas)
  • minor #67482 [Console][SecurityBundle] Fix two tests that fail on every 5.4 pull request (@nicolas-grekas)

Mime

  • security #cve-2026-45070 [Mime] Reject parameter names containing non-token characters (@alexandre-daubois)
  • bug #67478 [Mime] Escape backslashes in Address::getEncodedName() (@munzzyy) …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Symfony 8.1.10 released

Symfony 8.1.10 has just been released. Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project. Tip…

Symfony 8.1.10 has just been released.

Read the Symfony upgrade guide to learn more about upgrading Symfony and use the SymfonyInsight upgrade reports to detect the code you will need to change in your project.

Tip

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Changelog Since Symfony 8.1.9

AssetMapper

  • bug #67240 [AssetMapper] Fix importmap:update and importmap:remove deleting vendor files when they fail (@nicolas-grekas)

BrowserKit

  • bug #67235 [BrowserKit] Send a Content-Length header when uploading files (@nicolas-grekas)
  • bug #67104 [BrowserKit] Fix HttpBrowser ignoring UploadedFile instances (@nicolas-grekas) …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: Generics and Stricter Types in the Serializer

The Serializer component relies on the TypeInfo component to know the type of each property it denormalizes. Symfony 8.2 makes both components understand more of the types you already write in your PHPDoc, such as generics and arrays of union types, and makes…

The Serializer component relies on the TypeInfo component to know the type of each property it denormalizes. Symfony 8.2 makes both components understand more of the types you already write in your PHPDoc, such as generics and arrays of union types, and makes them stricter about the data they accept.

Generic Types in Denormalization

Yonel Ceruto

Contributed by Yonel Ceruto in #66005

Generic classes are a common way to reuse the same structure for different contents, like a paginated result of products or users. Normalization already worked with them, but when denormalizing, the Serializer ignored the template types. A @var T property was denormalized as its bound, or kept as a plain array when the template had no bound.

In Symfony 8.2, the Serializer resolves template types from the generic type declared on the property that holds the object:

class Product
{
    public string $name = '';
}

/**
 * @template T
 */
class Page
{
    /** @var list<T> */
    public array $items = [];
    public int $total = 0;
}

class ProductCatalog
{
    /** @var Page<Product> */
    public Page $products;
} …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

SymfonyCon Warsaw 2026: Beyond HTML: Colocating Assets in Twig Components

Always better when we learn together. SymfonyCon Warsaw 2026 is happening November 26-27, bringing developers together for 3 tracks of presentations and informal networking. 🎤 Speaker announcement We are delighted to welcome Matthias Krauser,…

Nl Blog Banner

Always better when we learn together. SymfonyCon Warsaw 2026 is happening November 26-27, bringing developers together for 3 tracks of presentations and informal networking.


🎤 Speaker announcement

We are delighted to welcome Matthias Krauser, Senior Developer, neubau kompass, as he takes the stage with his talk Beyond HTML: Colocating Assets in Twig Components. We can't wait to share his insights with you!

"Twig Components have made it easier than ever to build reusable UI components in Symfony. But while templates are often nicely organized, their CSS, JavaScript, images, and other assets usually end up somewhere else.

What if every component could own everything it needs?

In this talk, we'll explore an approach that keeps templates and their assets together, making components easier to understand, reuse, and maintain. While this architecture fits naturally with Atomic Design, it works equally well for any component-based Symfony application. …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: Messenger Inbox

In a previous article, we introduced the Messenger outbox, which saves the messages you send in the same database transaction as your changes. Symfony 8.2 adds the other half of the pattern: an inbox to keep track of messages your application has already…

In a previous article, we introduced the Messenger outbox, which saves the messages you send in the same database transaction as your changes. Symfony 8.2 adds the other half of the pattern: an inbox to keep track of messages your application has already processed.

Skipping Redelivered Messages

Nicolas Grekas

Contributed by Nicolas Grekas in #66957

Brokers deliver messages at least once. If a worker commits the changes of its handlers but crashes (or loses the connection) before acknowledging the message, the broker delivers it again and the handlers run twice. That's how a customer ends up charged twice or receives the same email twice. Until now, you had to make each handler idempotent yourself.

The new inbox transport option lets Messenger recognize these redeliveries and skip handlers that have already completed successfully. Inside the transaction that runs your handlers, Symfony stores the transport name and the message id in a messenger_inbox database table. When a redelivered message is already in that table, its handlers are skipped and the message is acknowledged:

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

30 days until SymfonyCon Warsaw 2026: Schedule highlights, tickets, and final details

Only 30 days left until the global Symfony community comes together for SymfonyCon Warsaw 2026! Join us on November 26-27 for 2 days of inspiring talks, hands-on workshops, and unforgettable community moments. 🎤 Event schedule at a glance November…

Nl Blog Banner

Only 30 days left until the global Symfony community comes together for SymfonyCon Warsaw 2026! Join us on November 26-27 for 2 days of inspiring talks, hands-on workshops, and unforgettable community moments.


🎤 Event schedule at a glance

  • November 24–25: 2 Days of hands-on pre-conference workshops
  • November 26–27: 2 Days of conference talks, 3 tracks, keynotes & unconference sessions
  • November 26 (Evening): Official community party
  • November 28: Hackday (free and open to all!)

🚀 Smile / Upsun track is complete!

We are excited to announce that the schedule for the Smile / Upsun Track is now fully finalized! A huge thank you to Upsun and Smile for sponsoring this track and supporting SymfonyCon Warsaw 2026.

Thursday, November 26

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

Symfony AI 1.0.0-BETA1 + AI & MCP Hackathon

Today we are releasing Symfony AI 1.0.0-BETA1, the first pre-release on the road to 1.0, and also kicking off the Symfony AI & MCP Hackathon: Four weeks of building with Symfony AI and the official PHP MCP SDK to find out what is still wrong with it.…

Today we are releasing Symfony AI 1.0.0-BETA1, the first pre-release on the road to 1.0, and also kicking off the Symfony AI & MCP Hackathon: Four weeks of building with Symfony AI and the official PHP MCP SDK to find out what is still wrong with it.

The hackathon is online, free, and open to everyone. It runs from 26 October to 22 November 2026, and you can register now at symfony.com/hackathon.

What the beta means

The feature set for 1.0 is settled, and from here the work is fixing rather than redesigning. The backward compatibility promise starts at 1.0.0 final, not at this tag. So, if the next four weeks turn up something that genuinely has to move, this is the last window in which it can.

Install it with:

$ composer require symfony/ai-bundle:^1.0@beta

The official PHP MCP SDK (mcp/sdk) is heading for 1.0 right alongside it, and is in scope for the same feedback.

Why a hackathon

Because a beta is only as good as the things people try to do with it. …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

A Week of Symfony #1034 (October 19–25, 2026)

This week, development activity focused on polishing and fixing the new features of the upcoming Symfony 8.2 version. In addition, we showcased some of them, including the new JsonSchema component, signed Messenger transports, safer HTML in translations,…

This week, development activity focused on polishing and fixing the new features of the upcoming Symfony 8.2 version. In addition, we showcased some of them, including the new JsonSchema component, signed Messenger transports, safer HTML in translations, and more MongoDB integrations. Meanwhile, we announced more talks for the SymfonyCon Warsaw 2026 conference.

Symfony development highlights

This week, 404 pull requests were merged (286 in code, 34 in docs, 31 in UX and 53 in AI) and 64 issues were closed (25 in code, 19 in docs, 8 in UX and 12 in AI). Excluding merges, 79 authors made additions and deletions. See details for code, docs, UX and AI.

6.4 changelog: …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: More MongoDB Integrations

Symfony already supports MongoDB for storing sessions and managing locks. In Symfony 8.2, you can also use it to cache data and queue messages with Messenger. MongoDB Cache Adapters…

Symfony already supports MongoDB for storing sessions and managing locks. In Symfony 8.2, you can also use it to cache data and queue messages with Messenger.

MongoDB Cache Adapters

Jérôme Tamarelle

Contributed by Jérôme Tamarelle in #65824

If your application already uses MongoDB, you can now use it for your cache pools too. The Cache component adds two adapters, MongoDbAdapter and MongoDbTagAwareAdapter, which store each cache item as a document. The tag-aware one stores the tags inside that document, so invalidating a tag runs a single delete query.

Both need the mongodb/mongodb library. In Symfony applications, use a mongodb:// (or mongodb+srv://) DSN as the provider of your pools:

# config/packages/cache.yaml
framework:
    cache:
        # the database is read from the DSN path; the collection defaults to "cache_items"
        default_mongodb_provider: '%env(MONGODB_URL)%'

        pools:
            product.cache: …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

SymfonyCon Warsaw 2026: You Are (Not) a Machine

Two days of sharing, learning, and catching up with friends in the ecosystem: SymfonyCon Warsaw 2026 arrives November 26-27 with 3 parallel tracks and community activities. 🎤 Speaker announcement We are honored to have Peter Dietrich, Freelancer,…

Nl Blog Banner

Two days of sharing, learning, and catching up with friends in the ecosystem: SymfonyCon Warsaw 2026 arrives November 26-27 with 3 parallel tracks and community activities.


🎤 Speaker announcement

We are honored to have Peter Dietrich, Freelancer, Gestalt therapist, presenting You Are (Not) a Machine. Expect valuable insights and top-tier expertise!

"In this talk we compare the Symfony HttpKernel and its heavy usage of EventListeners to your own behavior and the "legacy code" event listeners that you developed early in your life, but that might sabotage you today.

This is a mostly non-technical talk, rather centered around mental health."

Click here to see more talks. The full schedule will be unveiled step-by-step over the coming weeks. Stay tuned!

Ready to join us?

🏨 Accommodation …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: HTTP Trailers

HTTP trailers are header fields that servers send after the response body. They are useful when a value is only known once the whole body has been generated, like a checksum of the content or the final status of a streamed operation. The best-known example…

HTTP trailers are header fields that servers send after the response body. They are useful when a value is only known once the whole body has been generated, like a checksum of the content or the final status of a streamed operation. The best-known example is gRPC, which sends the result of each call in the grpc-status and grpc-message trailers. Until now, the HttpClient component discarded them silently.

Reading HTTP Trailers

Grégory PLANCHAT

Contributed by Grégory PLANCHAT in #66256

In Symfony 8.2, responses expose the trailers in a new trailers info item. Its value is null until the transfer completes successfully. Then, it's an empty array when the server sent no trailers, or an array with the same shape as getHeaders(): field names in lowercase, each one mapped to the list of its values:

$response = $client->request('POST', 'https://grpc.example.com/shop.Orders/Create', [
    'http_version' => '2.0',
    // gRPC requires 'te: trailers' to tell the server that the client accepts trailers
    'headers' => ['content-type' => 'application/grpc', 'te' => 'trailers'],
    'body' => $grpcFrame,
]); …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

SymfonyCon Warsaw 2026: Symfony UX + Symfony AI: Taking Agent Interactions to the Next Level

Warsaw is hosting this year’s global Symfony meetup on November 26-27! Come hang out at SymfonyCon Warsaw 2026 to learn, exchange ideas, and meet developers from around the world. 🎤 Speaker announcement Huge welcome to Mathéo Daninos, Core Team…

Nl Blog Banner

Warsaw is hosting this year’s global Symfony meetup on November 26-27! Come hang out at SymfonyCon Warsaw 2026 to learn, exchange ideas, and meet developers from around the world.


🎤 Speaker announcement

Huge welcome to Mathéo Daninos, Core Team Symfony, as he joins our lineup with Symfony UX + Symfony AI: Taking Agent Interactions to the Next Level. Excited to see this live on stage!

"What if we combined Symfony UX and Symfony AI to make our agents even more interactive?

Imagine interacting with an agent not only through text, but also by exploring locations on a map, visualizing data through interactive charts, or selecting exactly what you need with an autocomplete, all using components you make available to your agents.

And why stop there? We can also expose tools that let them act directly on the frontend and update the UI live, thanks to Turbo. …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: Signed Transports and Secret Rotation

Symfony 7.4 introduced signed messages in the Messenger component, so a forged message injected into your queues can't trigger sensitive handlers, like the ones that run commands or processes. Symfony 8.2 moves signing from handlers to transports and lets…

Symfony 7.4 introduced signed messages in the Messenger component, so a forged message injected into your queues can't trigger sensitive handlers, like the ones that run commands or processes. Symfony 8.2 moves signing from handlers to transports and lets you rotate the secrets used to sign messages and other data.

Signing All Messages of a Transport

Nicolas Grekas

Contributed by Nicolas Grekas in #66505

In Symfony 7.4, you enable signing in the handlers that need it (e.g. with #[AsMessageHandler(sign: true)]). When a message arrives, Symfony must read its type to know if its handler requires a signature, which means reading unverified data and autoloading the class named in it.

Symfony 8.2 adds a sign option to transports. All messages sent to these transports are signed, and received messages without a valid signature are refused before reading anything from them:

YAML PHP

# config/packages/messenger.yaml
framework:
    messenger:
        failure_transport: failed …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

SymfonyCon Warsaw 2026: Your Parents Holidayed in Yugoslavia

Whether you've been using Symfony for years or just started, SymfonyCon Warsaw 2026 is a great place to connect. Join us in Poland on Nov 26-27 for 3 tracks of community talks and side events. 🎤 Speaker announcement We're happy to confirm Marek…

Nl Blog Banner

Whether you've been using Symfony for years or just started, SymfonyCon Warsaw 2026 is a great place to connect. Join us in Poland on Nov 26-27 for 3 tracks of community talks and side events.


🎤 Speaker announcement

We're happy to confirm Marek Matulka, Senior Software Engineer, Super Marek Consulting, for his presentation Your Parents Holidayed in Yugoslavia. We can't wait to bring his experience to our community!

"Your parents flew to Split for their summer holiday. They went to Yugoslavia. Yugoslavia doesn't exist any more, so why does your flight tracker insist they went to Croatia?

That's the question that made me realise my nice, simple CRUD database had quietly stopped being simple. Airlines merge and rebrand. Airports get renamed, and sometimes change country. Borders move. A row that just says "Croatia" rewrites my parents' holiday every time the world does. …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

New in Symfony 8.2: JsonSchema Component

Contributed by Antoine Bluchet in #66685…

Antoine Bluchet

Contributed by Antoine Bluchet in #66685

JSON Schema is the standard way to describe the shape of JSON data. OpenAPI uses it to document the request and response bodies of APIs, and AI agents use it to learn which arguments the tools they call expect (e.g. for MCP servers).

Symfony 8.2 introduces the new JsonSchema component to generate these JSON schemas from your PHP types. Its engine comes from the API Platform json-schema package, without the parts specific to API Platform.

Generating Schemas from PHP Types

The generator turns a TypeInfo type into a JSON Schema. It reads class properties with PropertyInfo, so the schema follows your serializer metadata (groups, name converter, discriminator maps, etc.) and validation constraints:

namespace App\Entity;

use Symfony\Component\Validator\Constraints as Assert;

class Book
{
    public function __construct(
        #[Assert\NotBlank]
        public string $title,
        public ?Author $author = null,
    ) {
    }
}
``` …

Originalquelle(öffnet in neuem Tab)Problem melden

Symfony

SymfonyCon Warsaw 2026: Protect Your Data with Queryable Encryption

Mark your calendars! SymfonyCon Warsaw 2026 takes place November 26-27. Come share knowledge, meet fellow devs, and enjoy two days of community-driven talks across 3 parallel tracks. 🎤 Speaker announcement It’s a pleasure to introduce Jérôme Tamarelle,…

Nl Blog Banner

Mark your calendars! SymfonyCon Warsaw 2026 takes place November 26-27. Come share knowledge, meet fellow devs, and enjoy two days of community-driven talks across 3 parallel tracks.


🎤 Speaker announcement

It’s a pleasure to introduce Jérôme Tamarelle, PHP ecosystem maintainer, MongoDB, who will be speaking on Protect Your Data with Queryable Encryption. Don't miss this opportunity to learn from one of the best!

"Storing your users’ email addresses, dates of birth, or social security numbers in plain text poses a major risk in the event of a database leak. With robust application-side encryption, you can make the data unreadable by the database. But then it becomes impossible to do a WHERE email = :value. How can you secure your sensitive data without sacrificing essential business functionality?

We will see how to implement client-side field encryption with Doctrine and a key management system. The algorithms to use, key management and rotation: learn how to turn your database into a safe without losing your ability to query it." …

Originalquelle(öffnet in neuem Tab)Problem melden