wiki/content/20201113175527-event_listeners.md

21 lines
322 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-13
2024-05-06 20:40:05 +00:00
id: d0882e91-d271-4c96-8d83-16500eadfb85
title: Event Listeners
---
# Syntax
## Pre Symfony 5.0
``` yaml
# config/services.yaml
services:
tags:
- { name: kernel.event_listener, event: kernel.request }
```
## Symfony 5.0
[Simpler Event Listeners](20201113180227-simpler_event_listeners)