PluginProbe
404 Solution / trunk
404 Solution vtrunk
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / bootstrap / Abj404ServiceRegistrationContract.php

Abj404ServiceRegistrationContract.php in 404 Solution trunk, at includes/bootstrap/Abj404ServiceRegistrationContract.php

165 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 exit;
5 }
6
7 /**
8 * Authoritative service-name contract for container registration.
9 *
10 * Production bootstrap and test bootstrap both implement this contract so
11 * required `abj_service()` lookups stay visible as one list instead of
12 * drifting between runtime factories and PHPUnit defaults.
13 */
14 interface ABJ_404_Solution_Abj404ServiceRegistrationContract {
15
16 public const CORE_SERVICE_NAMES = array(
17 'mb_string_adapter',
18 'regex_helper',
19 'functions',
20 'pii_redactor',
21 'url_encoder',
22 'sanitizer',
23 'query_string_helper',
24 'logging',
25 'clock',
26 'cron_scheduler',
27 'cron_recurrence_migration',
28 'rebuild_health',
29 'error_handler',
30 );
31
32 public const DATA_SERVICE_NAMES = array(
33 'db_core',
34 'content_repository',
35 'redirects_repository',
36 'redirects_retention_service',
37 'redirect_dead_destination_checker',
38 'logs_repository',
39 'stats_repository',
40 'plugin_update_metadata_repository',
41 'view_read_service',
42 'data_access',
43 'database_upgrades',
44 'permalink_cache',
45 'ngram_extractor',
46 'ngram_similarity',
47 'ngram_coverage_policy',
48 'ngram_cache_repository',
49 'ngram_usage_telemetry',
50 'ngram_rebuilder',
51 'ngram_filter',
52 );
53
54 public const DOMAIN_SERVICE_NAMES = array(
55 'plugin_logic',
56 'request_ignore_normalizer',
57 'version_upgrade',
58 'spell_checker',
59 'options_repository',
60 'logging_state_store',
61 'admin_access_policy',
62 'settings_mode_preference',
63 );
64
65 public const MATCHING_ENGINE_SERVICE_NAMES = array(
66 'old_permalink_structure_store',
67 'old_permalink_structure_resolver',
68 'engine_old_permalink_structure',
69 'engine_slug',
70 'engine_url_fix',
71 'engine_title',
72 'engine_category_tag',
73 'engine_content',
74 'engine_spelling',
75 'engine_archive_fallback',
76 'matching_engines',
77 'near_miss_recorder',
78 );
79
80 public const RUNTIME_SERVICE_NAMES = array(
81 'previous_request_cookie_tracker',
82 'not_found_response',
83 'wordpress_connector',
84 'slug_change_handler',
85 'sync_utils',
86 'request_context',
87 'ajax_security_gate',
88 'ajax_failure_logger',
89 'view',
90 'view_suggestions',
91 'shortcode',
92 );
93
94 public const SERVICE_NAMES = array(
95 'mb_string_adapter',
96 'regex_helper',
97 'functions',
98 'pii_redactor',
99 'url_encoder',
100 'sanitizer',
101 'query_string_helper',
102 'logging',
103 'clock',
104 'cron_scheduler',
105 'cron_recurrence_migration',
106 'rebuild_health',
107 'error_handler',
108 'db_core',
109 'content_repository',
110 'redirects_repository',
111 'redirects_retention_service',
112 'redirect_dead_destination_checker',
113 'logs_repository',
114 'stats_repository',
115 'plugin_update_metadata_repository',
116 'view_read_service',
117 'data_access',
118 'database_upgrades',
119 'permalink_cache',
120 'ngram_extractor',
121 'ngram_similarity',
122 'ngram_coverage_policy',
123 'ngram_cache_repository',
124 'ngram_usage_telemetry',
125 'ngram_rebuilder',
126 'ngram_filter',
127 'plugin_logic',
128 'request_ignore_normalizer',
129 'version_upgrade',
130 'spell_checker',
131 'options_repository',
132 'logging_state_store',
133 'admin_access_policy',
134 'settings_mode_preference',
135 'old_permalink_structure_store',
136 'old_permalink_structure_resolver',
137 'engine_old_permalink_structure',
138 'engine_slug',
139 'engine_url_fix',
140 'engine_title',
141 'engine_category_tag',
142 'engine_content',
143 'engine_spelling',
144 'engine_archive_fallback',
145 'matching_engines',
146 'near_miss_recorder',
147 'previous_request_cookie_tracker',
148 'not_found_response',
149 'wordpress_connector',
150 'slug_change_handler',
151 'sync_utils',
152 'request_context',
153 'ajax_security_gate',
154 'ajax_failure_logger',
155 'view',
156 'view_suggestions',
157 'shortcode',
158 );
159
160 /**
161 * @return string[]
162 */
163 public static function serviceNames(): array;
164 }
165