plugin
plugin copied to clipboard
[Feature request] Event listeners autocomplete and clickability for subscribers
trafficstars
Hi!
It is about Laravel event Subscribers: https://laravel.com/docs/8.x/events#writing-event-subscribers
There are two parts of the feature request.
- At first it will be cool to have listeners methods autocomplete (second array item of second argument):
public function subscribe(Dispatcher $events): void
{
$events->listen(
UserRegistered::class,
[self::class, 'afterRegistrationSendNotification']
);
}
- And it should be clickable (like a "go to declaration")
P.S.: It seems like as array-style of callable and it's behaviour.
P.P.S: And now the listener method is marked as unused:

Yes, and it will be cool, if subscriber" be in code-generation. like "Listener" all needs -- radio button in listener form, which one, listener or subscriber
It's completed by PhpStorm now.