PluginProbe
404 Solution / 4.3.3
404 Solution v4.3.3
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 / data / required-runtime-files.php

required-runtime-files.php in 404 Solution 4.3.3, at includes/data/required-runtime-files.php

90 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) {
3 exit;
4 }
5
6 /**
7 * Static lists of files required for a healthy runtime/plugin package.
8 *
9 * This is DATA, not logic: it is stored here (outside the entry point) so the
10 * entry point stays small and so the SQL-integrity completeness test can read
11 * the list directly rather than grepping the plugin's main file source.
12 *
13 * Paths are stored relative to the plugin's includes/ directory (and, for the
14 * report schema, relative to the plugin root). abj404_get_required_runtime_files()
15 * resolves them to absolute paths and merges in the dynamic classmap file list.
16 *
17 * Keys:
18 * - 'boot' : boot-critical PHP and asset files, relative to includes/.
19 * - 'sql' : SQL template files, relative to includes/ (i.e. "sql/foo.sql").
20 * A test (SqlFileIntegrityListCompletenessTest) verifies this list
21 * stays in sync with the actual files in includes/sql/.
22 * - 'root' : files relative to the plugin root (not includes/).
23 *
24 * @return array{boot: array<int, string>, sql: array<int, string>, root: array<int, string>}
25 */
26 // allow-no-test-found: static data file (returns boot/sql/root required-file lists, no logic); the lists are verified against the real on-disk files in SqlFileIntegrityListCompletenessTest and BootResilienceTest.
27 return array(
28 'boot' => array(
29 'Loader.php',
30 'bootstrap.php',
31 'bootstrap/CoreServiceRegistration.php',
32 'bootstrap/DataServiceRegistration.php',
33 'bootstrap/DomainServiceRegistration.php',
34 'bootstrap/MatchingEngineServiceRegistration.php',
35 'bootstrap/RuntimeServiceRegistration.php',
36 'bootstrap/LegacyInstanceResolver.php',
37 'bootstrap/service-locator.php',
38 'classmap.php',
39 'ajax/SupportRequest.js',
40 'js/support-request-button.js',
41 'js/support-request-transport.js',
42 'js/support-request-modal-view.js',
43 'js/diagnosticDataCard.js',
44 ),
45 'sql' => array(
46 'sql/correctLookupTableIssue.sql',
47 'sql/createEngineProfilesTable.sql',
48 'sql/createLogTable.sql',
49 'sql/createLogsHitsPreAggTempTable.sql',
50 'sql/createLogsHitsTempTable.sql',
51 'sql/createLookupTable.sql',
52 'sql/createNGramCacheTable.sql',
53 'sql/createPermalinkCacheTable.sql',
54 'sql/createRedirectConditionsTable.sql',
55 'sql/createRedirectsTable.sql',
56 'sql/createSpellingCacheTable.sql',
57 'sql/createViewCacheTable.sql',
58 'sql/deleteOldLogs.sql',
59 'sql/getAdditionalPostData.sql',
60 'sql/getLogRecords.sql',
61 'sql/getLogsCount.sql',
62 'sql/getDistinctLoggedUrls.sql',
63 'sql/getLogsIDandURL.sql',
64 'sql/getLogsIDandURLForAjax.sql',
65 'sql/getMostUnusedRedirects.sql',
66 'sql/getOrphanedAutoRedirects.sql',
67 'sql/getPermalinkFromURL.sql',
68 'sql/getPostsNeedingContentKeywords.sql',
69 'sql/getPublishedCategories.sql',
70 'sql/getPublishedCategoryCount.sql',
71 'sql/getPublishedPagesAndPostsIDs.sql',
72 'sql/getPublishedTagCount.sql',
73 'sql/getPublishedTags.sql',
74 'sql/getPublishedTermsByIds.sql',
75 'sql/getRedirectsExport.sql',
76 'sql/getRedirectsForViewTempTable.sql',
77 'sql/importDataFromPluginRedirectioner.sql',
78 'sql/insertPermalinkCache.sql',
79 'sql/insertSpellingCache.sql',
80 'sql/logsSetMinLogID.sql',
81 'sql/migrateToNewLogsTable.sql',
82 'sql/selectTableEngines.sql',
83 'sql/updatePermalinkCache.sql',
84 'sql/updatePermalinkCacheParentPages.sql',
85 ),
86 'root' => array(
87 'contracts/schemas/report.schema.json',
88 ),
89 );
90