mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
20 lines
305 B
Markdown
20 lines
305 B
Markdown
|
---
|
||
|
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)
|