Skip to content

Instantly share code, notes, and snippets.

@smottt
Last active September 26, 2015 09:28
Show Gist options
  • Save smottt/1075745 to your computer and use it in GitHub Desktop.
Save smottt/1075745 to your computer and use it in GitHub Desktop.
Symfony2 Custom Login Even Listener
services:
login_listener:
class: 'Acme\UserBundle\Listener\LoginListener'
arguments: ['@security.context', '@doctrine']
tags:
- { name: 'kernel.event_listener', event: 'security.interactive_login' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment