-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsparxstar-sirus-context.php
More file actions
56 lines (49 loc) · 1.71 KB
/
Copy pathsparxstar-sirus-context.php
File metadata and controls
56 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Plugin Name: SPARXSTAR Sirus — Context Engine
* Plugin URI: https://sparxstar.com
* Description: The network context engine managing environment awareness, device continuity, governance authority, and capability resolution across the Sparxstar ecosystem.
* Version: 1.0.0
* Requires at least: 6.8
* Requires PHP: 8.2
* Author: Starisian Technologies
* Author URI: https://starisian.com
* Text Domain: sparxstar-sirus
* Domain Path: /languages
*/
declare(strict_types=1);
if (! defined('ABSPATH')) {
exit;
}
define('SIRUS_VERSION', '1.0.0');
define('SIRUS_PLUGIN_FILE', __FILE__);
define('SIRUS_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('SIRUS_PLUGIN_SLUG', 'sparxstar-sirus-context');
// Backward compat: define old UEC constants if not already defined.
if (! defined('SPX_ENV_CHECK_VERSION')) {
define('SPX_ENV_CHECK_VERSION', SIRUS_VERSION);
}
if (! defined('SPX_ENV_CHECK_PLUGIN_FILE')) {
define('SPX_ENV_CHECK_PLUGIN_FILE', __FILE__);
}
if (! defined('SPX_ENV_CHECK_PLUGIN_PATH')) {
define('SPX_ENV_CHECK_PLUGIN_PATH', SIRUS_PLUGIN_PATH);
}
if (! defined('SPX_ENV_CHECK_DB_TABLE_NAME')) {
define('SPX_ENV_CHECK_DB_TABLE_NAME', 'sparxstar_env_snapshots');
}
// Load autoloader.
if (file_exists(SIRUS_PLUGIN_PATH . 'vendor/autoload.php')) {
require_once SIRUS_PLUGIN_PATH . 'vendor/autoload.php';
}
// This file is loaded as a must-use plugin, which never fires
// register_activation_hook()/register_deactivation_hook(). Schema creation
// and cron scheduling instead happen on an early boot hook — see
// SirusPlugin::bootSchemaAndCron().
add_action(
'plugins_loaded',
static function (): void {
\Starisian\Sparxstar\Sirus\SirusPlugin::getInstance();
},
10
);