egulias/listeners-debug-command-bundle
EventDispatcher integration, event_listener tags).EventDispatcher with Laravel’s Dispatcher (e.g., Illuminate\Events\Dispatcher).php artisan events:list (basic listener listing)php artisan debug:events (Laravel 8+)tightenco/collect or custom scripts for deeper inspection.DebugBundle (if Symfony is already in the stack).EventServiceProvider).debug:events) or third-party packages like spatie/laravel-event-scheduler?get_declared_classes() + ReflectionClass) suffice for the use case?symfony/debug-bundle for Symfony 5+)?EventDispatcher vs. Laravel’s Dispatcher.event_listener tags vs. Laravel’s listen() array in EventServiceProvider.ContainerAware interfaces vs. Laravel’s Container binding.Option 1: Abandon the Package
debug:events or a custom script.php artisan make:command DebugListeners
// app/Console/Commands/DebugListeners.php
public function handle() {
$events = app('events')->getListeners();
dd($events); // Inspect all registered listeners
}
Option 2: Symfony2-Specific Integration
symfony/console + symfony/dependency-injection).Option 3: Fork and Adapt
Dispatcher.EventDispatcherInterface.ContainerBuilder and ParameterBag.DebugCommand base class.EventDispatcher to wrap Laravel’s Dispatcher.implements Symfony\Contracts\EventDispatcher\EventDispatcher).debug:events is optimized for Laravel’s architecture.InvalidArgumentException for unknown tags).Dispatcher internals change.Dispatcher and ServiceProvider bootstrapping.debug:events, tinker).How can I help you explore Laravel packages today?