wp-studio 1.7.8-beta2 → 1.7.8-beta3

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 (219) hide show
  1. package/README.md +33 -0
  2. package/assets/demo.gif +0 -0
  3. package/dist/cli/{_events-BRGCap7g.mjs → _events-C60cNJ1W.mjs} +1 -1
  4. package/dist/cli/{index-9Oz-0bqF.mjs → index-D9syEMMz.mjs} +4 -4
  5. package/dist/cli/{index-CT4S2538.mjs → index-Ru6CUP6w.mjs} +24 -12
  6. package/dist/cli/{login-D4E3GoXe.mjs → login-C3QlGVbr.mjs} +1 -1
  7. package/dist/cli/{logout-DE-RoshK.mjs → logout-B63eZwJZ.mjs} +1 -1
  8. package/dist/cli/main.mjs +2 -1
  9. package/dist/cli/{resume-DLoXmzNG.mjs → resume-DQT_MK6A.mjs} +1 -1
  10. package/dist/cli/{set-B0L-QiXT.mjs → set-C805heQS.mjs} +1 -1
  11. package/dist/cli/{set-B8YYUENH.mjs → set-CjTbueyB.mjs} +1 -1
  12. package/dist/cli/{status-DEOAA0yx.mjs → status-SnKm1rRP.mjs} +1 -1
  13. package/dist/cli/{wp-CobSX6C6.mjs → wp-D0HZdudM.mjs} +1 -1
  14. package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
  15. package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
  16. package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
  17. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
  18. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
  19. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
  20. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
  21. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
  22. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
  23. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
  24. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
  25. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
  26. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
  27. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
  28. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
  29. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
  30. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
  31. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
  32. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
  33. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
  34. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
  35. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
  36. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
  37. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
  38. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
  39. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
  40. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
  41. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
  42. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
  43. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
  44. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
  45. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
  46. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
  47. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
  48. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
  49. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
  50. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
  51. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
  52. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
  53. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
  54. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
  55. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
  56. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
  57. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
  58. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
  59. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
  60. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
  61. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
  62. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
  63. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
  64. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
  65. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
  66. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
  67. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
  68. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
  69. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
  70. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
  71. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
  72. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
  73. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
  74. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
  75. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
  76. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
  77. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
  78. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
  79. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
  80. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
  81. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
  82. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
  83. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
  84. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
  85. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
  86. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
  87. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
  88. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
  89. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
  90. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
  91. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
  92. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
  93. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
  94. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
  95. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
  96. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
  97. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
  98. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
  99. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
  100. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
  101. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
  102. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
  103. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
  104. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
  105. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
  106. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
  107. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
  108. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
  109. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
  110. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
  111. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
  112. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
  113. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
  114. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
  115. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
  116. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
  117. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
  118. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
  119. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
  120. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
  121. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
  122. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
  123. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
  124. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
  125. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
  126. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
  127. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
  128. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
  129. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
  130. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
  131. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
  132. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
  133. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
  134. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
  135. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
  136. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
  137. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
  138. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
  139. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
  140. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
  141. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
  142. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
  143. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
  144. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
  145. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
  146. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
  147. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
  148. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
  149. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
  150. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
  151. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
  152. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
  153. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
  154. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
  155. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
  156. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
  157. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
  158. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
  159. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
  160. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
  161. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
  162. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
  163. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
  164. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
  165. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
  166. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
  167. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
  168. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
  169. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
  170. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
  171. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
  172. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
  173. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
  174. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
  175. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
  176. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
  177. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
  178. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
  179. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
  180. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
  181. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
  182. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
  183. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
  184. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
  185. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
  186. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
  187. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
  188. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
  189. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
  190. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
  191. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
  192. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
  193. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
  194. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
  195. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
  196. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
  197. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
  198. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
  199. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
  200. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
  201. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
  202. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
  203. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
  204. package/dist/cli/wp-files/sqlite-command/version +1 -1
  205. package/package.json +4 -3
  206. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
  207. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
  208. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
  209. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
  210. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
  211. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
  212. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
  213. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
  214. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
  215. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
  216. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
  217. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
  218. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
  219. /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
