Files
ogre-consent/inc/class-services.php
T
Cooper Dalrymple 5f702470cc
Validate Build / validate-build (push) Failing after 36s
Initial setup, untested
2026-08-25 14:58:39 -05:00

41 lines
705 B
PHP

<?php
/**
* @package ogre-consent
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 0.0.0
* @since 0.0.0
*/
namespace Ogre\Consent;
use Ogre\Consent as Plugin;
use Ogre\Singleton;
use WP_HTML_Tag_Processor;
defined('ABSPATH') || exit;
final class Services {
use Singleton;
protected array $services = [];
protected function __construct() {
}
public function register(Service $service): void
{
$this->services[] = $service;
}
public function get_config(): array
{
return array_map(fn (Service $service): array => $service->get_config(), $this->services);
}
}
Services::instance();