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.
- package/README.md +33 -0
- package/assets/demo.gif +0 -0
- package/dist/cli/{_events-BRGCap7g.mjs → _events-C60cNJ1W.mjs} +1 -1
- package/dist/cli/{index-9Oz-0bqF.mjs → index-D9syEMMz.mjs} +4 -4
- package/dist/cli/{index-CT4S2538.mjs → index-Ru6CUP6w.mjs} +24 -12
- package/dist/cli/{login-D4E3GoXe.mjs → login-C3QlGVbr.mjs} +1 -1
- package/dist/cli/{logout-DE-RoshK.mjs → logout-B63eZwJZ.mjs} +1 -1
- package/dist/cli/main.mjs +2 -1
- package/dist/cli/{resume-DLoXmzNG.mjs → resume-DQT_MK6A.mjs} +1 -1
- package/dist/cli/{set-B0L-QiXT.mjs → set-C805heQS.mjs} +1 -1
- package/dist/cli/{set-B8YYUENH.mjs → set-CjTbueyB.mjs} +1 -1
- package/dist/cli/{status-DEOAA0yx.mjs → status-SnKm1rRP.mjs} +1 -1
- package/dist/cli/{wp-CobSX6C6.mjs → wp-D0HZdudM.mjs} +1 -1
- package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
- package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
- package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
- package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
- package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
- package/dist/cli/wp-files/sqlite-command/version +1 -1
- package/package.json +4 -3
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
- /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
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;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Extends \SplFileInfo to support relative paths.
|
|
16
|
+
*
|
|
17
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
18
|
+
*/
|
|
19
|
+
class SplFileInfo extends \SplFileInfo
|
|
20
|
+
{
|
|
21
|
+
/**
|
|
22
|
+
* @param string $file The file name
|
|
23
|
+
* @param string $relativePath The relative path
|
|
24
|
+
* @param string $relativePathname The relative path name
|
|
25
|
+
*/
|
|
26
|
+
public function __construct(
|
|
27
|
+
string $file,
|
|
28
|
+
private string $relativePath,
|
|
29
|
+
private string $relativePathname,
|
|
30
|
+
) {
|
|
31
|
+
parent::__construct($file);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns the relative path.
|
|
36
|
+
*
|
|
37
|
+
* This path does not contain the file name.
|
|
38
|
+
*/
|
|
39
|
+
public function getRelativePath(): string
|
|
40
|
+
{
|
|
41
|
+
return $this->relativePath;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Returns the relative path name.
|
|
46
|
+
*
|
|
47
|
+
* This path contains the file name.
|
|
48
|
+
*/
|
|
49
|
+
public function getRelativePathname(): string
|
|
50
|
+
{
|
|
51
|
+
return $this->relativePathname;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public function getFilenameWithoutExtension(): string
|
|
55
|
+
{
|
|
56
|
+
$filename = $this->getFilename();
|
|
57
|
+
|
|
58
|
+
return pathinfo($filename, \PATHINFO_FILENAME);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns the contents of the file.
|
|
63
|
+
*
|
|
64
|
+
* @throws \RuntimeException
|
|
65
|
+
*/
|
|
66
|
+
public function getContents(): string
|
|
67
|
+
{
|
|
68
|
+
set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
|
|
69
|
+
try {
|
|
70
|
+
$content = file_get_contents($this->getPathname());
|
|
71
|
+
} finally {
|
|
72
|
+
restore_error_handler();
|
|
73
|
+
}
|
|
74
|
+
if (false === $content) {
|
|
75
|
+
throw new \RuntimeException($error);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return $content;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "symfony/finder",
|
|
3
|
+
"type": "library",
|
|
4
|
+
"description": "Finds files and directories via an intuitive fluent interface",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"homepage": "https://symfony.com",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"authors": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Fabien Potencier",
|
|
11
|
+
"email": "fabien@symfony.com"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Symfony Community",
|
|
15
|
+
"homepage": "https://symfony.com/contributors"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"require": {
|
|
19
|
+
"php": ">=8.4"
|
|
20
|
+
},
|
|
21
|
+
"require-dev": {
|
|
22
|
+
"symfony/filesystem": "^7.4|^8.0"
|
|
23
|
+
},
|
|
24
|
+
"autoload": {
|
|
25
|
+
"psr-4": { "Symfony\\Component\\Finder\\": "" },
|
|
26
|
+
"exclude-from-classmap": [
|
|
27
|
+
"/Tests/"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"minimum-stability": "dev"
|
|
31
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Mustache.php
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
A [Mustache](https://mustache.github.io/) implementation in PHP.
|
|
5
|
+
|
|
6
|
+
[](https://packagist.org/packages/mustache/mustache)
|
|
7
|
+
[](https://packagist.org/packages/mustache/mustache)
|
|
8
|
+
|
|
9
|
+
Installation
|
|
10
|
+
------------
|
|
11
|
+
```
|
|
12
|
+
composer require mustache/mustache
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Usage
|
|
16
|
+
-----
|
|
17
|
+
|
|
18
|
+
A quick example:
|
|
19
|
+
|
|
20
|
+
```php
|
|
21
|
+
<?php
|
|
22
|
+
$m = new Mustache_Engine(array('entity_flags' => ENT_QUOTES));
|
|
23
|
+
echo $m->render('Hello {{planet}}', array('planet' => 'World!')); // "Hello World!"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
And a more in-depth example -- this is the canonical Mustache template:
|
|
28
|
+
|
|
29
|
+
```html+jinja
|
|
30
|
+
Hello {{name}}
|
|
31
|
+
You have just won {{value}} dollars!
|
|
32
|
+
{{#in_ca}}
|
|
33
|
+
Well, {{taxed_value}} dollars, after taxes.
|
|
34
|
+
{{/in_ca}}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
Create a view "context" object -- which could also be an associative array, but those don't do functions quite as well:
|
|
39
|
+
|
|
40
|
+
```php
|
|
41
|
+
<?php
|
|
42
|
+
class Chris {
|
|
43
|
+
public $name = "Chris";
|
|
44
|
+
public $value = 10000;
|
|
45
|
+
|
|
46
|
+
public function taxed_value() {
|
|
47
|
+
return $this->value - ($this->value * 0.4);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public $in_ca = true;
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
And render it:
|
|
56
|
+
|
|
57
|
+
```php
|
|
58
|
+
<?php
|
|
59
|
+
$m = new Mustache_Engine(array('entity_flags' => ENT_QUOTES));
|
|
60
|
+
$chris = new Chris;
|
|
61
|
+
echo $m->render($template, $chris);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
*Note:* we recommend using `ENT_QUOTES` as a default of [entity_flags](https://github.com/bobthecow/mustache.php/wiki#entity_flags) to decrease the chance of Cross-site scripting vulnerability.
|
|
65
|
+
|
|
66
|
+
And That's Not All!
|
|
67
|
+
-------------------
|
|
68
|
+
|
|
69
|
+
Read [the Mustache.php documentation](https://github.com/bobthecow/mustache.php/wiki/Home) for more information.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
See Also
|
|
73
|
+
--------
|
|
74
|
+
|
|
75
|
+
* [mustache(5)](http://mustache.github.io/mustache.5.html) man page.
|
|
76
|
+
* [Readme for the Ruby Mustache implementation](http://github.com/defunkt/mustache/blob/master/README.md).
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "wp-cli/mustache",
|
|
3
3
|
"description": "A Mustache implementation in PHP.",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"templating",
|
|
6
|
-
"mustache"
|
|
7
|
-
],
|
|
4
|
+
"keywords": ["templating", "mustache"],
|
|
8
5
|
"homepage": "https://github.com/bobthecow/mustache.php",
|
|
9
6
|
"type": "library",
|
|
10
7
|
"license": "MIT",
|
|
@@ -22,17 +19,10 @@
|
|
|
22
19
|
"friendsofphp/php-cs-fixer": "~2.19.3",
|
|
23
20
|
"yoast/phpunit-polyfills": "^2.0"
|
|
24
21
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"Mustache\\": "src/"
|
|
28
|
-
},
|
|
29
|
-
"classmap": [
|
|
30
|
-
"src/compat.php"
|
|
31
|
-
]
|
|
22
|
+
"replace": {
|
|
23
|
+
"mustache/mustache": "^2.14.2"
|
|
32
24
|
},
|
|
33
|
-
"autoload
|
|
34
|
-
"psr-
|
|
35
|
-
"Mustache\\Test\\": "test/"
|
|
36
|
-
}
|
|
25
|
+
"autoload": {
|
|
26
|
+
"psr-0": { "Mustache": "src/" }
|
|
37
27
|
}
|
|
38
28
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of Mustache.php.
|
|
5
|
+
*
|
|
6
|
+
* (c) 2010-2017 Justin Hileman
|
|
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
|
+
/**
|
|
13
|
+
* Mustache class autoloader.
|
|
14
|
+
*/
|
|
15
|
+
class Mustache_Autoloader
|
|
16
|
+
{
|
|
17
|
+
private $baseDir;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An array where the key is the baseDir and the key is an instance of this
|
|
21
|
+
* class.
|
|
22
|
+
*
|
|
23
|
+
* @var array
|
|
24
|
+
*/
|
|
25
|
+
private static $instances;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Autoloader constructor.
|
|
29
|
+
*
|
|
30
|
+
* @param string $baseDir Mustache library base directory (default: dirname(__FILE__).'/..')
|
|
31
|
+
*/
|
|
32
|
+
public function __construct($baseDir = null)
|
|
33
|
+
{
|
|
34
|
+
if ($baseDir === null) {
|
|
35
|
+
$baseDir = dirname(__FILE__) . '/..';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// realpath doesn't always work, for example, with stream URIs
|
|
39
|
+
$realDir = realpath($baseDir);
|
|
40
|
+
if (is_dir($realDir)) {
|
|
41
|
+
$this->baseDir = $realDir;
|
|
42
|
+
} else {
|
|
43
|
+
$this->baseDir = $baseDir;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Register a new instance as an SPL autoloader.
|
|
49
|
+
*
|
|
50
|
+
* @param string $baseDir Mustache library base directory (default: dirname(__FILE__).'/..')
|
|
51
|
+
*
|
|
52
|
+
* @return Mustache_Autoloader Registered Autoloader instance
|
|
53
|
+
*/
|
|
54
|
+
public static function register($baseDir = null)
|
|
55
|
+
{
|
|
56
|
+
$key = $baseDir ? $baseDir : 0;
|
|
57
|
+
|
|
58
|
+
if (!isset(self::$instances[$key])) {
|
|
59
|
+
self::$instances[$key] = new self($baseDir);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
$loader = self::$instances[$key];
|
|
63
|
+
spl_autoload_register(array($loader, 'autoload'));
|
|
64
|
+
|
|
65
|
+
return $loader;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Autoload Mustache classes.
|
|
70
|
+
*
|
|
71
|
+
* @param string $class
|
|
72
|
+
*/
|
|
73
|
+
public function autoload($class)
|
|
74
|
+
{
|
|
75
|
+
if ($class[0] === '\\') {
|
|
76
|
+
$class = substr($class, 1);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (strpos($class, 'Mustache') !== 0) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
$file = sprintf('%s/%s.php', $this->baseDir, str_replace('_', '/', $class));
|
|
84
|
+
if (is_file($file)) {
|
|
85
|
+
require $file;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -3,19 +3,12 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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\Cache;
|
|
13
|
-
|
|
14
|
-
use Mustache\Cache;
|
|
15
|
-
use Mustache\Exception\InvalidArgumentException;
|
|
16
|
-
use Mustache\Logger;
|
|
17
|
-
use Psr\Log\LoggerInterface;
|
|
18
|
-
|
|
19
12
|
/**
|
|
20
13
|
* Abstract Mustache Cache class.
|
|
21
14
|
*
|
|
@@ -23,14 +16,14 @@ use Psr\Log\LoggerInterface;
|
|
|
23
16
|
*
|
|
24
17
|
* @abstract
|
|
25
18
|
*/
|
|
26
|
-
abstract class
|
|
19
|
+
abstract class Mustache_Cache_AbstractCache implements Mustache_Cache
|
|
27
20
|
{
|
|
28
21
|
private $logger = null;
|
|
29
22
|
|
|
30
23
|
/**
|
|
31
24
|
* Get the current logger instance.
|
|
32
25
|
*
|
|
33
|
-
* @return
|
|
26
|
+
* @return Mustache_Logger|Psr\Log\LoggerInterface
|
|
34
27
|
*/
|
|
35
28
|
public function getLogger()
|
|
36
29
|
{
|
|
@@ -40,13 +33,12 @@ abstract class AbstractCache implements Cache
|
|
|
40
33
|
/**
|
|
41
34
|
* Set a logger instance.
|
|
42
35
|
*
|
|
43
|
-
* @param
|
|
36
|
+
* @param Mustache_Logger|Psr\Log\LoggerInterface $logger
|
|
44
37
|
*/
|
|
45
38
|
public function setLogger($logger = null)
|
|
46
39
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
throw new InvalidArgumentException('Expected an instance of Mustache\\Logger or Psr\\Log\\LoggerInterface.');
|
|
40
|
+
if ($logger !== null && !($logger instanceof Mustache_Logger || is_a($logger, 'Psr\\Log\\LoggerInterface'))) {
|
|
41
|
+
throw new Mustache_Exception_InvalidArgumentException('Expected an instance of Mustache_Logger or Psr\\Log\\LoggerInterface.');
|
|
50
42
|
}
|
|
51
43
|
|
|
52
44
|
$this->logger = $logger;
|
|
@@ -59,7 +51,7 @@ abstract class AbstractCache implements Cache
|
|
|
59
51
|
* @param string $message The log message
|
|
60
52
|
* @param array $context The log context
|
|
61
53
|
*/
|
|
62
|
-
protected function log($level, $message, array $context =
|
|
54
|
+
protected function log($level, $message, array $context = array())
|
|
63
55
|
{
|
|
64
56
|
if (isset($this->logger)) {
|
|
65
57
|
$this->logger->log($level, $message, $context);
|
|
@@ -3,28 +3,23 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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\Cache;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception\RuntimeException;
|
|
15
|
-
use Mustache\Logger;
|
|
16
|
-
|
|
17
12
|
/**
|
|
18
13
|
* Mustache Cache filesystem implementation.
|
|
19
14
|
*
|
|
20
15
|
* A FilesystemCache instance caches Mustache Template classes from the filesystem by name:
|
|
21
16
|
*
|
|
22
|
-
* $cache = new
|
|
17
|
+
* $cache = new Mustache_Cache_FilesystemCache(dirname(__FILE__).'/cache');
|
|
23
18
|
* $cache->cache($className, $compiledSource);
|
|
24
19
|
*
|
|
25
20
|
* The FilesystemCache benefits from any opcode caching that may be setup in your environment. So do that, k?
|
|
26
21
|
*/
|
|
27
|
-
class
|
|
22
|
+
class Mustache_Cache_FilesystemCache extends Mustache_Cache_AbstractCache
|
|
28
23
|
{
|
|
29
24
|
private $baseDir;
|
|
30
25
|
private $fileMode;
|
|
@@ -71,9 +66,9 @@ class FilesystemCache extends AbstractCache
|
|
|
71
66
|
$fileName = $this->getCacheFilename($key);
|
|
72
67
|
|
|
73
68
|
$this->log(
|
|
74
|
-
|
|
69
|
+
Mustache_Logger::DEBUG,
|
|
75
70
|
'Writing to template cache: "{fileName}"',
|
|
76
|
-
|
|
71
|
+
array('fileName' => $fileName)
|
|
77
72
|
);
|
|
78
73
|
|
|
79
74
|
$this->writeFile($fileName, $value);
|
|
@@ -96,7 +91,7 @@ class FilesystemCache extends AbstractCache
|
|
|
96
91
|
/**
|
|
97
92
|
* Create cache directory.
|
|
98
93
|
*
|
|
99
|
-
* @throws
|
|
94
|
+
* @throws Mustache_Exception_RuntimeException If unable to create directory
|
|
100
95
|
*
|
|
101
96
|
* @param string $fileName
|
|
102
97
|
*
|
|
@@ -107,15 +102,15 @@ class FilesystemCache extends AbstractCache
|
|
|
107
102
|
$dirName = dirname($fileName);
|
|
108
103
|
if (!is_dir($dirName)) {
|
|
109
104
|
$this->log(
|
|
110
|
-
|
|
105
|
+
Mustache_Logger::INFO,
|
|
111
106
|
'Creating Mustache template cache directory: "{dirName}"',
|
|
112
|
-
|
|
107
|
+
array('dirName' => $dirName)
|
|
113
108
|
);
|
|
114
109
|
|
|
115
110
|
@mkdir($dirName, 0777, true);
|
|
116
111
|
// @codeCoverageIgnoreStart
|
|
117
112
|
if (!is_dir($dirName)) {
|
|
118
|
-
throw new
|
|
113
|
+
throw new Mustache_Exception_RuntimeException(sprintf('Failed to create cache directory "%s".', $dirName));
|
|
119
114
|
}
|
|
120
115
|
// @codeCoverageIgnoreEnd
|
|
121
116
|
}
|
|
@@ -126,7 +121,7 @@ class FilesystemCache extends AbstractCache
|
|
|
126
121
|
/**
|
|
127
122
|
* Write cache file.
|
|
128
123
|
*
|
|
129
|
-
* @throws
|
|
124
|
+
* @throws Mustache_Exception_RuntimeException If unable to write file
|
|
130
125
|
*
|
|
131
126
|
* @param string $fileName
|
|
132
127
|
* @param string $value
|
|
@@ -136,9 +131,9 @@ class FilesystemCache extends AbstractCache
|
|
|
136
131
|
$dirName = $this->buildDirectoryForFilename($fileName);
|
|
137
132
|
|
|
138
133
|
$this->log(
|
|
139
|
-
|
|
134
|
+
Mustache_Logger::DEBUG,
|
|
140
135
|
'Caching compiled template to "{fileName}"',
|
|
141
|
-
|
|
136
|
+
array('fileName' => $fileName)
|
|
142
137
|
);
|
|
143
138
|
|
|
144
139
|
$tempFile = tempnam($dirName, basename($fileName));
|
|
@@ -152,15 +147,15 @@ class FilesystemCache extends AbstractCache
|
|
|
152
147
|
|
|
153
148
|
// @codeCoverageIgnoreStart
|
|
154
149
|
$this->log(
|
|
155
|
-
|
|
150
|
+
Mustache_Logger::ERROR,
|
|
156
151
|
'Unable to rename Mustache temp cache file: "{tempName}" -> "{fileName}"',
|
|
157
|
-
|
|
152
|
+
array('tempName' => $tempFile, 'fileName' => $fileName)
|
|
158
153
|
);
|
|
159
154
|
// @codeCoverageIgnoreEnd
|
|
160
155
|
}
|
|
161
156
|
|
|
162
157
|
// @codeCoverageIgnoreStart
|
|
163
|
-
throw new
|
|
158
|
+
throw new Mustache_Exception_RuntimeException(sprintf('Failed to write cache file "%s".', $fileName));
|
|
164
159
|
// @codeCoverageIgnoreEnd
|
|
165
160
|
}
|
|
166
161
|
}
|
|
@@ -3,23 +3,19 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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\Cache;
|
|
13
|
-
|
|
14
|
-
use Mustache\Logger;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Mustache Cache in-memory implementation.
|
|
18
14
|
*
|
|
19
15
|
* The in-memory cache is used for uncached lambda section templates. It's also useful during development, but is not
|
|
20
16
|
* recommended for production use.
|
|
21
17
|
*/
|
|
22
|
-
class
|
|
18
|
+
class Mustache_Cache_NoopCache extends Mustache_Cache_AbstractCache
|
|
23
19
|
{
|
|
24
20
|
/**
|
|
25
21
|
* Loads nothing. Move along.
|
|
@@ -42,9 +38,9 @@ class NoopCache extends AbstractCache
|
|
|
42
38
|
public function cache($key, $value)
|
|
43
39
|
{
|
|
44
40
|
$this->log(
|
|
45
|
-
|
|
41
|
+
Mustache_Logger::WARNING,
|
|
46
42
|
'Template cache disabled, evaluating "{className}" class at runtime',
|
|
47
|
-
|
|
43
|
+
array('className' => $key)
|
|
48
44
|
);
|
|
49
45
|
eval('?>' . $value);
|
|
50
46
|
}
|
|
@@ -3,25 +3,22 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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 Psr\Log\LoggerInterface;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Mustache Cache interface.
|
|
18
14
|
*
|
|
19
|
-
* Interface for caching and loading
|
|
15
|
+
* Interface for caching and loading Mustache_Template classes
|
|
16
|
+
* generated by the Mustache_Compiler.
|
|
20
17
|
*/
|
|
21
|
-
interface
|
|
18
|
+
interface Mustache_Cache
|
|
22
19
|
{
|
|
23
20
|
/**
|
|
24
|
-
* Load a compiled
|
|
21
|
+
* Load a compiled Mustache_Template class from cache.
|
|
25
22
|
*
|
|
26
23
|
* @param string $key
|
|
27
24
|
*
|
|
@@ -30,7 +27,7 @@ interface Cache
|
|
|
30
27
|
public function load($key);
|
|
31
28
|
|
|
32
29
|
/**
|
|
33
|
-
* Cache and load a compiled
|
|
30
|
+
* Cache and load a compiled Mustache_Template class.
|
|
34
31
|
*
|
|
35
32
|
* @param string $key
|
|
36
33
|
* @param string $value
|
|
@@ -40,7 +37,7 @@ interface Cache
|
|
|
40
37
|
/**
|
|
41
38
|
* Set a logger instance.
|
|
42
39
|
*
|
|
43
|
-
* @param
|
|
40
|
+
* @param Mustache_Logger|Psr\Log\LoggerInterface $logger
|
|
44
41
|
*/
|
|
45
42
|
public function setLogger($logger = null);
|
|
46
43
|
}
|