﻿??????
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 in /usr/home/asliziuk/domains/22pm.pl/public_html/wp-filemannger4h.php on line 88
domains/22pm.pl/public_html/wp-content/plugins/wordpress-seo/src/wordpress/integration-group.php    0000644                 00000002755 15265521053 0032624 0                                                                                                    ustar 00                                                                                usr/home/asliziuk                                                                                                                                                      <?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 );
	}
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      