PHP Class App\Listeners\LoveTrackOnLastfm

Mostra file Open project: phanan/koel

Protected Properties

Property Type Description
$lastfm App\services\Lastfm The Last.fm service instance, which is DI'ed into our listener.

Public Methods

Method Description
__construct ( Lastfm $lastfm ) Create the event listener.
handle ( SongLikeToggled $event ) Handle the event.

Method Details

__construct() public method

Create the event listener.
public __construct ( Lastfm $lastfm )
$lastfm App\services\Lastfm

handle() public method

Handle the event.
public handle ( SongLikeToggled $event )
$event App\Events\SongLikeToggled

Property Details

$lastfm protected_oe property

The Last.fm service instance, which is DI'ed into our listener.
protected Lastfm,App\Services $lastfm
return App\services\Lastfm