| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Composition dependency map for the safe autoloader. |
| 8 |
* |
| 9 |
* Maps each "host" facade class to the list of collaborator classes whose |
| 10 |
* files must be present on disk before the host class is loaded. The autoloader |
| 11 |
* (includes/root-boot/Autoloader.php) consults this map so that a corrupt |
| 12 |
* install with a missing collaborator surfaces a degraded admin page instead of |
| 13 |
* an uncatchable compile-time fatal when the host class is required. |
| 14 |
* |
| 15 |
* This is DATA, not logic: it is stored here (outside the entry point) so the |
| 16 |
* entry point stays small and so completeness tests can read the map directly |
| 17 |
* rather than grepping the plugin's main file source. |
| 18 |
* |
| 19 |
* @return array<string, array<int, string>> host class name => collaborator class names |
| 20 |
*/ |
| 21 |
// allow-no-test-found: static data file (returns a class-to-collaborator dependency map, no logic); its completeness against the real classes is asserted directly in AutoloaderTraitDependenciesCompletenessTest. |
| 22 |
return array( |
| 23 |
'ABJ_404_Solution_View' => array( |
| 24 |
'ABJ_404_Solution_ViewComponent', |
| 25 |
'ABJ_404_Solution_View_Shared', |
| 26 |
'ABJ_404_Solution_View_UI', |
| 27 |
'ABJ_404_Solution_View_Stats', |
| 28 |
'ABJ_404_Solution_View_Settings', |
| 29 |
'ABJ_404_Solution_View_Redirects', |
| 30 |
'ABJ_404_Solution_View_RedirectsTable', |
| 31 |
'ABJ_404_Solution_View_CapturedURLsTable', |
| 32 |
'ABJ_404_Solution_View_RedirectForms', |
| 33 |
'ABJ_404_Solution_View_ListTableChrome', |
| 34 |
'ABJ_404_Solution_View_RedirectTypeUI', |
| 35 |
'ABJ_404_Solution_View_RedirectConditions', |
| 36 |
'ABJ_404_Solution_View_Logs', |
| 37 |
), |
| 38 |
'ABJ_404_Solution_DataAccess' => array( |
| 39 |
'ABJ_404_Solution_DatabaseCore', |
| 40 |
'ABJ_404_Solution_ContentRepository', |
| 41 |
'ABJ_404_Solution_RedirectsRepository', |
| 42 |
'ABJ_404_Solution_LogsRepository', |
| 43 |
'ABJ_404_Solution_StatsRepository', |
| 44 |
'ABJ_404_Solution_ViewReadService', |
| 45 |
), |
| 46 |
'ABJ_404_Solution_PluginLogic' => array( |
| 47 |
'ABJ_404_Solution_PluginLogicUrlNormalization', |
| 48 |
'ABJ_404_Solution_PluginLogicAdminActions', |
| 49 |
'ABJ_404_Solution_AdminActionsDependencies', |
| 50 |
'ABJ_404_Solution_PluginLogicImportExport', |
| 51 |
'ABJ_404_Solution_PluginLogicSettingsUpdate', |
| 52 |
'ABJ_404_Solution_PluginLogicPageOrdering', |
| 53 |
'ABJ_404_Solution_PluginLogicLifecycle', |
| 54 |
), |
| 55 |
'ABJ_404_Solution_DatabaseUpgradesEtc' => array( |
| 56 |
'ABJ_404_Solution_DatabaseUpgradeCoordinator', |
| 57 |
'ABJ_404_Solution_DatabaseUpgradeComponent', |
| 58 |
'ABJ_404_Solution_DatabaseUpgradeComponentRegistry', |
| 59 |
'ABJ_404_Solution_DatabaseUpgradeNGram', |
| 60 |
'ABJ_404_Solution_DatabaseUpgradeEngineNormalization', |
| 61 |
'ABJ_404_Solution_DatabaseUpgradeCollationDrift', |
| 62 |
'ABJ_404_Solution_DatabaseUpgradeSelfHeal', |
| 63 |
'ABJ_404_Solution_DatabaseUpgradeCanonicalUrlBackfill', |
| 64 |
'ABJ_404_Solution_DatabaseUpgradeDailyMaintenance', |
| 65 |
'ABJ_404_Solution_DatabaseUpgradePluginUpdate', |
| 66 |
'ABJ_404_Solution_DatabaseUpgradeTableRepair', |
| 67 |
'ABJ_404_Solution_DatabaseUpgradeDropStagedViewTables', |
| 68 |
'ABJ_404_Solution_DatabaseUpgradeIndexes', |
| 69 |
'ABJ_404_Solution_DatabaseUpgradeOrphanAdoption', |
| 70 |
'ABJ_404_Solution_DatabaseUpgradeMultiSite', |
| 71 |
'ABJ_404_Solution_DatabaseUpgradeSchemaDiff', |
| 72 |
), |
| 73 |
'ABJ_404_Solution_FeedbackTransport' => array( |
| 74 |
'ABJ_404_Solution_FeedbackEnvironmentExtras', |
| 75 |
'ABJ_404_Solution_MysqlServerStateProbe', |
| 76 |
'ABJ_404_Solution_PluginSchemaMetadataProbe', |
| 77 |
'ABJ_404_Solution_RollupFreshnessProbe', |
| 78 |
'ABJ_404_Solution_FeedbackEnvironmentExtras_HostProbes', |
| 79 |
'ABJ_404_Solution_FeedbackEnvironmentExtras_PlatformFingerprint', |
| 80 |
'ABJ_404_Solution_FeedbackEnvironmentExtras_DebugLogSignatures', |
| 81 |
), |
| 82 |
'ABJ_404_Solution_DatabaseCore' => array( |
| 83 |
'ABJ_404_Solution_DatabaseConnectionManager', |
| 84 |
'ABJ_404_Solution_DatabaseQueryTimeoutManager', |
| 85 |
'ABJ_404_Solution_DatabaseErrorClassifier', |
| 86 |
'ABJ_404_Solution_DatabaseSqlErrorReporter', |
| 87 |
), |
| 88 |
); |
| 89 |
|