private function getSortedRegistry($eventName) {
		
		if(!isset($this->sortedRegistry[$eventName])) {
			
			$this->sortedRegistry[$eventName] = [];
			
			if (isset($this->registry[$eventName])) {
				
				// sort reverse by priority key

				krsort($this->registry[$eventName]);
				
				// merge the sorted arrays into one

				$this->sortedRegistry[$eventName] = call_user_func_array('array_merge', $this->registry[$eventName]);
			}
		}

		return $this->sortedRegistry[$eventName];

	}
private function getSortedRegistry($eventName) {
		
		if(!isset($this->sortedRegistry[$eventName])) {
			
			$this->sortedRegistry[$eventName] = [];
			
			if (isset($this->registry[$eventName])) {
				
				// sort reverse by priority key

				krsort($this->registry[$eventName]);
				
				// merge the sorted arrays into one

				$this->sortedRegistry[$eventName] = call_user_func_array('array_merge', $this->registry[$eventName]);
			}
		}

		return $this->sortedRegistry[$eventName];

	}
private function getSortedRegistry ( $ eventName ) { if ( ! isset ( $ this -> sortedRegistry [ $ eventName ] ) ) { $ this -> sortedRegistry [ $ eventName ] = [ ] ; if ( isset ( $ this -> registry [ $ eventName ] ) ) { // sort reverse by priority key krsort ( $ this -> registry [ $ eventName ] ) ; // merge the sorted arrays into one $ this -> sortedRegistry [ $ eventName ] = call_user_func_array ( 'array_merge' , $ this -> registry [ $ eventName ] ) ; } } return $ this -> sortedRegistry [ $ eventName ] ; }
helper method to collect all listener callbacks for a named event
into one array observing priorities

@param string $eventName
@return array
helper method to collect all listener callbacks for a named event into one array observing priorities