Uname:Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 13.126.101.145  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rentals_updated/wp-content/plugins/query-monitor/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rentals_updated/wp-content/plugins/query-monitor/classes/Dispatchers.php
<?php declare(strict_types = 1);
/**
 * Container for dispatchers.
 *
 * @package query-monitor
 */

/**
 * @implements \IteratorAggregate<string, QM_Dispatcher>
 */
class QM_Dispatchers implements IteratorAggregate {

	/**
	 * @var array<string, QM_Dispatcher>
	 */
	private $items = array();

	/**
	 * @return ArrayIterator<string, QM_Dispatcher>
	 */
	#[\ReturnTypeWillChange]
	public function getIterator() {
		return new ArrayIterator( $this->items );
	}

	/**
	 * @param QM_Dispatcher $dispatcher
	 * @return void
	 */
	public static function add( QM_Dispatcher $dispatcher ) {
		$dispatchers = self::init();
		$dispatchers->items[ $dispatcher->id ] = $dispatcher;
	}

	/**
	 * @param string $id
	 * @return QM_Dispatcher|false
	 */
	public static function get( $id ) {
		$dispatchers = self::init();

		return $dispatchers->items[ $id ] ?? false;
	}

	/**
	 * @return void
	 */
	public static function cease() {
		$dispatchers = self::init();

		/** @var QM_Dispatcher $dispatcher */
		foreach ( $dispatchers as $dispatcher ) {
			$dispatcher->cease();
		}
	}

	/**
	 * @return self
	 */
	public static function init() {
		static $instance;

		if ( ! $instance ) {
			$instance = new QM_Dispatchers();
		}

		return $instance;

	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit