src/Events/EventEmitter.php
/**
	 * Executes the callbacks for the specified channel with the provided arguments array.
	 *
	 * @param string $channel
	 * @param array $args
	 */
Executes the callbacks for the specified channel with the provided arguments array.
@param string $channel
@param array $args
Executes the callbacks for the specified channel with the provided arguments array . @param string $channel @param array $args
private function call($channel, array &$args = array()) {
		if (!isset($this->hooks[$channel])) return;
		foreach ($this->hooks[$channel] as $callback) {
			$callback->execute($args);
		}
		$this->clean($channel);
	}
private function call ( $ channel , array & $ args = array ( ) ) { if ( ! isset ( $ this -> hooks [ $ channel ] ) ) return ; foreach ( $ this -> hooks [ $ channel ] as $ callback ) { $ callback -> execute ( $ args ) ; } $ this -> clean ( $ channel ) ; }
Executes the callbacks for the specified channel with the provided arguments array.
Executes the callbacks for the specified channel with the provided arguments array .
// Skip if no callbacks exist // Execute each callback with the provided arguments // Remove inactive callbacks