---
title: "New in Symfony 8.1: Dynamic Controller Attributes (Symfony Blog)"
url: https://daily.dev/posts/new-in-symfony-8-1-dynamic-controller-attributes-symfony-blog--p1eaqpp8q
source_url: https://symfony.com/blog/new-in-symfony-8-1-dynamic-controller-attributes
type: article
source: "Symfony"
published: 2026-05-13T08:48:15.710Z
updated: 2026-08-24T07:04:03.623Z
tags: ["php", "symfony"]
reading_time: 4
upvotes: 4
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New in Symfony 8.1: Dynamic Controller Attributes (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 4 min read · 4 upvotes · 0 comments

## Summary

Symfony 8.1 introduces dynamic controller attributes, a significant improvement over the previous static reflection-only approach. Attributes like #[Cache], #[IsGranted], and #[Template] are now stored in a request attribute (_controller_attributes), allowing event listeners to override them at runtime without modifying source code. The update also adds a flat list retrieval mode for getAttributes(), exposes controllerArgumentsEvent on ResponseEvent, and introduces dedicated per-attribute kernel events following the convention {kernelEvent}.{AttributeFQCN}. This enables clean, decoupled attribute-based listeners — demonstrated with a custom #[RateLimit] attribute example. Built-in listeners have been migrated to the new system.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/new-in-symfony-8-1-dynamic-controller-attributes>

## Similar posts on daily.dev

- [New in Symfony 7.4: Attribute Improvements \(Symfony Blog\)](https://daily.dev/posts/new-in-symfony-7-4-attribute-improvements-symfony-blog--0dftx5qrt) · Symfony · 0 upvotes · 0 comments
- [Symfony 8.1 curated new features \(Symfony Blog\)](https://daily.dev/posts/symfony-8-1-curated-new-features-symfony-blog--9qonflcdy) · Symfony · 4 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/new-in-symfony-8-1-dynamic-controller-attributes-symfony-blog--p1eaqpp8q)
