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
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Invalid argument exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_InvalidArgumentException extends InvalidArgumentException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
// This space intentionally left blank.
|
|
22
18
|
}
|
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Logic exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_LogicException extends LogicException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
// This space intentionally left blank.
|
|
22
18
|
}
|
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Runtime exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_RuntimeException extends RuntimeException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
// This space intentionally left blank.
|
|
22
18
|
}
|
|
@@ -3,31 +3,32 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Mustache syntax exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_SyntaxException extends LogicException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
protected $token;
|
|
22
18
|
|
|
23
19
|
/**
|
|
24
20
|
* @param string $msg
|
|
21
|
+
* @param array $token
|
|
25
22
|
* @param Exception $previous
|
|
26
23
|
*/
|
|
27
24
|
public function __construct($msg, array $token, $previous = null)
|
|
28
25
|
{
|
|
29
26
|
$this->token = $token;
|
|
30
|
-
|
|
27
|
+
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
|
28
|
+
parent::__construct($msg, 0, $previous);
|
|
29
|
+
} else {
|
|
30
|
+
parent::__construct($msg); // @codeCoverageIgnore
|
|
31
|
+
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Unknown filter exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_UnknownFilterException extends UnexpectedValueException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
protected $filterName;
|
|
22
18
|
|
|
@@ -28,7 +24,11 @@ class UnknownFilterException extends \UnexpectedValueException implements Except
|
|
|
28
24
|
{
|
|
29
25
|
$this->filterName = $filterName;
|
|
30
26
|
$message = sprintf('Unknown filter: %s', $filterName);
|
|
31
|
-
|
|
27
|
+
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
|
28
|
+
parent::__construct($message, 0, $previous);
|
|
29
|
+
} else {
|
|
30
|
+
parent::__construct($message); // @codeCoverageIgnore
|
|
31
|
+
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
public function getFilterName()
|
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Unknown helper exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_UnknownHelperException extends InvalidArgumentException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
protected $helperName;
|
|
22
18
|
|
|
@@ -28,7 +24,11 @@ class UnknownHelperException extends InvalidArgumentException implements Excepti
|
|
|
28
24
|
{
|
|
29
25
|
$this->helperName = $helperName;
|
|
30
26
|
$message = sprintf('Unknown helper: %s', $helperName);
|
|
31
|
-
|
|
27
|
+
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
|
28
|
+
parent::__construct($message, 0, $previous);
|
|
29
|
+
} else {
|
|
30
|
+
parent::__construct($message); // @codeCoverageIgnore
|
|
31
|
+
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
public function getHelperName()
|
|
@@ -3,20 +3,16 @@
|
|
|
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\Exception;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Unknown template exception.
|
|
18
14
|
*/
|
|
19
|
-
class
|
|
15
|
+
class Mustache_Exception_UnknownTemplateException extends InvalidArgumentException implements Mustache_Exception
|
|
20
16
|
{
|
|
21
17
|
protected $templateName;
|
|
22
18
|
|
|
@@ -28,7 +24,11 @@ class UnknownTemplateException extends InvalidArgumentException implements Excep
|
|
|
28
24
|
{
|
|
29
25
|
$this->templateName = $templateName;
|
|
30
26
|
$message = sprintf('Unknown template: %s', $templateName);
|
|
31
|
-
|
|
27
|
+
if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
|
|
28
|
+
parent::__construct($message, 0, $previous);
|
|
29
|
+
} else {
|
|
30
|
+
parent::__construct($message); // @codeCoverageIgnore
|
|
31
|
+
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
public function getTemplateName()
|
|
@@ -3,15 +3,16 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A Mustache Exception interface.
|
|
14
|
+
*/
|
|
15
|
+
interface Mustache_Exception
|
|
15
16
|
{
|
|
16
17
|
// This space intentionally left blank.
|
|
17
18
|
}
|
|
@@ -3,32 +3,27 @@
|
|
|
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 Mustache\Exception\InvalidArgumentException;
|
|
15
|
-
use Mustache\Exception\UnknownHelperException;
|
|
16
|
-
|
|
17
12
|
/**
|
|
18
13
|
* A collection of helpers for a Mustache instance.
|
|
19
14
|
*/
|
|
20
|
-
class
|
|
15
|
+
class Mustache_HelperCollection
|
|
21
16
|
{
|
|
22
|
-
private $helpers =
|
|
17
|
+
private $helpers = array();
|
|
23
18
|
|
|
24
19
|
/**
|
|
25
20
|
* Helper Collection constructor.
|
|
26
21
|
*
|
|
27
|
-
* Optionally accepts an array (or
|
|
22
|
+
* Optionally accepts an array (or Traversable) of `$name => $helper` pairs.
|
|
28
23
|
*
|
|
29
|
-
* @throws
|
|
24
|
+
* @throws Mustache_Exception_InvalidArgumentException if the $helpers argument isn't an array or Traversable
|
|
30
25
|
*
|
|
31
|
-
* @param array
|
|
26
|
+
* @param array|Traversable $helpers (default: null)
|
|
32
27
|
*/
|
|
33
28
|
public function __construct($helpers = null)
|
|
34
29
|
{
|
|
@@ -36,8 +31,8 @@ class HelperCollection
|
|
|
36
31
|
return;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
|
-
if (!is_array($helpers) && !$helpers instanceof
|
|
40
|
-
throw new
|
|
34
|
+
if (!is_array($helpers) && !$helpers instanceof Traversable) {
|
|
35
|
+
throw new Mustache_Exception_InvalidArgumentException('HelperCollection constructor expects an array of helpers');
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
foreach ($helpers as $name => $helper) {
|
|
@@ -48,7 +43,7 @@ class HelperCollection
|
|
|
48
43
|
/**
|
|
49
44
|
* Magic mutator.
|
|
50
45
|
*
|
|
51
|
-
* @see
|
|
46
|
+
* @see Mustache_HelperCollection::add
|
|
52
47
|
*
|
|
53
48
|
* @param string $name
|
|
54
49
|
* @param mixed $helper
|
|
@@ -72,7 +67,7 @@ class HelperCollection
|
|
|
72
67
|
/**
|
|
73
68
|
* Magic accessor.
|
|
74
69
|
*
|
|
75
|
-
* @see
|
|
70
|
+
* @see Mustache_HelperCollection::get
|
|
76
71
|
*
|
|
77
72
|
* @param string $name
|
|
78
73
|
*
|
|
@@ -86,7 +81,7 @@ class HelperCollection
|
|
|
86
81
|
/**
|
|
87
82
|
* Get a helper by name.
|
|
88
83
|
*
|
|
89
|
-
* @throws
|
|
84
|
+
* @throws Mustache_Exception_UnknownHelperException If helper does not exist
|
|
90
85
|
*
|
|
91
86
|
* @param string $name
|
|
92
87
|
*
|
|
@@ -95,7 +90,7 @@ class HelperCollection
|
|
|
95
90
|
public function get($name)
|
|
96
91
|
{
|
|
97
92
|
if (!$this->has($name)) {
|
|
98
|
-
throw new
|
|
93
|
+
throw new Mustache_Exception_UnknownHelperException($name);
|
|
99
94
|
}
|
|
100
95
|
|
|
101
96
|
return $this->helpers[$name];
|
|
@@ -104,7 +99,7 @@ class HelperCollection
|
|
|
104
99
|
/**
|
|
105
100
|
* Magic isset().
|
|
106
101
|
*
|
|
107
|
-
* @see
|
|
102
|
+
* @see Mustache_HelperCollection::has
|
|
108
103
|
*
|
|
109
104
|
* @param string $name
|
|
110
105
|
*
|
|
@@ -130,7 +125,7 @@ class HelperCollection
|
|
|
130
125
|
/**
|
|
131
126
|
* Magic unset().
|
|
132
127
|
*
|
|
133
|
-
* @see
|
|
128
|
+
* @see Mustache_HelperCollection::remove
|
|
134
129
|
*
|
|
135
130
|
* @param string $name
|
|
136
131
|
*/
|
|
@@ -142,14 +137,14 @@ class HelperCollection
|
|
|
142
137
|
/**
|
|
143
138
|
* Check whether a given helper is present in the collection.
|
|
144
139
|
*
|
|
145
|
-
* @throws
|
|
140
|
+
* @throws Mustache_Exception_UnknownHelperException if the requested helper is not present
|
|
146
141
|
*
|
|
147
142
|
* @param string $name
|
|
148
143
|
*/
|
|
149
144
|
public function remove($name)
|
|
150
145
|
{
|
|
151
146
|
if (!$this->has($name)) {
|
|
152
|
-
throw new
|
|
147
|
+
throw new Mustache_Exception_UnknownHelperException($name);
|
|
153
148
|
}
|
|
154
149
|
|
|
155
150
|
unset($this->helpers[$name]);
|
|
@@ -162,7 +157,7 @@ class HelperCollection
|
|
|
162
157
|
*/
|
|
163
158
|
public function clear()
|
|
164
159
|
{
|
|
165
|
-
$this->helpers =
|
|
160
|
+
$this->helpers = array();
|
|
166
161
|
}
|
|
167
162
|
|
|
168
163
|
/**
|
|
@@ -3,14 +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;
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* Mustache Lambda Helper.
|
|
16
14
|
*
|
|
@@ -18,7 +16,7 @@ namespace Mustache;
|
|
|
18
16
|
* giving them access to a `render` method for rendering a string with the
|
|
19
17
|
* current context.
|
|
20
18
|
*/
|
|
21
|
-
class
|
|
19
|
+
class Mustache_LambdaHelper
|
|
22
20
|
{
|
|
23
21
|
private $mustache;
|
|
24
22
|
private $context;
|
|
@@ -27,11 +25,11 @@ class LambdaHelper
|
|
|
27
25
|
/**
|
|
28
26
|
* Mustache Lambda Helper constructor.
|
|
29
27
|
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @param string
|
|
28
|
+
* @param Mustache_Engine $mustache Mustache engine instance
|
|
29
|
+
* @param Mustache_Context $context Rendering context
|
|
30
|
+
* @param string $delims Optional custom delimiters, in the format `{{= <% %> =}}`. (default: null)
|
|
33
31
|
*/
|
|
34
|
-
public function __construct(
|
|
32
|
+
public function __construct(Mustache_Engine $mustache, Mustache_Context $context, $delims = null)
|
|
35
33
|
{
|
|
36
34
|
$this->mustache = $mustache;
|
|
37
35
|
$this->context = $context;
|
|
@@ -47,27 +45,9 @@ class LambdaHelper
|
|
|
47
45
|
*/
|
|
48
46
|
public function render($string)
|
|
49
47
|
{
|
|
50
|
-
|
|
48
|
+
return $this->mustache
|
|
51
49
|
->loadLambda((string) $string, $this->delims)
|
|
52
50
|
->renderInternal($this->context);
|
|
53
|
-
|
|
54
|
-
return $this->mustache->getDoubleRenderLambdas() ? $value : $this->preventRender($value);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Prevent rendering of a string as a Mustache template.
|
|
59
|
-
*
|
|
60
|
-
* This is useful for returning a raw string from a lambda without processing it as a Mustache template.
|
|
61
|
-
*
|
|
62
|
-
* @see RenderedString
|
|
63
|
-
*
|
|
64
|
-
* @param string $value The raw string value to return
|
|
65
|
-
*
|
|
66
|
-
* @return RenderedString A RenderedString instance containing the raw value
|
|
67
|
-
*/
|
|
68
|
-
public function preventRender($value)
|
|
69
|
-
{
|
|
70
|
-
return new RenderedString($value);
|
|
71
51
|
}
|
|
72
52
|
|
|
73
53
|
/**
|
|
@@ -87,7 +67,7 @@ class LambdaHelper
|
|
|
87
67
|
*
|
|
88
68
|
* @param string $delims Custom delimiters, in the format `{{= <% %> =}}`
|
|
89
69
|
*
|
|
90
|
-
* @return
|
|
70
|
+
* @return Mustache_LambdaHelper
|
|
91
71
|
*/
|
|
92
72
|
public function withDelimiters($delims)
|
|
93
73
|
{
|
|
@@ -3,17 +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\Loader;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception\UnknownTemplateException;
|
|
15
|
-
use Mustache\Loader;
|
|
16
|
-
|
|
17
12
|
/**
|
|
18
13
|
* Mustache Template array Loader implementation.
|
|
19
14
|
*
|
|
@@ -26,19 +21,19 @@ use Mustache\Loader;
|
|
|
26
21
|
*
|
|
27
22
|
* $tpl = $loader->load('foo'); // '{{ bar }}'
|
|
28
23
|
*
|
|
29
|
-
* The ArrayLoader is used internally as a partials loader by
|
|
24
|
+
* The ArrayLoader is used internally as a partials loader by Mustache_Engine instance when an array of partials
|
|
30
25
|
* is set. It can also be used as a quick-and-dirty Template loader.
|
|
31
26
|
*/
|
|
32
|
-
class
|
|
27
|
+
class Mustache_Loader_ArrayLoader implements Mustache_Loader, Mustache_Loader_MutableLoader
|
|
33
28
|
{
|
|
34
29
|
private $templates;
|
|
35
30
|
|
|
36
31
|
/**
|
|
37
32
|
* ArrayLoader constructor.
|
|
38
33
|
*
|
|
39
|
-
* @param array $templates Associative array of Template source (default:
|
|
34
|
+
* @param array $templates Associative array of Template source (default: array())
|
|
40
35
|
*/
|
|
41
|
-
public function __construct(array $templates =
|
|
36
|
+
public function __construct(array $templates = array())
|
|
42
37
|
{
|
|
43
38
|
$this->templates = $templates;
|
|
44
39
|
}
|
|
@@ -46,7 +41,7 @@ class ArrayLoader implements Loader, MutableLoader
|
|
|
46
41
|
/**
|
|
47
42
|
* Load a Template.
|
|
48
43
|
*
|
|
49
|
-
* @throws
|
|
44
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found
|
|
50
45
|
*
|
|
51
46
|
* @param string $name
|
|
52
47
|
*
|
|
@@ -55,7 +50,7 @@ class ArrayLoader implements Loader, MutableLoader
|
|
|
55
50
|
public function load($name)
|
|
56
51
|
{
|
|
57
52
|
if (!isset($this->templates[$name])) {
|
|
58
|
-
throw new
|
|
53
|
+
throw new Mustache_Exception_UnknownTemplateException($name);
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
return $this->templates[$name];
|
|
@@ -63,6 +58,8 @@ class ArrayLoader implements Loader, MutableLoader
|
|
|
63
58
|
|
|
64
59
|
/**
|
|
65
60
|
* Set an associative array of Template sources for this loader.
|
|
61
|
+
*
|
|
62
|
+
* @param array $templates
|
|
66
63
|
*/
|
|
67
64
|
public function setTemplates(array $templates)
|
|
68
65
|
{
|
|
@@ -3,38 +3,33 @@
|
|
|
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\Loader;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception\UnknownTemplateException;
|
|
15
|
-
use Mustache\Loader;
|
|
16
|
-
|
|
17
12
|
/**
|
|
18
13
|
* A Mustache Template cascading loader implementation, which delegates to other
|
|
19
14
|
* Loader instances.
|
|
20
15
|
*/
|
|
21
|
-
class
|
|
16
|
+
class Mustache_Loader_CascadingLoader implements Mustache_Loader
|
|
22
17
|
{
|
|
23
18
|
private $loaders;
|
|
24
19
|
|
|
25
20
|
/**
|
|
26
21
|
* Construct a CascadingLoader with an array of loaders.
|
|
27
22
|
*
|
|
28
|
-
* $loader = new
|
|
29
|
-
* new
|
|
30
|
-
* new
|
|
31
|
-
*
|
|
23
|
+
* $loader = new Mustache_Loader_CascadingLoader(array(
|
|
24
|
+
* new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__),
|
|
25
|
+
* new Mustache_Loader_FilesystemLoader(__DIR__.'/templates')
|
|
26
|
+
* ));
|
|
32
27
|
*
|
|
33
|
-
* @param
|
|
28
|
+
* @param Mustache_Loader[] $loaders
|
|
34
29
|
*/
|
|
35
|
-
public function __construct(array $loaders =
|
|
30
|
+
public function __construct(array $loaders = array())
|
|
36
31
|
{
|
|
37
|
-
$this->loaders =
|
|
32
|
+
$this->loaders = array();
|
|
38
33
|
foreach ($loaders as $loader) {
|
|
39
34
|
$this->addLoader($loader);
|
|
40
35
|
}
|
|
@@ -42,8 +37,10 @@ class CascadingLoader implements Loader
|
|
|
42
37
|
|
|
43
38
|
/**
|
|
44
39
|
* Add a Loader instance.
|
|
40
|
+
*
|
|
41
|
+
* @param Mustache_Loader $loader
|
|
45
42
|
*/
|
|
46
|
-
public function addLoader(
|
|
43
|
+
public function addLoader(Mustache_Loader $loader)
|
|
47
44
|
{
|
|
48
45
|
$this->loaders[] = $loader;
|
|
49
46
|
}
|
|
@@ -51,7 +48,7 @@ class CascadingLoader implements Loader
|
|
|
51
48
|
/**
|
|
52
49
|
* Load a Template by name.
|
|
53
50
|
*
|
|
54
|
-
* @throws
|
|
51
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found
|
|
55
52
|
*
|
|
56
53
|
* @param string $name
|
|
57
54
|
*
|
|
@@ -62,11 +59,11 @@ class CascadingLoader implements Loader
|
|
|
62
59
|
foreach ($this->loaders as $loader) {
|
|
63
60
|
try {
|
|
64
61
|
return $loader->load($name);
|
|
65
|
-
} catch (
|
|
62
|
+
} catch (Mustache_Exception_UnknownTemplateException $e) {
|
|
66
63
|
// do nothing, check the next loader.
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
|
|
70
|
-
throw new
|
|
67
|
+
throw new Mustache_Exception_UnknownTemplateException($name);
|
|
71
68
|
}
|
|
72
69
|
}
|