wp-studio 1.7.8-beta2 → 1.7.8-beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +54 -1
  2. package/assets/demo.gif +0 -0
  3. package/dist/cli/{_events-BRGCap7g.mjs → _events-C2dFSpKE.mjs} +2 -2
  4. package/dist/cli/{certificate-manager-Dd4zv2_k.mjs → certificate-manager-BMngpL-s.mjs} +12 -4
  5. package/dist/cli/{index-9Oz-0bqF.mjs → index-CkFXAp-n.mjs} +5 -5
  6. package/dist/cli/{index-CT4S2538.mjs → index-odShRBgM.mjs} +171 -117
  7. package/dist/cli/{login-D4E3GoXe.mjs → login-BeT1uKwW.mjs} +2 -2
  8. package/dist/cli/{logout-DE-RoshK.mjs → logout-BFQJBJD0.mjs} +2 -2
  9. package/dist/cli/main.mjs +3 -2
  10. package/dist/cli/proxy-daemon.mjs +1 -1
  11. package/dist/cli/{resume-DLoXmzNG.mjs → resume-D_K0QEl5.mjs} +1 -1
  12. package/dist/cli/{set-B8YYUENH.mjs → set-C5l116L7.mjs} +2 -2
  13. package/dist/cli/{set-B0L-QiXT.mjs → set-DzcR6sFr.mjs} +2 -2
  14. package/dist/cli/{status-DEOAA0yx.mjs → status-CbXnAskz.mjs} +1 -1
  15. package/dist/cli/{wp-CobSX6C6.mjs → wp-CUKyZNTP.mjs} +1 -1
  16. package/dist/cli/wp-files/latest/available-site-translations.json +1 -1
  17. package/dist/cli/wp-files/latest/languages/admin-de_DE.l10n.php +2 -2
  18. package/dist/cli/wp-files/latest/languages/admin-network-de_DE.l10n.php +1 -1
  19. package/dist/cli/wp-files/latest/languages/admin-pl_PL.l10n.php +2 -2
  20. package/dist/cli/wp-files/latest/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
  21. package/dist/cli/wp-files/latest/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json +1 -1
  22. package/dist/cli/wp-files/latest/languages/de_DE-0eebe503220d4a00341eb011b92769b4.json +1 -1
  23. package/dist/cli/wp-files/latest/languages/de_DE-17179a5f2930647c89151e365f843b6e.json +1 -1
  24. package/dist/cli/wp-files/latest/languages/de_DE-1780a2033cf98d69ce13c2e5c8510004.json +1 -1
  25. package/dist/cli/wp-files/latest/languages/de_DE-1a0cd6a7128913b15c1a10dd68951869.json +1 -1
  26. package/dist/cli/wp-files/latest/languages/de_DE-1bba9045bb07c89671c88a3f328548e8.json +1 -1
  27. package/dist/cli/wp-files/latest/languages/de_DE-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
  28. package/dist/cli/wp-files/latest/languages/de_DE-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
  29. package/dist/cli/wp-files/latest/languages/de_DE-2617ce121227a46077ede6c69aa9fcb5.json +1 -1
  30. package/dist/cli/wp-files/latest/languages/de_DE-270d72d1cff17227d37f3244759cbecb.json +1 -1
  31. package/dist/cli/wp-files/latest/languages/de_DE-28b3c3d595952907e08d98287077426c.json +1 -1
  32. package/dist/cli/wp-files/latest/languages/de_DE-2b390f85a3048c5b4255fb45960b6514.json +1 -1
  33. package/dist/cli/wp-files/latest/languages/de_DE-2c5d274ea625dd91556554ad82901529.json +1 -1
  34. package/dist/cli/wp-files/latest/languages/de_DE-320f4ad9792aaa6dedb1e71cbdf85d57.json +1 -1
  35. package/dist/cli/wp-files/latest/languages/de_DE-440127dd25bde48a531ded36f33e927b.json +1 -1
  36. package/dist/cli/wp-files/latest/languages/de_DE-49c6d4acf36cf3aca9f0b2a77617304f.json +1 -1
  37. package/dist/cli/wp-files/latest/languages/de_DE-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
  38. package/dist/cli/wp-files/latest/languages/de_DE-4bfa11da57ff2600004bb500368247f4.json +1 -1
  39. package/dist/cli/wp-files/latest/languages/de_DE-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
  40. package/dist/cli/wp-files/latest/languages/de_DE-5251f7623766a714c8207c7edb938628.json +1 -1
  41. package/dist/cli/wp-files/latest/languages/de_DE-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
  42. package/dist/cli/wp-files/latest/languages/de_DE-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
  43. package/dist/cli/wp-files/latest/languages/de_DE-6025add6bde16aaeb12787d250f9b414.json +1 -1
  44. package/dist/cli/wp-files/latest/languages/de_DE-60d06fac6f98e8e8f0ec5a945738b660.json +1 -1
  45. package/dist/cli/wp-files/latest/languages/de_DE-68f2cec7514bf8563c723a4d675fcfe6.json +1 -1
  46. package/dist/cli/wp-files/latest/languages/de_DE-7233008897033de5ee0d14f86a42a65a.json +1 -1
  47. package/dist/cli/wp-files/latest/languages/de_DE-7289286ed59e90a8f36ae797df62220b.json +1 -1
  48. package/dist/cli/wp-files/latest/languages/de_DE-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
  49. package/dist/cli/wp-files/latest/languages/de_DE-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
  50. package/dist/cli/wp-files/latest/languages/de_DE-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
  51. package/dist/cli/wp-files/latest/languages/de_DE-7c90cd4398ee2d9d3628c387a87a70e5.json +1 -1
  52. package/dist/cli/wp-files/latest/languages/de_DE-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
  53. package/dist/cli/wp-files/latest/languages/de_DE-7f13c36c641b114bf18cd0bcc9ecc7e0.json +1 -1
  54. package/dist/cli/wp-files/latest/languages/de_DE-803bf1ce2131e13efc590c1bc47851fc.json +1 -1
  55. package/dist/cli/wp-files/latest/languages/de_DE-81c889563f09dd13de1701135dc62941.json +1 -1
  56. package/dist/cli/wp-files/latest/languages/de_DE-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
  57. package/dist/cli/wp-files/latest/languages/de_DE-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
  58. package/dist/cli/wp-files/latest/languages/de_DE-8860e58c20c6a2ab5876a0f07be43bd9.json +1 -1
  59. package/dist/cli/wp-files/latest/languages/de_DE-93882e8f9976382d7f724ac595ed7151.json +1 -1
  60. package/dist/cli/wp-files/latest/languages/de_DE-947c76bb5095da30e16668eec15406b2.json +1 -1
  61. package/dist/cli/wp-files/latest/languages/de_DE-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
  62. package/dist/cli/wp-files/latest/languages/de_DE-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
  63. package/dist/cli/wp-files/latest/languages/de_DE-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
  64. package/dist/cli/wp-files/latest/languages/de_DE-a25d1cc7bf7ca0b4e114f6bea64943f4.json +1 -1
  65. package/dist/cli/wp-files/latest/languages/de_DE-a2796e57f680e25d84c4b352ee6d7280.json +1 -1
  66. package/dist/cli/wp-files/latest/languages/de_DE-a9dc201dcd011fe71849743133052619.json +1 -1
  67. package/dist/cli/wp-files/latest/languages/de_DE-aabfce98c410957228848dc581e3c420.json +1 -1
  68. package/dist/cli/wp-files/latest/languages/de_DE-ac23eee47530ac63a1178c827db28087.json +1 -1
  69. package/dist/cli/wp-files/latest/languages/de_DE-bf0f094965d3d4a95b47babcb35fc136.json +1 -1
  70. package/dist/cli/wp-files/latest/languages/de_DE-bf23b24175490c2e46aaf92ff6a0c70f.json +1 -1
  71. package/dist/cli/wp-files/latest/languages/de_DE-c31d5f185753910c14afebc6deb2ce24.json +1 -1
  72. package/dist/cli/wp-files/latest/languages/de_DE-ca28138671823450e87dfd354f7afc6b.json +1 -1
  73. package/dist/cli/wp-files/latest/languages/de_DE-daeb084aab42199d26393a56c3465bc0.json +1 -1
  74. package/dist/cli/wp-files/latest/languages/de_DE-e2791ba830489d23043be8650a22a22b.json +1 -1
  75. package/dist/cli/wp-files/latest/languages/de_DE-e2e4c4b80f3adf2c70b431bfdb1b4872.json +1 -1
  76. package/dist/cli/wp-files/latest/languages/de_DE-e53526243551a102928735ec9eed4edf.json +1 -1
  77. package/dist/cli/wp-files/latest/languages/de_DE-f575f481034e90e21d832e415fd95fcf.json +1 -1
  78. package/dist/cli/wp-files/latest/languages/de_DE-f70806bf0c7d62f2908bd5a1c3fe4efc.json +1 -1
  79. package/dist/cli/wp-files/latest/languages/de_DE-f8f49d9fc4a9cf7d78ec99285417bd9c.json +1 -1
  80. package/dist/cli/wp-files/latest/languages/de_DE.l10n.php +27 -27
  81. package/dist/cli/wp-files/latest/languages/pl_PL-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
  82. package/dist/cli/wp-files/latest/languages/pl_PL-0eebe503220d4a00341eb011b92769b4.json +1 -1
  83. package/dist/cli/wp-files/latest/languages/pl_PL-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
  84. package/dist/cli/wp-files/latest/languages/pl_PL-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
  85. package/dist/cli/wp-files/latest/languages/pl_PL-2b390f85a3048c5b4255fb45960b6514.json +1 -1
  86. package/dist/cli/wp-files/latest/languages/pl_PL-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
  87. package/dist/cli/wp-files/latest/languages/pl_PL-4bfa11da57ff2600004bb500368247f4.json +1 -1
  88. package/dist/cli/wp-files/latest/languages/pl_PL-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
  89. package/dist/cli/wp-files/latest/languages/pl_PL-5251f7623766a714c8207c7edb938628.json +1 -1
  90. package/dist/cli/wp-files/latest/languages/pl_PL-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
  91. package/dist/cli/wp-files/latest/languages/pl_PL-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
  92. package/dist/cli/wp-files/latest/languages/pl_PL-6025add6bde16aaeb12787d250f9b414.json +1 -1
  93. package/dist/cli/wp-files/latest/languages/pl_PL-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
  94. package/dist/cli/wp-files/latest/languages/pl_PL-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
  95. package/dist/cli/wp-files/latest/languages/pl_PL-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
  96. package/dist/cli/wp-files/latest/languages/pl_PL-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
  97. package/dist/cli/wp-files/latest/languages/pl_PL-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
  98. package/dist/cli/wp-files/latest/languages/pl_PL-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
  99. package/dist/cli/wp-files/latest/languages/pl_PL-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
  100. package/dist/cli/wp-files/latest/languages/pl_PL-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
  101. package/dist/cli/wp-files/latest/languages/pl_PL-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
  102. package/dist/cli/wp-files/latest/languages/pl_PL-a9dc201dcd011fe71849743133052619.json +1 -1
  103. package/dist/cli/wp-files/latest/languages/pl_PL-aabfce98c410957228848dc581e3c420.json +1 -1
  104. package/dist/cli/wp-files/latest/languages/pl_PL-ca28138671823450e87dfd354f7afc6b.json +1 -1
  105. package/dist/cli/wp-files/latest/languages/pl_PL-e2e4c4b80f3adf2c70b431bfdb1b4872.json +1 -1
  106. package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
  107. package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
  108. package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
  109. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
  110. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
  111. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
  112. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
  113. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
  114. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
  115. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
  116. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
  117. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
  118. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
  119. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
  120. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
  121. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
  122. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
  123. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
  124. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
  125. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
  126. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
  127. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
  128. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
  129. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
  130. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
  131. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
  132. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
  133. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
  134. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
  135. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
  136. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
  137. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
  138. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
  139. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
  140. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
  141. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
  142. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
  143. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
  144. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
  145. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
  146. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
  147. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
  148. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
  149. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
  150. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
  151. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
  152. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
  153. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
  154. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
  155. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
  156. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
  157. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
  158. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
  159. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
  160. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
  161. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
  162. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
  163. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
  164. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
  165. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
  166. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
  167. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
  168. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
  169. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
  170. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
  171. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
  172. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
  173. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
  174. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
  175. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
  176. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
  177. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
  178. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
  179. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
  180. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
  181. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
  182. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
  183. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
  184. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
  185. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
  186. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
  187. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
  188. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
  189. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
  190. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
  191. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
  192. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
  193. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
  194. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
  195. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
  196. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
  197. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
  198. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
  199. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
  200. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
  201. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
  202. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
  203. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
  204. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
  205. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
  206. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
  207. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
  208. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
  209. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
  210. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
  211. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
  212. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
  213. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
  214. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
  215. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
  216. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
  217. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
  218. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
  219. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
  220. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
  221. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
  222. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
  223. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
  224. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
  225. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
  226. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
  227. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
  228. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
  229. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
  230. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
  231. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
  232. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
  233. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
  234. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
  235. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
  236. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
  237. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
  238. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
  239. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
  240. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
  241. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
  242. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
  243. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
  244. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
  245. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
  246. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
  247. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
  248. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
  249. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
  250. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
  251. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
  252. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
  253. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
  254. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
  255. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
  256. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
  257. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
  258. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
  259. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
  260. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
  261. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
  262. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
  263. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
  264. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
  265. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
  266. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
  267. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
  268. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
  269. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
  270. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
  271. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
  272. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
  273. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
  274. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
  275. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
  276. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
  277. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
  278. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
  279. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
  280. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
  281. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
  282. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
  283. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
  284. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
  285. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
  286. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
  287. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
  288. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
  289. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
  290. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
  291. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
  292. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
  293. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
  294. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
  295. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
  296. package/dist/cli/wp-files/sqlite-command/version +1 -1
  297. package/package.json +4 -3
  298. package/patches/archiver+7.0.1.patch +14 -0
  299. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
  300. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
  301. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
  302. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
  303. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
  304. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
  305. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
  306. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
  307. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
  308. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
  309. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
  310. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
  311. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
  312. /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
