\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/ob-wp-eski/wp-content/plugins/wordpress-seo/src/wordpress/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/ob-wp-eski/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 );
}
}