wiki/content/20201113175527-event_listeners.md

21 lines
322 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +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)