Skip to content

Instantly share code, notes, and snippets.

@crynobone
Created August 28, 2012 16:18
Show Gist options
  • Save crynobone/3499793 to your computer and use it in GitHub Desktop.
Save crynobone/3499793 to your computer and use it in GitHub Desktop.
Overwriting `oneauth.logged` default event listener
<?php
// In order to overwrite the default listener we must add the event overwrite
// after the bundle is started.
Event::listen('laravel.started: oneauth', function ()
{
Event::clear('oneauth.logged');
Event::listen('oneauth.logged', function ($client, $userdata)
{
// Add your replacement here.
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment