6use InvalidArgumentException;
10use UnexpectedValueException;
89 'LateJSConfigVarNames',
90 'TempUserSerialProviders',
91 'TempUserSerialMappings',
92 'DatabaseVirtualDomains',
93 'UserOptionsStoreProviders',
94 'NotificationHandlers',
95 'NotificationMiddleware',
96 'RecentChangeSources',
97 'ShadowPageProviders',
98 'CodeHighlightProviders',
108 'wgAddGroups' =>
'array_merge_recursive',
109 'wgAuthManagerAutoConfig' =>
'array_plus_2d',
110 'wgCapitalLinkOverrides' =>
'array_plus',
111 'wgExtraGenderNamespaces' =>
'array_plus',
112 'wgGrantPermissions' =>
'array_plus_2d',
113 'wgGroupPermissions' =>
'array_plus_2d',
114 'wgHooks' =>
'array_merge_recursive',
115 'wgNamespaceContentModels' =>
'array_plus',
116 'wgNamespaceProtection' =>
'array_plus',
117 'wgNamespacesWithSubpages' =>
'array_plus',
118 'wgPasswordPolicy' =>
'array_merge_recursive',
119 'wgRateLimits' =>
'array_plus_2d',
120 'wgRemoveGroups' =>
'array_merge_recursive',
121 'wgRevokePermissions' =>
'array_plus_2d',
147 'load_composer_autoloader',
152 'AutoloadNamespaces',
153 'ExtensionMessagesFiles',
154 'TranslationAliasesDirs',
155 'ForeignResourcesDir',
157 'DomainEventIngresses',
158 'MessagePosterModule',
162 'ResourceFileModulePaths',
163 'ResourceModuleSkinStyles',
165 'ServiceWiringFiles',
176 'wgExtensionMessagesFiles' => [],
177 'wgRestAPIAdditionalRouteFiles' => [],
178 'wgMessagesDirs' => [],
179 'TranslationAliasesDirs' => [],
252 $json = file_get_contents(
$path );
253 $info = json_decode( $json,
true );
256 throw new RuntimeException(
"Failed to load JSON data from $path" );
259 $this->
extractInfo( $path, $info, $info[
'manifest_version'] );
268 $dir = dirname(
$path );
281 if ( isset( $info[
'ServiceWiringFiles'] ) ) {
283 'wgServiceWiringFiles',
285 $info[
'ServiceWiringFiles']
289 if ( isset( $info[
'callback'] ) ) {
290 $this->callbacks[$name] = $info[
'callback'];
293 $this->extractAutoload( $info, $dir );
297 if ( $version >= 2 ) {
305 if ( isset( $info[
'ParsoidModules'] ) ) {
306 foreach ( $info[
'ParsoidModules'] as &$module ) {
307 if ( is_string( $module ) ) {
308 $className = $module;
310 'class' => $className,
313 $module[
'name'] ??= $name;
314 $module[
'extension-name'] = $name;
320 if ( $version >= 2 ) {
324 foreach ( $info as $key => $val ) {
326 if ( in_array( $key, self::$globalSettings ) ) {
331 if ( $key[0] ===
'@' ) {
335 if ( $version >= 2 ) {
337 if ( in_array( $key, self::CORE_ATTRIBS ) ) {
338 $this->
storeToArray( $path, $key, $val, $this->attributes );
342 if ( !in_array( $key, self::NOT_ATTRIBS )
343 && !in_array( $key, self::CREDIT_ATTRIBS )
357 if ( isset( $info[
'attributes'] ) ) {
358 foreach ( $info[
'attributes'] as $extName => $value ) {
367 foreach ( $this->globals as $key => $val ) {
368 if ( isset( self::MERGE_STRATEGIES[$key] ) ) {
374 foreach ( $this->extAttributes as $extName => $value ) {
376 if ( isset( $this->credits[$extName] ) ) {
377 foreach ( $value as $attrName => $attrValue ) {
380 $extName . $attrName,
385 unset( $this->extAttributes[$extName] );
398 'autoloaderClasses' =>
$autoload[
'classes'],
399 'autoloaderNS' =>
$autoload[
'namespaces'],
406 if ( !$includeDev || !isset( $info[
'dev-requires'] ) ) {
407 return $info[
'requires'] ?? [];
410 if ( !isset( $info[
'requires'] ) ) {
411 return $info[
'dev-requires'] ?? [];
421 $pick =
static function ( $a, $b ) {
424 } elseif ( $b ===
null ) {
431 $req = $info[
'requires'];
432 $dev = $info[
'dev-requires'];
433 if ( isset( $req[
'MediaWiki'] ) || isset( $dev[
'MediaWiki'] ) ) {
434 $merged[
'MediaWiki'] = $pick(
435 $req[
'MediaWiki'] ??
null,
436 $dev[
'MediaWiki'] ??
null
440 $platform = array_merge(
441 array_keys( $req[
'platform'] ?? [] ),
442 array_keys( $dev[
'platform'] ?? [] )
445 foreach ( $platform as $pkey ) {
446 if ( $pkey ===
'php' ) {
448 $req[
'platform'][
'php'] ??
null,
449 $dev[
'platform'][
'php'] ??
null
454 $value = $dev[
'platform'][$pkey] ?? $req[
'platform'][$pkey];
456 $merged[
'platform'][$pkey] = $value;
460 foreach ( [
'extensions',
'skins' ] as $thing ) {
461 $things = array_merge(
462 array_keys( $req[$thing] ?? [] ),
463 array_keys( $dev[$thing] ?? [] )
465 foreach ( $things as $name ) {
466 $merged[$thing][$name] = $pick(
467 $req[$thing][$name] ??
null,
468 $dev[$thing][$name] ??
null
488 private function setArrayHookHandler(
490 array $hookHandlersAttr,
494 if ( isset( $callback[
'handler'] ) ) {
495 $handlerName = $callback[
'handler'];
496 $handlerDefinition = $hookHandlersAttr[$handlerName] ??
false;
497 if ( !$handlerDefinition ) {
498 throw new UnexpectedValueException(
499 "Missing handler definition for $name in HookHandlers attribute in $path"
502 $callback[
'handler'] = $handlerDefinition;
503 $callback[
'extensionPath'] =
$path;
504 $this->attributes[
'Hooks'][$name][] = $callback;
506 foreach ( $callback as $callable ) {
507 if ( is_array( $callable ) ) {
508 if ( isset( $callable[
'handler'] ) ) {
509 $this->setArrayHookHandler( $callable, $hookHandlersAttr, $name,
$path );
511 $this->globals[
'wgHooks'][$name][] = $callable;
513 } elseif ( is_string( $callable ) ) {
514 $this->setStringHookHandler( $callable, $hookHandlersAttr, $name,
$path );
530 private function setStringHookHandler(
532 array $hookHandlersAttr,
536 if ( isset( $hookHandlersAttr[$callback] ) ) {
538 'handler' => $hookHandlersAttr[$callback],
539 'extensionPath' =>
$path
541 $this->attributes[
'Hooks'][$name][] = $handler;
543 $this->globals[
'wgHooks'][$name][] = $callback;
556 $extName = $info[
'name'];
557 if ( isset( $info[
'Hooks'] ) ) {
558 $hookHandlersAttr = [];
559 foreach ( $info[
'HookHandlers'] ?? [] as $name => $def ) {
560 $hookHandlersAttr[$name] = [
'name' =>
"$extName-$name" ] + $def;
562 foreach ( $info[
'Hooks'] as $name => $callback ) {
563 if ( is_string( $callback ) ) {
564 $this->setStringHookHandler( $callback, $hookHandlersAttr, $name,
$path );
565 } elseif ( is_array( $callback ) ) {
566 $this->setArrayHookHandler( $callback, $hookHandlersAttr, $name,
$path );
570 if ( isset( $info[
'DeprecatedHooks'] ) ) {
571 $deprecatedHooks = [];
572 foreach ( $info[
'DeprecatedHooks'] as $name => $deprecatedHookInfo ) {
573 $deprecatedHookInfo += [
'component' => $extName ];
574 $deprecatedHooks[$name] = $deprecatedHookInfo;
576 if ( isset( $this->attributes[
'DeprecatedHooks'] ) ) {
577 $this->attributes[
'DeprecatedHooks'] += $deprecatedHooks;
579 $this->attributes[
'DeprecatedHooks'] = $deprecatedHooks;
591 $this->attributes[
'DomainEventIngresses'] ??= [];
592 foreach ( $info[
'DomainEventIngresses'] ?? [] as $subscriber ) {
593 $subscriber[
'extensionPath'] =
$path;
594 $this->attributes[
'DomainEventIngresses'][] = $subscriber;
602 if ( isset( $info[
'namespaces'] ) ) {
603 foreach ( $info[
'namespaces'] as $ns ) {
604 if ( defined( $ns[
'constant'] ) ) {
607 $id = constant( $ns[
'constant'] );
611 $this->defines[ $ns[
'constant'] ] = $id;
613 if ( !( isset( $ns[
'conditional'] ) && $ns[
'conditional'] ) ) {
615 $this->attributes[
'ExtensionNamespaces'][$id] = $ns[
'name'];
617 if ( isset( $ns[
'movable'] ) && !$ns[
'movable'] ) {
618 $this->attributes[
'ImmovableNamespaces'][] = $id;
620 if ( isset( $ns[
'gender'] ) ) {
621 $this->globals[
'wgExtraGenderNamespaces'][$id] = $ns[
'gender'];
623 if ( isset( $ns[
'subpages'] ) && $ns[
'subpages'] ) {
624 $this->globals[
'wgNamespacesWithSubpages'][$id] =
true;
626 if ( isset( $ns[
'content'] ) && $ns[
'content'] ) {
627 $this->globals[
'wgContentNamespaces'][] = $id;
629 if ( isset( $ns[
'defaultcontentmodel'] ) ) {
630 $this->globals[
'wgNamespaceContentModels'][$id] = $ns[
'defaultcontentmodel'];
632 if ( isset( $ns[
'protection'] ) ) {
633 $this->globals[
'wgNamespaceProtection'][$id] = $ns[
'protection'];
635 if ( isset( $ns[
'capitallinkoverride'] ) ) {
636 $this->globals[
'wgCapitalLinkOverrides'][$id] = $ns[
'capitallinkoverride'];
638 if ( isset( $ns[
'includable'] ) && !$ns[
'includable'] ) {
639 $this->globals[
'wgNonincludableNamespaces'][] = $id;
646 $defaultPaths = $info[
'ResourceFileModulePaths'] ??
false;
647 if ( isset( $defaultPaths[
'localBasePath'] ) ) {
648 if ( $defaultPaths[
'localBasePath'] ===
'' ) {
650 $defaultPaths[
'localBasePath'] = $dir;
652 $defaultPaths[
'localBasePath'] =
"$dir/{$defaultPaths['localBasePath']}";
656 foreach ( [
'ResourceModules',
'ResourceModuleSkinStyles',
'OOUIThemePaths' ] as $setting ) {
657 if ( isset( $info[$setting] ) ) {
658 foreach ( $info[$setting] as $name => $data ) {
659 if ( isset( $data[
'localBasePath'] ) ) {
660 if ( $data[
'localBasePath'] ===
'' ) {
662 $data[
'localBasePath'] = $dir;
664 $data[
'localBasePath'] =
"$dir/{$data['localBasePath']}";
667 if ( $defaultPaths ) {
668 $data += $defaultPaths;
670 $this->attributes[$setting][$name] = $data;
675 if ( isset( $info[
'QUnitTestModule'] ) ) {
676 $data = $info[
'QUnitTestModule'];
677 if ( isset( $data[
'localBasePath'] ) ) {
678 if ( $data[
'localBasePath'] ===
'' ) {
680 $data[
'localBasePath'] = $dir;
682 $data[
'localBasePath'] =
"$dir/{$data['localBasePath']}";
685 $this->attributes[
'QUnitTestModule'][
"test.{$info['name']}"] = $data;
688 if ( isset( $info[
'MessagePosterModule'] ) ) {
689 $data = $info[
'MessagePosterModule'];
690 $basePath = $data[
'localBasePath'] ??
'';
691 $baseDir = $basePath ===
'' ? $dir :
"$dir/$basePath";
692 foreach ( $data[
'scripts'] ?? [] as $scripts ) {
693 $this->attributes[
'MessagePosterModule'][
'scripts'][] =
696 foreach ( $data[
'dependencies'] ?? [] as $dependency ) {
697 $this->attributes[
'MessagePosterModule'][
'dependencies'][] = $dependency;
703 if ( isset( $info[
'ExtensionMessagesFiles'] ) ) {
704 foreach ( $info[
'ExtensionMessagesFiles'] as &$file ) {
705 $file =
"$dir/$file";
707 $this->globals[
"wgExtensionMessagesFiles"] += $info[
'ExtensionMessagesFiles'];
713 if ( isset( $info[
'RestModuleFiles'] ) ) {
714 foreach ( $info[
'RestModuleFiles'] as &$file ) {
715 $this->globals[
"wg$var"][] =
"$dir/$file";
728 if ( isset( $info[
'MessagesDirs'] ) ) {
729 foreach ( $info[
'MessagesDirs'] as $name => $files ) {
730 foreach ( (array)$files as $file ) {
731 $this->globals[
"wgMessagesDirs"][$name][] =
"$dir/$file";
745 foreach ( $info[
'TranslationAliasesDirs'] ?? [] as $name => $files ) {
746 foreach ( (array)$files as $file ) {
747 $this->globals[
'wgTranslationAliasesDirs'][$name][] =
"$dir/$file";
759 if ( isset( $info[
'ValidSkinNames'] ) ) {
760 foreach ( $info[
'ValidSkinNames'] as $skinKey => $data ) {
761 if ( isset( $data[
'args'][0] ) ) {
762 $templateDirectory = $data[
'args'][0][
'templateDirectory'] ??
'templates';
763 $data[
'args'][0][
'templateDirectory'] = $dir .
'/' . $templateDirectory;
765 $this->globals[
'wgValidSkinNames'][$skinKey] = $data;
778 if ( isset( $info[
'RateLimits'] ) ) {
779 $rights = array_keys( $info[
'RateLimits'] );
781 if ( isset( $info[
'AvailableRights'] ) ) {
782 $rights = array_diff( $rights, $info[
'AvailableRights'] );
785 $this->globals[
'wgImplicitRights'] = array_merge(
786 $this->globals[
'wgImplicitRights'] ?? [],
797 if ( isset( $info[
'SkinLessImportPaths'] ) ) {
798 foreach ( $info[
'SkinLessImportPaths'] as $skin => $subpath ) {
799 $this->attributes[
'SkinLessImportPaths'][$skin] =
"$dir/$subpath";
816 foreach ( self::CREDIT_ATTRIBS as $attr ) {
817 if ( isset( $info[$attr] ) ) {
826 if ( isset( $this->credits[$name] ) ) {
827 $firstPath = $this->credits[$name][
'path'];
829 throw new InvalidArgumentException(
830 "It was attempted to load $name twice, from $firstPath and $secondPath."
840 if ( array_key_exists(
'ForeignResourcesDir', $info ) ) {
841 if ( !is_string( $info[
'ForeignResourcesDir'] ) ) {
842 throw new InvalidArgumentException(
"Incorrect ForeignResourcesDir type, must be a string (in $name)" );
844 $this->attributes[
'ForeignResourcesDir'][$name] =
"{$dir}/{$info['ForeignResourcesDir']}";
849 if ( isset( $info[
'InstallerTasks'] ) ) {
852 $schemaBasePath =
$path .
'/sql';
853 foreach ( $info[
'InstallerTasks'] as $taskSpec ) {
854 $this->attributes[
'InstallerTasks'][]
855 = $taskSpec + [
'schemaBasePath' => $schemaBasePath ];
868 if ( isset( $info[
'config'] ) ) {
869 if ( isset( $info[
'config'][
'_prefix'] ) ) {
870 $prefix = $info[
'config'][
'_prefix'];
871 unset( $info[
'config'][
'_prefix'] );
875 foreach ( $info[
'config'] as $key => $val ) {
876 if ( $key[0] !==
'@' ) {
877 $this->addConfigGlobal(
"$prefix$key", $val, $info[
'name'] );
892 private function applyPath( array $value,
string $dir,
bool $ensurePathSuffix =
false ): array {
895 foreach ( $value as $k => $v ) {
896 if ( $ensurePathSuffix && !str_ends_with( $v,
'/' ) ) {
899 $result[$k] = $dir .
'/' . $v;
914 $prefix = $info[
'config_prefix'] ??
'wg';
915 if ( isset( $info[
'config'] ) ) {
916 foreach ( $info[
'config'] as $key => $data ) {
917 if ( !array_key_exists(
'value', $data ) ) {
918 throw new UnexpectedValueException(
"Missing value for config $key" );
921 $value = $data[
'value'];
922 if ( isset( $data[
'path'] ) && $data[
'path'] ) {
923 if ( is_array( $value ) ) {
924 $value = $this->applyPath( $value, $dir );
926 $value =
"$dir/$value";
929 if ( isset( $data[
'merge_strategy'] ) ) {
930 $value[ExtensionRegistry::MERGE_STRATEGY] = $data[
'merge_strategy'];
932 $this->addConfigGlobal(
"$prefix$key", $value, $info[
'name'] );
944 private function addConfigGlobal( $key, $value, $extName ) {
945 if ( array_key_exists( $key, $this->globals ) ) {
946 throw new RuntimeException(
947 "The configuration setting '$key' was already set by MediaWiki core or"
948 .
" another extension, and cannot be set again by $extName." );
950 if ( isset( $value[ExtensionRegistry::MERGE_STRATEGY] ) &&
951 $value[ExtensionRegistry::MERGE_STRATEGY] ===
'array_merge_recursive' ) {
953 "Using the array_merge_recursive merge strategy in extension.json and skin.json" .
954 " was deprecated in MediaWiki 1.42",
958 $this->globals[$key] = $value;
962 foreach ( $paths as
$path ) {
963 $this->globals[$global][] =
"$dir/$path";
976 if ( !is_array( $value ) ) {
977 throw new InvalidArgumentException(
"The value for '$name' should be an array (from $path)" );
979 if ( isset( $array[$name] ) ) {
980 $array[$name] = array_merge_recursive( $array[$name], $value );
982 $array[$name] = $value;
997 if ( !is_array( $value ) ) {
998 throw new InvalidArgumentException(
"The value for '$name' should be an array (from $path)" );
1000 if ( isset( $array[$name] ) ) {
1001 $array[$name] = array_merge( $array[$name], $value );
1003 $array[$name] = $value;
1022 $autoload = $this->autoload;
1024 if ( $includeDev ) {
1025 $autoload[
'classes'] += $this->autoloadDev[
'classes'];
1026 $autoload[
'namespaces'] += $this->autoloadDev[
'namespaces'];
1031 if ( !empty( $this->autoloadDev[
'files'] ) ) {
1034 $autoload[
'files'] = array_merge(
1036 $this->autoloadDev[
'files']
1044 private function extractAutoload( array $info,
string $dir ) {
1045 if ( isset( $info[
'load_composer_autoloader'] ) && $info[
'load_composer_autoloader'] ===
true ) {
1046 $file =
"$dir/vendor/autoload.php";
1047 if ( file_exists( $file ) ) {
1048 $this->autoload[
'files'][] = $file;
1052 if ( isset( $info[
'AutoloadClasses'] ) ) {
1053 $paths = $this->applyPath( $info[
'AutoloadClasses'], $dir );
1054 $this->autoload[
'classes'] += $paths;
1057 if ( isset( $info[
'AutoloadNamespaces'] ) ) {
1058 $paths = $this->applyPath( $info[
'AutoloadNamespaces'], $dir,
true );
1059 $this->autoload[
'namespaces'] += $paths;
1062 if ( isset( $info[
'TestAutoloadClasses'] ) ) {
1063 $paths = $this->applyPath( $info[
'TestAutoloadClasses'], $dir );
1064 $this->autoloadDev[
'classes'] += $paths;
1067 if ( isset( $info[
'TestAutoloadNamespaces'] ) ) {
1068 $paths = $this->applyPath( $info[
'TestAutoloadNamespaces'], $dir,
true );
1069 $this->autoloadDev[
'namespaces'] += $paths;
1075class_alias( ExtensionProcessor::class,
'ExtensionProcessor' );
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
if(!defined('MW_SETUP_CALLBACK'))
A class containing constants representing the names of configuration variables.
const HiddenPrefs
Name constant for the HiddenPrefs setting, for use with Config::get()
const DefaultUserOptions
Name constant for the DefaultUserOptions setting, for use with Config::get()
const FeedClasses
Name constant for the FeedClasses setting, for use with Config::get()
const AvailableRights
Name constant for the AvailableRights setting, for use with Config::get()
const APIListModules
Name constant for the APIListModules setting, for use with Config::get()
const APIFormatModules
Name constant for the APIFormatModules setting, for use with Config::get()
const ImplicitGroups
Name constant for the ImplicitGroups setting, for use with Config::get()
const RemoveCredentialsBlacklist
Name constant for the RemoveCredentialsBlacklist setting, for use with Config::get()
const LogRestrictions
Name constant for the LogRestrictions setting, for use with Config::get()
const ExtensionFunctions
Name constant for the ExtensionFunctions setting, for use with Config::get()
const ActionFilteredLogs
Name constant for the ActionFilteredLogs setting, for use with Config::get()
const RevokePermissions
Name constant for the RevokePermissions setting, for use with Config::get()
const RecentChangesFlags
Name constant for the RecentChangesFlags setting, for use with Config::get()
const GroupsRemoveFromSelf
Name constant for the GroupsRemoveFromSelf setting, for use with Config::get()
const Actions
Name constant for the Actions setting, for use with Config::get()
const CentralIdLookupProviders
Name constant for the CentralIdLookupProviders setting, for use with Config::get()
const ExtensionEntryPointListFiles
Name constant for the ExtensionEntryPointListFiles setting, for use with Config::get()
const APIModules
Name constant for the APIModules setting, for use with Config::get()
const LogNames
Name constant for the LogNames setting, for use with Config::get()
const SpecialPages
Name constant for the SpecialPages setting, for use with Config::get()
const UserRegistrationProviders
Name constant for the UserRegistrationProviders setting, for use with Config::get()
const AuthManagerAutoConfig
Name constant for the AuthManagerAutoConfig setting, for use with Config::get()
const FilterLogTypes
Name constant for the FilterLogTypes setting, for use with Config::get()
const LogTypes
Name constant for the LogTypes setting, for use with Config::get()
const ResourceLoaderSources
Name constant for the ResourceLoaderSources setting, for use with Config::get()
const LogHeaders
Name constant for the LogHeaders setting, for use with Config::get()
const JobClasses
Name constant for the JobClasses setting, for use with Config::get()
const RateLimits
Name constant for the RateLimits setting, for use with Config::get()
const MediaHandlers
Name constant for the MediaHandlers setting, for use with Config::get()
const OutputPipelineStages
Name constant for the OutputPipelineStages setting, for use with Config::get()
const GrantRiskGroups
Name constant for the GrantRiskGroups setting, for use with Config::get()
const GrantPermissionGroups
Name constant for the GrantPermissionGroups setting, for use with Config::get()
const GroupPermissions
Name constant for the GroupPermissions setting, for use with Config::get()
const AddGroups
Name constant for the AddGroups setting, for use with Config::get()
const ConfigRegistry
Name constant for the ConfigRegistry setting, for use with Config::get()
const FileExtensions
Name constant for the FileExtensions setting, for use with Config::get()
const SessionProviders
Name constant for the SessionProviders setting, for use with Config::get()
const RawHtmlMessages
Name constant for the RawHtmlMessages setting, for use with Config::get()
const LogActionsHandlers
Name constant for the LogActionsHandlers setting, for use with Config::get()
const LogActions
Name constant for the LogActions setting, for use with Config::get()
const APIPropModules
Name constant for the APIPropModules setting, for use with Config::get()
const PrivilegedGroups
Name constant for the PrivilegedGroups setting, for use with Config::get()
const APIMetaModules
Name constant for the APIMetaModules setting, for use with Config::get()
const GroupsAddToSelf
Name constant for the GroupsAddToSelf setting, for use with Config::get()
const ContentHandlers
Name constant for the ContentHandlers setting, for use with Config::get()
const GrantPermissions
Name constant for the GrantPermissions setting, for use with Config::get()
const ChangeCredentialsBlacklist
Name constant for the ChangeCredentialsBlacklist setting, for use with Config::get()
const ReauthenticateTime
Name constant for the ReauthenticateTime setting, for use with Config::get()
const RemoveGroups
Name constant for the RemoveGroups setting, for use with Config::get()
const PasswordPolicy
Name constant for the PasswordPolicy setting, for use with Config::get()
const ConditionalUserOptions
Name constant for the ConditionalUserOptions setting, for use with Config::get()
const RestAPIAdditionalRouteFiles
Name constant for the RestAPIAdditionalRouteFiles setting, for use with Config::get()