@@ -3,55 +3,49 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Loader;
13
-
14
- use Mustache\Exception\RuntimeException;
15
- use Mustache\Exception\UnknownTemplateException;
16
- use Mustache\Loader;
17
-
18
12
  /**
19
13
  * Mustache Template filesystem Loader implementation.
20
14
  *
21
15
  * A FilesystemLoader instance loads Mustache Template source from the filesystem by name:
22
16
  *
23
- * $loader = new FilesystemLoader(__DIR__.'/views');
24
- * $tpl = $loader->load('foo'); // equivalent to `file_get_contents(__DIR__.'/views/foo.mustache');
17
+ * $loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views');
18
+ * $tpl = $loader->load('foo'); // equivalent to `file_get_contents(dirname(__FILE__).'/views/foo.mustache');
25
19
  *
26
20
  * This is probably the most useful Mustache Loader implementation. It can be used for partials and normal Templates:
27
21
  *
28
- * $m = new \Mustache\Engine([
29
- * 'loader' => new FilesystemLoader(__DIR__.'/views'),
30
- * 'partials_loader' => new FilesystemLoader(__DIR__.'/views/partials'),
31
- * ]);
22
+ * $m = new Mustache(array(
23
+ * 'loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views'),
24
+ * 'partials_loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views/partials'),
25
+ * ));
32
26
  */
