403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/plugins/wordpress-seo/src/wordpress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/plugins/wordpress-seo/src/wordpress/integration-group.php
<?php
/**
 * WPSEO plugin file.
 *
 * @package Yoast\YoastSEO\WordPress;
 */

namespace Yoast\WP\Free\WordPress;

/**
 * Manage integrations and registers hooks at the required moment.
 */
class Integration_Group implements Integration {

	/**
	 * List of integrations.
	 *
	 * @var Integration[]
	 */
	protected $integrations = array();

	/**
	 * Integration_Group constructor.
	 *
	 * @param Integration[] $integrations List of integrations to load.
	 *
	 * @return void
	 */
	public function __construct( array $integrations = array() ) {
		$this->integrations = $this->ensure_integration( $integrations );
	}

	/**
	 * Adds an integration to the group.
	 *
	 * @param Integration $integration The integration to add.
	 *
	 * @return void
	 */
	public function add_integration( Integration $integration ) {
		$this->integrations[] = $integration;
	}

	/**
	 * Initializes all registered integrations.
	 *
	 * @return void
	 */
	public function register_hooks() {
		$register_hooks = function( Integration $integration ) {
			$integration->register_hooks();
		};

		array_map( $register_hooks, $this->integrations );
	}

	/**
	 * Ensures the list of Integrations are loaded.
	 *
	 * @param array $integrations List of Integrations to load.
	 *
	 * @return array List of Integrations.
	 */
	protected function ensure_integration( array $integrations ) {
		$is_integration = function( $integration ) {
			return $integration instanceof Integration;
		};

		return array_filter( $integrations, $is_integration );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit