PHP code example of egulias / listeners-debug
1. Go to this page and download the library: Download egulias/listeners-debug library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
egulias / listeners-debug example snippets
use Egulias\ListenersDebug\ListenerFetcher;
$fetcher = new ListenerFetcher($containerBuilder);
$listeners = $fetcher->fetchListeners($showPrivate);
$listener = $fetcher->fetchListener($listenerServiceId);
use Egulias\ListenersDebug\ListenerFetcher;
use Egulias\ListenersDebug\ListenerFilter;
$fetcher = new ListenerFetcher($containerBuilder);
$filter = new ListenerFilter();
$listeners = $fetcher->fetchListeners($showPrivate);
$filteredAndOrdered = $filter->filterByEvent($eventName, $listeners, $orderByPriorityAsc);