33
- class FilesystemLoader implements Loader
27
+ class Mustache_Loader_FilesystemLoader implements Mustache_Loader
34
28
  {
35
29
  private $baseDir;
36
30
  private $extension = '.mustache';
37
- private $templates = [];
31
+ private $templates = array();
38
32
 
39
33
  /**
40
34
  * Mustache filesystem Loader constructor.
41
35
  *
42
36
  * Passing an $options array allows overriding certain Loader options during instantiation:
43
37
  *
44
- * $options = [
38
+ * $options = array(
45
39
  * // The filename extension used for Mustache templates. Defaults to '.mustache'
46
40
  * 'extension' => '.ms',
47
- * ];
41
+ * );
48
42
  *
49
- * @throws RuntimeException if $baseDir does not exist
43
+ * @throws Mustache_Exception_RuntimeException if $baseDir does not exist
50
44
  *
51
45
  * @param string $baseDir Base directory containing Mustache template files
52
- * @param array $options Loader options (default: [])
46
+ * @param array $options Array of Loader options (default: array())
53
47
  */
54
- public function __construct($baseDir, array $options = [])
48
+ public function __construct($baseDir, array $options = array())
55
49
  {
56
50
  $this->baseDir = $baseDir;
57
51
 
@@ -60,7 +54,7 @@ class FilesystemLoader implements Loader
60
54
  }
61
55
 
62
56
  if ($this->shouldCheckPath() && !is_dir($this->baseDir)) {
63
- throw new RuntimeException(sprintf('FilesystemLoader baseDir must be a directory: %s', $baseDir));
57
+ throw new Mustache_Exception_RuntimeException(sprintf('FilesystemLoader baseDir must be a directory: %s', $baseDir));
64
58
  }
65
59
 
66
60
  if (array_key_exists('extension', $options)) {
@@ -75,7 +69,7 @@ class FilesystemLoader implements Loader
75
69
  /**
76
70
  * Load a Template by name.
77
71
  *
78
- * $loader = new FilesystemLoader(__DIR__.'/views');
72
+ * $loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views');
79
73
  * $loader->load('admin/dashboard'); // loads "./views/admin/dashboard.mustache";
80
74
  *
81
75
  * @param string $name
@@ -94,7 +88,7 @@ class FilesystemLoader implements Loader
94
88
  /**
95
89
  * Helper function for loading a Mustache file by name.
96
90
  *
97
- * @throws UnknownTemplateException If a template file is not found
91
+ * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
98
92
  *
99
93
  * @param string $name
100
94
  *
@@ -105,7 +99,7 @@ class FilesystemLoader implements Loader
105
99
  $fileName = $this->getFileName($name);
106
100
 
107
101
  if ($this->shouldCheckPath() && !file_exists($fileName)) {
108
- throw new UnknownTemplateException($name);
102
+ throw new Mustache_Exception_UnknownTemplateException($name);
109
103
  }
110
104
 
111
105
  return file_get_contents($fileName);
@@ -3,25 +3,19 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Loader;
13
-
14
- use Mustache\Exception\InvalidArgumentException;
15
- use Mustache\Exception\UnknownTemplateException;
16
- use Mustache\Loader;
17
-
18
12
  /**
19
13
  * A Mustache Template loader for inline templates.
20
14
  *
21
15
  * With the InlineLoader, templates can be defined at the end of any PHP source
22
16
  * file:
23
17
  *
24
- * $loader = new InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
18
+ * $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
25
19
  * $hello = $loader->load('hello');
26
20
  * $goodbye = $loader->load('goodbye');
27
21
  *
@@ -37,9 +31,9 @@ use Mustache\Loader;
37
31
  *
38
32
  * The InlineLoader is well-suited to micro-frameworks such as Silex:
39
33
  *
40
- * $app->register(new MustacheServiceProvider, [
41
- * 'mustache.loader' => new InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
42
- * ]);
34
+ * $app->register(new MustacheServiceProvider, array(
35
+ * 'mustache.loader' => new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
36
+ * ));
43
37
  *
44
38
  * $app->get('/{name}', function ($name) use ($app) {
45
39
  * return $app['mustache']->render('hello', compact('name'));
@@ -53,7 +47,7 @@ use Mustache\Loader;
53
47
  * @@ hello
54
48
  * Hello, {{ name }}!
55
49
  */
56
- class InlineLoader implements Loader
50
+ class Mustache_Loader_InlineLoader implements Mustache_Loader
57
51
  {
58
52
  protected $fileName;
59
53
  protected $offset;
@@ -65,7 +59,7 @@ class InlineLoader implements Loader
65
59
  * The magic constants `__FILE__` and `__COMPILER_HALT_OFFSET__` are usually
66
60
  * perfectly suited to the job:
67
61
  *
68
- * $loader = new InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
62
+ * $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
69
63
  *
70
64
  * Note that this only works if the loader is instantiated inside the same
71
65
  * file as the inline templates. If the templates are located in another
@@ -79,11 +73,11 @@ class InlineLoader implements Loader
79
73
  public function __construct($fileName, $offset)
80
74
  {
81
75
  if (!is_file($fileName)) {
82
- throw new InvalidArgumentException('InlineLoader expects a valid filename.');
76
+ throw new Mustache_Exception_InvalidArgumentException('InlineLoader expects a valid filename.');
83
77
  }
84
78
 
85
79
  if (!is_int($offset) || $offset < 0) {
86
- throw new InvalidArgumentException('InlineLoader expects a valid file offset.');
80
+ throw new Mustache_Exception_InvalidArgumentException('InlineLoader expects a valid file offset.');
87
81
  }
88
82
 
89
83
  $this->fileName = $fileName;
@@ -93,7 +87,7 @@ class InlineLoader implements Loader
93
87
  /**
94
88
  * Load a Template by name.
95
89
  *
96
- * @throws UnknownTemplateException If a template file is not found
90
+ * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
97
91
  *
98
92
  * @param string $name
99
93
  *
@@ -104,7 +98,7 @@ class InlineLoader implements Loader
104
98
  $this->loadTemplates();
105
99
 
106
100
  if (!array_key_exists($name, $this->templates)) {
107
- throw new UnknownTemplateException($name);
101
+ throw new Mustache_Exception_UnknownTemplateException($name);
108
102
  }
109
103
 
110
104
  return $this->templates[$name];
@@ -116,10 +110,10 @@ class InlineLoader implements Loader
116
110
  protected function loadTemplates()
117
111
  {
118
112
  if ($this->templates === null) {
119
- $this->templates = [];
113
+ $this->templates = array();
120
114
  $data = file_get_contents($this->fileName, false, null, $this->offset);
121
115
  foreach (preg_split("/^@@(?= [\w\d\.]+$)/m", $data, -1) as $chunk) {
122
- if (trim($chunk) !== '') {
116
+ if (trim($chunk)) {
123
117
  list($name, $content) = explode("\n", $chunk, 2);
124
118
  $this->templates[trim($name)] = trim($content);
125
119
  }
@@ -3,18 +3,21 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Loader;
13
-
14
- interface MutableLoader
12
+ /**
13
+ * Mustache Template mutable Loader interface.
14
+ */
15
+ interface Mustache_Loader_MutableLoader
15
16
  {
16
17
  /**
17
18
  * Set an associative array of Template sources for this loader.
19
+ *
20
+ * @param array $templates
18
21
  */
19
22
  public function setTemplates(array $templates);
20
23
 
@@ -3,19 +3,12 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Loader;
13
-
14
- use Mustache\Exception\RuntimeException;
15
- use Mustache\Exception\UnknownTemplateException;
16
- use Mustache\Source;
17
- use Mustache\Source\FilesystemSource;
18
-
19
12
  /**
20
13
  * Mustache Template production filesystem Loader implementation.
21
14
  *
@@ -23,7 +16,7 @@ use Mustache\Source\FilesystemSource;
23
16
  *
24
17
  * {@inheritdoc}
25
18
  */
26
- class ProductionFilesystemLoader extends FilesystemLoader
19
+ class Mustache_Loader_ProductionFilesystemLoader extends Mustache_Loader_FilesystemLoader
27
20
  {
28
21
  private $statProps;
29
22
 
@@ -32,11 +25,11 @@ class ProductionFilesystemLoader extends FilesystemLoader
32
25
  *
33
26
  * Passing an $options array allows overriding certain Loader options during instantiation:
34
27
  *
35
- * $options = [
28
+ * $options = array(
36
29
  * // The filename extension used for Mustache templates. Defaults to '.mustache'
37
30
  * 'extension' => '.ms',
38
- * 'stat_props' => ['size', 'mtime'],
39
- * ];
31
+ * 'stat_props' => array('size', 'mtime'),
32
+ * );
40
33
  *
41
34
  * Specifying 'stat_props' overrides the stat properties used to invalidate the template cache. By default, this
42
35
  * uses 'mtime' and 'size', but this can be set to any of the properties supported by stat():
@@ -45,49 +38,49 @@ class ProductionFilesystemLoader extends FilesystemLoader
45
38
  *
46
39
  * You can also disable filesystem stat entirely:
47
40
  *
48
- * $options = ['stat_props' => null];
41
+ * $options = array('stat_props' => null);
49
42
  *
50
43
  * But with great power comes great responsibility. Namely, if you disable stat-based cache invalidation,
51
44
  * YOU MUST CLEAR THE TEMPLATE CACHE YOURSELF when your templates change. Make it part of your build or deploy
52
45
  * process so you don't forget!
53
46
  *
54
- * @throws RuntimeException if $baseDir does not exist
47
+ * @throws Mustache_Exception_RuntimeException if $baseDir does not exist.
55
48
  *
56
- * @param string $baseDir base directory containing Mustache template files
57
- * @param array $options Loader options (default: [])
49
+ * @param string $baseDir Base directory containing Mustache template files.
50
+ * @param array $options Array of Loader options (default: array())
58
51
  */
59
- public function __construct($baseDir, array $options = [])
52
+ public function __construct($baseDir, array $options = array())
60
53
  {
61
54
  parent::__construct($baseDir, $options);
62
55
 
63
56
  if (array_key_exists('stat_props', $options)) {
64
57
  if (empty($options['stat_props'])) {
65
- $this->statProps = [];
58
+ $this->statProps = array();
66
59
  } else {
67
60
  $this->statProps = $options['stat_props'];
68
61
  }
69
62
  } else {
70
- $this->statProps = ['size', 'mtime'];
63
+ $this->statProps = array('size', 'mtime');
71
64
  }
72
65
  }
73
66
 
74
67
  /**
75
68
  * Helper function for loading a Mustache file by name.
76
69
  *
77
- * @throws UnknownTemplateException if a template file is not found
70
+ * @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
78
71
  *
79
72
  * @param string $name
80
73
  *
81
- * @return Source Mustache Template source
74
+ * @return Mustache_Source Mustache Template source
82
75
  */
83
76
  protected function loadFile($name)
84
77
  {
85
78
  $fileName = $this->getFileName($name);
86
79
 
87
80
  if (!file_exists($fileName)) {
88
- throw new UnknownTemplateException($name);
81
+ throw new Mustache_Exception_UnknownTemplateException($name);
89
82
  }
90
83
 
91
- return new FilesystemSource($fileName, $this->statProps);
84
+ return new Mustache_Source_FilesystemSource($fileName, $this->statProps);
92
85
  }
93
86
  }
@@ -3,16 +3,12 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Loader;
13
-
14
- use Mustache\Loader;
15
-
16
12
  /**
17
13
  * Mustache Template string Loader implementation.
18
14
  *
@@ -23,11 +19,11 @@ use Mustache\Loader;
23
19
  *
24
20
  * This is the default Template Loader instance used by Mustache:
25
21
  *
26
- * $m = new \Mustache\Engine;
22
+ * $m = new Mustache;
27
23
  * $tpl = $m->loadTemplate('{{ foo }}');
28
- * echo $tpl->render(['foo' => 'bar']); // "bar"
24
+ * echo $tpl->render(array('foo' => 'bar')); // "bar"
29
25
  */
30
- class StringLoader implements Loader
26
+ class Mustache_Loader_StringLoader implements Mustache_Loader
31
27
  {
32
28
  /**
33
29
  * Load a Template by source.
@@ -3,26 +3,25 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache;
13
-
14
- use Mustache\Exception\UnknownTemplateException;
15
-
16
- interface Loader
12
+ /**
13
+ * Mustache Template Loader interface.
14
+ */
15
+ interface Mustache_Loader
17
16
  {
18
17
  /**
19
18
  * Load a Template by name.
20
19
  *
21
- * @throws UnknownTemplateException If a template file is not found
20
+ * @throws Mustache_Exception_UnknownTemplateException If a template file is not found
22
21
  *
23
22
  * @param string $name
24
23
  *
25
- * @return string|Source Mustache Template source
24
+ * @return string|Mustache_Source Mustache Template source
26
25
  */
27
26
  public function load($name);
28
27
  }
@@ -3,16 +3,12 @@
3
3
  /*
4
4
  * This file is part of Mustache.php.
5
5
  *
6
- * (c) 2010-2025 Justin Hileman
6
+ * (c) 2010-2017 Justin Hileman
7
7
  *
8
8
  * For the full copyright and license information, please view the LICENSE
9
9
  * file that was distributed with this source code.
10
10
  */
11
11
 
12
- namespace Mustache\Logger;
13
-
14
- use Mustache\Logger;
15
-
16
12
  /**
17
13
  * This is a simple Logger implementation that other Loggers can inherit from.
18
14
  *
@@ -22,16 +18,17 @@ use Mustache\Logger;
22
18
  * reduce boilerplate code that a simple Logger that does the same thing with
23
19
  * messages regardless of the error level has to implement.
24
20
  */
25
- abstract class AbstractLogger implements Logger
21
+ abstract class Mustache_Logger_AbstractLogger implements Mustache_Logger
26
22
  {
27
23
  /**
28
24
  * System is unusable.
29
25
  *
30
26
  * @param string $message
27
+ * @param array $context
31
28
  */
32
- public function emergency($message, array $context = [])
29
+ public function emergency($message, array $context = array())
33
30
  {
34
- $this->log(Logger::EMERGENCY, $message, $context);
31
+ $this->log(Mustache_Logger::EMERGENCY, $message, $context);
35
32
  }
36
33
 
37
34
  /**
@@ -41,10 +38,11 @@ abstract class AbstractLogger implements Logger
41
38
  * trigger the SMS alerts and wake you up.
42
39
  *
43
40
  * @param string $message
41
+ * @param array $context
44
42
  */
45
- public function alert($message, array $context = [])
43
+ public function alert($message, array $context = array())
46
44
  {
47
- $this->log(Logger::ALERT, $message, $context);
45
+ $this->log(Mustache_Logger::ALERT, $message, $context);
48
46
  }
49
47
 
50
48
  /**
@@ -53,10 +51,11 @@ abstract class AbstractLogger implements Logger
53
51
  * Example: Application component unavailable, unexpected exception.
54
52
  *
55
53
  * @param string $message
54
+ * @param array $context
56
55
  */
57
- public function critical($message, array $context = [])
56
+ public function critical($message, array $context = array())
58
57
  {
59
- $this->log(Logger::CRITICAL, $message, $context);
58
+ $this->log(Mustache_Logger::CRITICAL, $message, $context);
60
59
  }
61
60
 
62
61
  /**
@@ -64,10 +63,11 @@ abstract class AbstractLogger implements Logger
64
63
  * be logged and monitored.
65
64
  *
66
65
  * @param string $message
66
+ * @param array $context
67
67
  */
68
- public function error($message, array $context = [])
68
+ public function error($message, array $context = array())
69
69
  {
70
- $this->log(Logger::ERROR, $message, $context);
70
+ $this->log(Mustache_Logger::ERROR, $message, $context);
71
71
  }
72
72
 
73
73
  /**
@@ -77,20 +77,22 @@ abstract class AbstractLogger implements Logger
77
77
  * that are not necessarily wrong.
78
78
  *
79
79
  * @param string $message
80
+ * @param array $context
80
81
  */
81
- public function warning($message, array $context = [])
82
+ public function warning($message, array $context = array())
82
83
  {
83
- $this->log(Logger::WARNING, $message, $context);
84
+ $this->log(Mustache_Logger::WARNING, $message, $context);
84
85
  }
85
86
 
86
87
  /**
87
88
  * Normal but significant events.
88
89
  *
89
90
  * @param string $message
91
+ * @param array $context
90
92
  */
91
- public function notice($message, array $context = [])
93
+ public function notice($message, array $context = array())
92
94
  {
93
- $this->log(Logger::NOTICE, $message, $context);
95
+ $this->log(Mustache_Logger::NOTICE, $message, $context);
94
96
  }
95
97
 
96
98
  /**
@@ -99,19 +101,21 @@ abstract class AbstractLogger implements Logger
99
101
  * Example: User logs in, SQL logs.
100
102
  *
101
103
  * @param string $message
104
+ * @param array $context
102
105
  */
103
- public function info($message, array $context = [])
106
+ public function info($message, array $context = array())
104
107
  {
105
- $this->log(Logger::INFO, $message, $context);
108
+ $this->log(Mustache_Logger::INFO, $message, $context);
106
109
  }
107
110
 
108
111
  /**
109
112
  * Detailed debug information.
110
113
  *
111
114
  * @param string $message
115
+ * @param array $context
112
116
  */
113
- public function debug($message, array $context = [])
117
+ public function debug($message, array $context = array())
114
118
  {
115
- $this->log(Logger::DEBUG, $message, $context);
119
+ $this->log(Mustache_Logger::DEBUG, $message, $context);
116
120
  }
117
121
  }