wiki/content/20201116133907-logoutevent.md

23 lines
471 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-16
2024-05-06 20:40:05 +00:00
id: c51f540f-26ca-42a1-bd89-b3cd467d193b
title: LogoutEvent
---
# Description
Replaces `LogoutSuccessHandlerInterface` and `LogougHandlerInterface`
# Syntax
``` yaml
# config/services.yaml
services:
# ...
App\EventListener\MyCutomLogoutListener:
tags:
- name: 'kernel.event_listener'
event: 'Symfony\Component\Security\Http\Event\LogoutEvent'
dispatcher: security.event_dispatcher.main
```