@@ -1,42 +1,113 @@
1
1
  {
2
2
  "packages": [
3
3
  {
4
- "name": "mustache/mustache",
5
- "version": "v3.0.0",
6
- "version_normalized": "3.0.0.0",
4
+ "name": "symfony/finder",
5
+ "version": "v8.0.8",
6
+ "version_normalized": "8.0.8.0",
7
7
  "source": {
8
8
  "type": "git",
9
- "url": "https://github.com/bobthecow/mustache.php.git",
10
- "reference": "176b6b21d68516dd5107a63ab71b0050e518b7a4"
9
+ "url": "https://github.com/symfony/finder.git",
10
+ "reference": "8da41214757b87d97f181e3d14a4179286151007"
11
11
  },
12
12
  "dist": {
13
13
  "type": "zip",
14
- "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/176b6b21d68516dd5107a63ab71b0050e518b7a4",
15
- "reference": "176b6b21d68516dd5107a63ab71b0050e518b7a4",
14
+ "url": "https://api.github.com/repos/symfony/finder/zipball/8da41214757b87d97f181e3d14a4179286151007",
15
+ "reference": "8da41214757b87d97f181e3d14a4179286151007",
16
16
  "shasum": ""
17
17
  },
18
18
  "require": {
19
- "php": ">=5.6"
19
+ "php": ">=8.4"
20
20
  },
21
21
  "require-dev": {
22
- "friendsofphp/php-cs-fixer": "~2.19.3",
23
- "yoast/phpunit-polyfills": "^2.0"
22
+ "symfony/filesystem": "^7.4|^8.0"
24
23
  },
25
- "time": "2025-06-28T18:28:20+00:00",
24
+ "time": "2026-03-30T15:14:47+00:00",
26
25
  "type": "library",
27
26
  "installation-source": "dist",
28
27
  "autoload": {
29
28
  "psr-4": {
30
- "Mustache\\": "src/"
29
+ "Symfony\\Component\\Finder\\": ""
31
30
  },
32
- "classmap": [
33
- "src/compat.php"
31
+ "exclude-from-classmap": [
32
+ "/Tests/"
34
33
  ]
35
34
  },
36
35
  "notification-url": "https://packagist.org/downloads/",
37
36
  "license": [
38
37
  "MIT"
39
38
  ],
39
+ "authors": [
40
+ {
41
+ "name": "Fabien Potencier",
42
+ "email": "fabien@symfony.com"
43
+ },
44
+ {
45
+ "name": "Symfony Community",
46
+ "homepage": "https://symfony.com/contributors"
47
+ }
48
+ ],
49
+ "description": "Finds files and directories via an intuitive fluent interface",
50
+ "homepage": "https://symfony.com",
51
+ "support": {
52
+ "source": "https://github.com/symfony/finder/tree/v8.0.8"
53
+ },
54
+ "funding": [
55
+ {
56
+ "url": "https://symfony.com/sponsor",
57
+ "type": "custom"
58
+ },
59
+ {
60
+ "url": "https://github.com/fabpot",
61
+ "type": "github"
62
+ },
63
+ {
64
+ "url": "https://github.com/nicolas-grekas",
65
+ "type": "github"
66
+ },
67
+ {
68
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
69
+ "type": "tidelift"
70
+ }
71
+ ],
72
+ "install-path": "../symfony/finder"
73
+ },
74
+ {
75
+ "name": "wp-cli/mustache",
76
+ "version": "v2.14.99",
77
+ "version_normalized": "2.14.99.0",
78
+ "source": {
79
+ "type": "git",
80
+ "url": "https://github.com/wp-cli/mustache.php.git",
81
+ "reference": "ca23b97ac35fbe01c160549eb634396183d04a59"
82
+ },
83
+ "dist": {
84
+ "type": "zip",
85
+ "url": "https://api.github.com/repos/wp-cli/mustache.php/zipball/ca23b97ac35fbe01c160549eb634396183d04a59",
86
+ "reference": "ca23b97ac35fbe01c160549eb634396183d04a59",
87
+ "shasum": ""
88
+ },
89
+ "require": {
90
+ "php": ">=5.6"
91
+ },
92
+ "replace": {
93
+ "mustache/mustache": "^2.14.2"
94
+ },
95
+ "require-dev": {
96
+ "friendsofphp/php-cs-fixer": "~2.19.3",
97
+ "yoast/phpunit-polyfills": "^2.0"
98
+ },
99
+ "time": "2025-05-06T16:15:37+00:00",
100
+ "type": "library",
101
+ "installation-source": "dist",
102
+ "autoload": {
103
+ "psr-0": {
104
+ "Mustache": "src/"
105
+ }
106
+ },
107
+ "notification-url": "https://packagist.org/downloads/",
108
+ "license": [
109
+ "MIT"
110
+ ],
40
111
  "authors": [
41
112
  {
42
113
  "name": "Justin Hileman",
@@ -51,10 +122,9 @@
51
122
  "templating"
52
123
  ],
53
124
  "support": {
54
- "issues": "https://github.com/bobthecow/mustache.php/issues",
55
- "source": "https://github.com/bobthecow/mustache.php/tree/v3.0.0"
125
+ "source": "https://github.com/wp-cli/mustache.php/tree/v2.14.99"
56
126
  },
57
- "install-path": "../mustache/mustache"
127
+ "install-path": "../wp-cli/mustache"
58
128
  },
59
129
  {
60
130
  "name": "wp-cli/mustangostang-spyc",
@@ -178,62 +248,47 @@
178
248
  },
179
249
  {
180
250
  "name": "wp-cli/wp-cli",
181
- "version": "dev-main",
182
- "version_normalized": "dev-main",
251
+ "version": "v2.12.0",
252
+ "version_normalized": "2.12.0.0",
183
253
  "source": {
184
254
  "type": "git",
185
255
  "url": "https://github.com/wp-cli/wp-cli.git",
186
- "reference": "626c6662c7094ca73145677be01d9c6ef1dca479"
256
+ "reference": "03d30d4138d12b4bffd8b507b82e56e129e0523f"
187
257
  },
188
258
  "dist": {
189
259
  "type": "zip",
190
- "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/626c6662c7094ca73145677be01d9c6ef1dca479",
191
- "reference": "626c6662c7094ca73145677be01d9c6ef1dca479",
260
+ "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/03d30d4138d12b4bffd8b507b82e56e129e0523f",
261
+ "reference": "03d30d4138d12b4bffd8b507b82e56e129e0523f",
192
262
  "shasum": ""
193
263
  },
194
264
  "require": {
195
- "mustache/mustache": "^3.0.0",
196
- "php": ">=7.2.24 || ^8.0",
265
+ "ext-curl": "*",
266
+ "php": "^5.6 || ^7.0 || ^8.0",
267
+ "symfony/finder": ">2.7",
268
+ "wp-cli/mustache": "^2.14.99",
197
269
  "wp-cli/mustangostang-spyc": "^0.6.3",
198
- "wp-cli/php-cli-tools": "~0.12.7"
270
+ "wp-cli/php-cli-tools": "~0.12.4"
199
271
  },
200
272
  "require-dev": {
201
- "justinrainbow/json-schema": "^6.3",
202
- "roave/security-advisories": "dev-latest",
203
- "wp-cli/db-command": "^2",
204
- "wp-cli/entity-command": "^2",
205
- "wp-cli/extension-command": "^2",
206
- "wp-cli/package-command": "^2",
207
- "wp-cli/wp-cli-tests": "^5"
273
+ "wp-cli/db-command": "^1.3 || ^2",
274
+ "wp-cli/entity-command": "^1.2 || ^2",
275
+ "wp-cli/extension-command": "^1.1 || ^2",
276
+ "wp-cli/package-command": "^1 || ^2",
277
+ "wp-cli/wp-cli-tests": "^4.3.10"
208
278
  },
209
279
  "suggest": {
210
- "ext-curl": "For better performance when making HTTP requests",
211
280
  "ext-readline": "Include for a better --prompt implementation",
212
281
  "ext-zip": "Needed to support extraction of ZIP archives when doing downloads or updates"
213
282
  },
214
- "time": "2026-04-08T20:27:04+00:00",
215
- "default-branch": true,
283
+ "time": "2025-05-07T01:16:12+00:00",
216
284
  "bin": [
217
285
  "bin/wp",
218
286
  "bin/wp.bat"
219
287
  ],
220
288
  "type": "library",
221
289
  "extra": {
222
- "commands": [
223
- "cli",
224
- "cli alias",
225
- "cli cache",
226
- "cli check-update",
227
- "cli cmd-dump",
228
- "cli completions",
229
- "cli has-command",
230
- "cli info",
231
- "cli param-dump",
232
- "cli update",
233
- "cli version"
234
- ],
235
290
  "branch-alias": {
236
- "dev-main": "2.13.x-dev"
291
+ "dev-main": "2.12.x-dev"
237
292
  }
238
293
  },
239
294
  "installation-source": "dist",
@@ -1,9 +1,9 @@
1
1
  <?php return array(
2
2
  'root' => array(
3
3
  'name' => 'automattic/wp-cli-sqlite-command',
4
- 'pretty_version' => 'v1.1.6',
5
- 'version' => '1.1.6.0',
6
- 'reference' => '26cade0ed57c2e1e90998bdc807d9a02d8a18afc',
4
+ 'pretty_version' => 'v1.1.7',
5
+ 'version' => '1.1.7.0',
6
+ 'reference' => 'c31e09e98450380548fabc0415a40c73b8334f53',
7
7
  'type' => 'wp-cli-package',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -11,20 +11,35 @@
11
11
  ),
12
12
  'versions' => array(
13
13
  'automattic/wp-cli-sqlite-command' => array(
14
- 'pretty_version' => 'v1.1.6',
15
- 'version' => '1.1.6.0',
16
- 'reference' => '26cade0ed57c2e1e90998bdc807d9a02d8a18afc',
14
+ 'pretty_version' => 'v1.1.7',
15
+ 'version' => '1.1.7.0',
16
+ 'reference' => 'c31e09e98450380548fabc0415a40c73b8334f53',
17
17
  'type' => 'wp-cli-package',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),
20
20
  'dev_requirement' => false,
21
21
  ),
22
22
  'mustache/mustache' => array(
23
- 'pretty_version' => 'v3.0.0',
24
- 'version' => '3.0.0.0',
25
- 'reference' => '176b6b21d68516dd5107a63ab71b0050e518b7a4',
23
+ 'dev_requirement' => false,
24
+ 'replaced' => array(
25
+ 0 => '^2.14.2',
26
+ ),
27
+ ),
28
+ 'symfony/finder' => array(
29
+ 'pretty_version' => 'v8.0.8',
30
+ 'version' => '8.0.8.0',
31
+ 'reference' => '8da41214757b87d97f181e3d14a4179286151007',
26
32
  'type' => 'library',
27
- 'install_path' => __DIR__ . '/../mustache/mustache',
33
+ 'install_path' => __DIR__ . '/../symfony/finder',
34
+ 'aliases' => array(),
35
+ 'dev_requirement' => false,
36
+ ),
37
+ 'wp-cli/mustache' => array(
38
+ 'pretty_version' => 'v2.14.99',
39
+ 'version' => '2.14.99.0',
40
+ 'reference' => 'ca23b97ac35fbe01c160549eb634396183d04a59',
41
+ 'type' => 'library',
42
+ 'install_path' => __DIR__ . '/../wp-cli/mustache',
28
43
  'aliases' => array(),
29
44
  'dev_requirement' => false,
30
45
  ),
@@ -47,14 +62,12 @@
47
62
  'dev_requirement' => false,
48
63
  ),
49
64
  'wp-cli/wp-cli' => array(
50
- 'pretty_version' => 'dev-main',
51
- 'version' => 'dev-main',
52
- 'reference' => '626c6662c7094ca73145677be01d9c6ef1dca479',
65
+ 'pretty_version' => 'v2.12.0',
66
+ 'version' => '2.12.0.0',
67
+ 'reference' => '03d30d4138d12b4bffd8b507b82e56e129e0523f',
53
68
  'type' => 'library',
54
69
  'install_path' => __DIR__ . '/../wp-cli/wp-cli',
55
- 'aliases' => array(
56
- 0 => '2.13.x-dev',
57
- ),
70
+ 'aliases' => array(),
58
71
  'dev_requirement' => false,
59
72
  ),
60
73
  ),
@@ -0,0 +1,103 @@
1
+ CHANGELOG
2
+ =========
3
+
4
+ 6.4
5
+ ---
6
+
7
+ * Add early directory pruning to `Finder::filter()`
8
+
9
+ 6.2
10
+ ---
11
+
12
+ * Add `Finder::sortByExtension()` and `Finder::sortBySize()`
13
+ * Add `Finder::sortByCaseInsensitiveName()` to sort by name with case insensitive sorting methods
14
+
15
+ 6.0
16
+ ---
17
+
18
+ * Remove `Comparator::setTarget()` and `Comparator::setOperator()`
19
+
20
+ 5.4.0
21
+ -----
22
+
23
+ * Deprecate `Comparator::setTarget()` and `Comparator::setOperator()`
24
+ * Add a constructor to `Comparator` that allows setting target and operator
25
+ * Finder's iterator has now `Symfony\Component\Finder\SplFileInfo` inner type specified
26
+ * Add recursive .gitignore files support
27
+
28
+ 5.0.0
29
+ -----
30
+
31
+ * added `$useNaturalSort` argument to `Finder::sortByName()`
32
+
33
+ 4.3.0
34
+ -----
35
+
36
+ * added Finder::ignoreVCSIgnored() to ignore files based on rules listed in .gitignore
37
+
38
+ 4.2.0
39
+ -----
40
+
41
+ * added $useNaturalSort option to Finder::sortByName() method
42
+ * the `Finder::sortByName()` method will have a new `$useNaturalSort`
43
+ argument in version 5.0, not defining it is deprecated
44
+ * added `Finder::reverseSorting()` to reverse the sorting
45
+
46
+ 4.0.0
47
+ -----
48
+
49
+ * removed `ExceptionInterface`
50
+ * removed `Symfony\Component\Finder\Iterator\FilterIterator`
51
+
52
+ 3.4.0
53
+ -----
54
+
55
+ * deprecated `Symfony\Component\Finder\Iterator\FilterIterator`
56
+ * added Finder::hasResults() method to check if any results were found
57
+
58
+ 3.3.0
59
+ -----
60
+
61
+ * added double-star matching to Glob::toRegex()
62
+
63
+ 3.0.0
64
+ -----
65
+
66
+ * removed deprecated classes
67
+
68
+ 2.8.0
69
+ -----
70
+
71
+ * deprecated adapters and related classes
72
+
73
+ 2.5.0
74
+ -----
75
+ * added support for GLOB_BRACE in the paths passed to Finder::in()
76
+
77
+ 2.3.0
78
+ -----
79
+
80
+ * added a way to ignore unreadable directories (via Finder::ignoreUnreadableDirs())
81
+ * unified the way subfolders that are not executable are handled by always throwing an AccessDeniedException exception
82
+
83
+ 2.2.0
84
+ -----
85
+
86
+ * added Finder::path() and Finder::notPath() methods
87
+ * added finder adapters to improve performance on specific platforms
88
+ * added support for wildcard characters (glob patterns) in the paths passed
89
+ to Finder::in()
90
+
91
+ 2.1.0
92
+ -----
93
+
94
+ * added Finder::sortByAccessedTime(), Finder::sortByChangedTime(), and
95
+ Finder::sortByModifiedTime()
96
+ * added Countable to Finder
97
+ * added support for an array of directories as an argument to
98
+ Finder::exclude()
99
+ * added searching based on the file content via Finder::contains() and
100
+ Finder::notContains()
101
+ * added support for the != operator in the Comparator
102
+ * [BC BREAK] filter expressions (used for file name and content) are no more
103
+ considered as regexps but glob patterns when they are enclosed in '*' or '?'
@@ -0,0 +1,62 @@
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony\Component\Finder\Comparator;
13
+
14
+ /**
15
+ * @author Fabien Potencier <fabien@symfony.com>
16
+ */
17
+ class Comparator
18
+ {
19
+ private string $operator;
20
+
21
+ public function __construct(
22
+ private string $target,
23
+ string $operator = '==',
24
+ ) {
25
+ if (!\in_array($operator, ['>', '<', '>=', '<=', '==', '!='], true)) {
26
+ throw new \InvalidArgumentException(\sprintf('Invalid operator "%s".', $operator));
27
+ }
28
+
29
+ $this->operator = $operator;
30
+ }
31
+
32
+ /**
33
+ * Gets the target value.
34
+ */
35
+ public function getTarget(): string
36
+ {
37
+ return $this->target;
38
+ }
39
+
40
+ /**
41
+ * Gets the comparison operator.
42
+ */
43
+ public function getOperator(): string
44
+ {
45
+ return $this->operator;
46
+ }
47
+
48
+ /**
49
+ * Tests against the target.
50
+ */
51
+ public function test(mixed $test): bool
52
+ {
53
+ return match ($this->operator) {
54
+ '>' => $test > $this->target,
55
+ '>=' => $test >= $this->target,
56
+ '<' => $test < $this->target,
57
+ '<=' => $test <= $this->target,
58
+ '!=' => $test != $this->target,
59
+ default => $test == $this->target,
60
+ };
61
+ }
62
+ }
@@ -0,0 +1,50 @@
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony\Component\Finder\Comparator;
13
+
14
+ /**
15
+ * DateCompare compiles date comparisons.
16
+ *
17
+ * @author Fabien Potencier <fabien@symfony.com>
18
+ */
19
+ class DateComparator extends Comparator
20
+ {
21
+ /**
22
+ * @param string $test A comparison string
23
+ *
24
+ * @throws \InvalidArgumentException If the test is not understood
25
+ */
26
+ public function __construct(string $test)
27
+ {
28
+ if (!preg_match('#^\s*(==|!=|[<>]=?|after|since|before|until)?\s*(.+?)\s*$#i', $test, $matches)) {
29
+ throw new \InvalidArgumentException(\sprintf('Don\'t understand "%s" as a date test.', $test));
30
+ }
31
+
32
+ try {
33
+ $date = new \DateTimeImmutable($matches[2]);
34
+ $target = $date->format('U');
35
+ } catch (\Exception) {
36
+ throw new \InvalidArgumentException(\sprintf('"%s" is not a valid date.', $matches[2]));
37
+ }
38
+
39
+ $operator = $matches[1] ?: '==';
40
+ if ('since' === $operator || 'after' === $operator) {
41
+ $operator = '>';
42
+ }
43
+
44
+ if ('until' === $operator || 'before' === $operator) {
45
+ $operator = '<';
46
+ }
47
+
48
+ parent::__construct($target, $operator);
49
+ }
50
+ }
@@ -0,0 +1,78 @@
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony\Component\Finder\Comparator;
13
+
14
+ /**
15
+ * NumberComparator compiles a simple comparison to an anonymous
16
+ * subroutine, which you can call with a value to be tested again.
17
+ *
18
+ * Now this would be very pointless, if NumberCompare didn't understand
19
+ * magnitudes.
20
+ *
21
+ * The target value may use magnitudes of kilobytes (k, ki),
22
+ * megabytes (m, mi), or gigabytes (g, gi). Those suffixed
23
+ * with an i use the appropriate 2**n version in accordance with the
24
+ * IEC standard: http://physics.nist.gov/cuu/Units/binary.html
25
+ *
26
+ * Based on the Perl Number::Compare module.
27
+ *
28
+ * @author Fabien Potencier <fabien@symfony.com> PHP port
29
+ * @author Richard Clamp <richardc@unixbeard.net> Perl version
30
+ * @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
31
+ * @copyright 2002 Richard Clamp <richardc@unixbeard.net>
32
+ *
33
+ * @see http://physics.nist.gov/cuu/Units/binary.html
34
+ */
35
+ class NumberComparator extends Comparator
36
+ {
37
+ /**
38
+ * @param string|null $test A comparison string or null
39
+ *
40
+ * @throws \InvalidArgumentException If the test is not understood
41
+ */
42
+ public function __construct(?string $test)
43
+ {
44
+ if (null === $test || !preg_match('#^\s*(==|!=|[<>]=?)?\s*([0-9\.]+)\s*([kmg]i?)?\s*$#i', $test, $matches)) {
45
+ throw new \InvalidArgumentException(\sprintf('Don\'t understand "%s" as a number test.', $test ?? 'null'));
46
+ }
47
+
48
+ $target = $matches[2];
49
+ if (!is_numeric($target)) {
50
+ throw new \InvalidArgumentException(\sprintf('Invalid number "%s".', $target));
51
+ }
52
+ if (isset($matches[3])) {
53
+ // magnitude
54
+ switch (strtolower($matches[3])) {
55
+ case 'k':
56
+ $target *= 1000;
57
+ break;
58
+ case 'ki':
59
+ $target *= 1024;
60
+ break;
61
+ case 'm':
62
+ $target *= 1000000;
63
+ break;
64
+ case 'mi':
65
+ $target *= 1024 * 1024;
66
+ break;
67
+ case 'g':
68
+ $target *= 1000000000;
69
+ break;
70
+ case 'gi':
71
+ $target *= 1024 * 1024 * 1024;
72
+ break;
73
+ }
74
+ }
75
+
76
+ parent::__construct($target, $matches[1] ?: '==');
77
+ }
78
+ }
@@ -0,0 +1,19 @@
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony\Component\Finder\Exception;
13
+
14
+ /**
15
+ * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
16
+ */
17
+ class AccessDeniedException extends \UnexpectedValueException
18
+ {
19
+ }
@@ -0,0 +1,19 @@
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony\Component\Finder\Exception;
13
+
14
+ /**
15
+ * @author Andreas Erhard <andreas.erhard@i-med.ac.at>
16
+ */
17
+ class DirectoryNotFoundException extends \InvalidArgumentException
18
+ {
19
+ }