public static function within($listenerPath, $basePath)
    {
        return collect(static::getListenerEvents(
            (new Finder)->files()->in($listenerPath), $basePath
        ))->mapToDictionary(function ($event, $listener) {
            return [$event => $listener];
        })->all();
    }
public static function within($listenerPath, $basePath)
    {
        return collect(static::getListenerEvents(
            (new Finder)->files()->in($listenerPath), $basePath
        ))->mapToDictionary(function ($event, $listener) {
            return [$event => $listener];
        })->all();
    }
public static function within ( $ listenerPath , $ basePath ) { return collect ( static :: getListenerEvents ( ( new Finder ) -> files ( ) -> in ( $ listenerPath ) , $ basePath ) ) -> mapToDictionary ( function ( $ event , $ listener ) { return [ $ event => $ listener ] ; } ) -> all ( ) ; }
Get all of the events and listeners by searching the given listener directory.

@param  string  $listenerPath
@param  string  $basePath
@return array
Get all of the events and listeners by searching the given listener directory .