src/Core/Stores/ListenerRegistry.js
/**
     * Register a Listener inside the ListenerRegistry
     *
     * @param {String} label - The listener label
     * @param {Listener} listener - The listener object
     * @memberof ListenerRegistry
     */
Register a Listener inside the ListenerRegistry
@param {String} label - The listener label
@param {Listener} listener - The listener object
@memberof ListenerRegistry
Register a Listener inside the ListenerRegistry @param { String } label - The listener label @param { Listener } listener - The listener object @memberof ListenerRegistry
register(label, listener) {
        if (this.registry.has(label) ) {
            throw new AxonError(`Register [${label}]: Already registered!`, 'LISTENER-REGISTRY', listener.module.label);
        }
        this.add(label, listener);
        this.axon.eventManager.registerListener(listener);
        this.axon.logger.info(`[EVT] => Registered: [${listener.module.label}(${listener.label})] for ${listener.eventName}`);
    }
register ( label , listener ) { if ( this . registry . has ( label ) ) { throw new AxonError ( ` ${ label } ` , 'LISTENER-REGISTRY' , listener . module . label ) ; } this . add ( label , listener ) ; this . axon . eventManager . registerListener ( listener ) ; this . axon . logger . info ( ` ${ listener . module . label } ${ listener . label } ${ listener . eventName } ` ) ; }
Register a Listener inside the ListenerRegistry
 @param {String} label - The listener label
 @param {Listener} listener - The listener object
 @memberof ListenerRegistry
Register a Listener inside the ListenerRegistry @param { String } label - The listener label @param { Listener } listener - The listener object @memberof ListenerRegistry