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,55 +3,49 @@
|
|
|
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\RuntimeException;
|
|
15
|
-
use Mustache\Exception\UnknownTemplateException;
|
|
16
|
-
use Mustache\Loader;
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* Mustache Template filesystem Loader implementation.
|
|
20
14
|
*
|
|
21
15
|
* A FilesystemLoader instance loads Mustache Template source from the filesystem by name:
|
|
22
16
|
*
|
|
23
|
-
* $loader = new
|
|
24
|
-
* $tpl = $loader->load('foo'); // equivalent to `file_get_contents(
|
|
17
|
+
* $loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views');
|
|
18
|
+
* $tpl = $loader->load('foo'); // equivalent to `file_get_contents(dirname(__FILE__).'/views/foo.mustache');
|
|
25
19
|
*
|
|
26
20
|
* This is probably the most useful Mustache Loader implementation. It can be used for partials and normal Templates:
|
|
27
21
|
*
|
|
28
|
-
* $m = new
|
|
29
|
-
* 'loader' => new
|
|
30
|
-
* 'partials_loader' => new
|
|
31
|
-
*
|
|
22
|
+
* $m = new Mustache(array(
|
|
23
|
+
* 'loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views'),
|
|
24
|
+
* 'partials_loader' => new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views/partials'),
|
|
25
|
+
* ));
|
|
32
26
|
*/
|
|
33
|
-
class
|
|
27
|
+
class Mustache_Loader_FilesystemLoader implements Mustache_Loader
|
|
34
28
|
{
|
|
35
29
|
private $baseDir;
|
|
36
30
|
private $extension = '.mustache';
|
|
37
|
-
private $templates =
|
|
31
|
+
private $templates = array();
|
|
38
32
|
|
|
39
33
|
/**
|
|
40
34
|
* Mustache filesystem Loader constructor.
|
|
41
35
|
*
|
|
42
36
|
* Passing an $options array allows overriding certain Loader options during instantiation:
|
|
43
37
|
*
|
|
44
|
-
* $options =
|
|
38
|
+
* $options = array(
|
|
45
39
|
* // The filename extension used for Mustache templates. Defaults to '.mustache'
|
|
46
40
|
* 'extension' => '.ms',
|
|
47
|
-
*
|
|
41
|
+
* );
|
|
48
42
|
*
|
|
49
|
-
* @throws
|
|
43
|
+
* @throws Mustache_Exception_RuntimeException if $baseDir does not exist
|
|
50
44
|
*
|
|
51
45
|
* @param string $baseDir Base directory containing Mustache template files
|
|
52
|
-
* @param array $options Loader options (default:
|
|
46
|
+
* @param array $options Array of Loader options (default: array())
|
|
53
47
|
*/
|
|
54
|
-
public function __construct($baseDir, array $options =
|
|
48
|
+
public function __construct($baseDir, array $options = array())
|
|
55
49
|
{
|
|
56
50
|
$this->baseDir = $baseDir;
|
|
57
51
|
|
|
@@ -60,7 +54,7 @@ class FilesystemLoader implements Loader
|
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
if ($this->shouldCheckPath() && !is_dir($this->baseDir)) {
|
|
63
|
-
throw new
|
|
57
|
+
throw new Mustache_Exception_RuntimeException(sprintf('FilesystemLoader baseDir must be a directory: %s', $baseDir));
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
if (array_key_exists('extension', $options)) {
|
|
@@ -75,7 +69,7 @@ class FilesystemLoader implements Loader
|
|
|
75
69
|
/**
|
|
76
70
|
* Load a Template by name.
|
|
77
71
|
*
|
|
78
|
-
* $loader = new
|
|
72
|
+
* $loader = new Mustache_Loader_FilesystemLoader(dirname(__FILE__).'/views');
|
|
79
73
|
* $loader->load('admin/dashboard'); // loads "./views/admin/dashboard.mustache";
|
|
80
74
|
*
|
|
81
75
|
* @param string $name
|
|
@@ -94,7 +88,7 @@ class FilesystemLoader implements Loader
|
|
|
94
88
|
/**
|
|
95
89
|
* Helper function for loading a Mustache file by name.
|
|
96
90
|
*
|
|
97
|
-
* @throws
|
|
91
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found
|
|
98
92
|
*
|
|
99
93
|
* @param string $name
|
|
100
94
|
*
|
|
@@ -105,7 +99,7 @@ class FilesystemLoader implements Loader
|
|
|
105
99
|
$fileName = $this->getFileName($name);
|
|
106
100
|
|
|
107
101
|
if ($this->shouldCheckPath() && !file_exists($fileName)) {
|
|
108
|
-
throw new
|
|
102
|
+
throw new Mustache_Exception_UnknownTemplateException($name);
|
|
109
103
|
}
|
|
110
104
|
|
|
111
105
|
return file_get_contents($fileName);
|
|
@@ -3,25 +3,19 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
6
|
+
* (c) 2010-2017 Justin Hileman
|
|
7
7
|
*
|
|
8
8
|
* For the full copyright and license information, please view the LICENSE
|
|
9
9
|
* file that was distributed with this source code.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
namespace Mustache\Loader;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception\InvalidArgumentException;
|
|
15
|
-
use Mustache\Exception\UnknownTemplateException;
|
|
16
|
-
use Mustache\Loader;
|
|
17
|
-
|
|
18
12
|
/**
|
|
19
13
|
* A Mustache Template loader for inline templates.
|
|
20
14
|
*
|
|
21
15
|
* With the InlineLoader, templates can be defined at the end of any PHP source
|
|
22
16
|
* file:
|
|
23
17
|
*
|
|
24
|
-
* $loader = new
|
|
18
|
+
* $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
|
|
25
19
|
* $hello = $loader->load('hello');
|
|
26
20
|
* $goodbye = $loader->load('goodbye');
|
|
27
21
|
*
|
|
@@ -37,9 +31,9 @@ use Mustache\Loader;
|
|
|
37
31
|
*
|
|
38
32
|
* The InlineLoader is well-suited to micro-frameworks such as Silex:
|
|
39
33
|
*
|
|
40
|
-
* $app->register(new MustacheServiceProvider,
|
|
41
|
-
* 'mustache.loader' => new
|
|
42
|
-
*
|
|
34
|
+
* $app->register(new MustacheServiceProvider, array(
|
|
35
|
+
* 'mustache.loader' => new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
|
|
36
|
+
* ));
|
|
43
37
|
*
|
|
44
38
|
* $app->get('/{name}', function ($name) use ($app) {
|
|
45
39
|
* return $app['mustache']->render('hello', compact('name'));
|
|
@@ -53,7 +47,7 @@ use Mustache\Loader;
|
|
|
53
47
|
* @@ hello
|
|
54
48
|
* Hello, {{ name }}!
|
|
55
49
|
*/
|
|
56
|
-
class
|
|
50
|
+
class Mustache_Loader_InlineLoader implements Mustache_Loader
|
|
57
51
|
{
|
|
58
52
|
protected $fileName;
|
|
59
53
|
protected $offset;
|
|
@@ -65,7 +59,7 @@ class InlineLoader implements Loader
|
|
|
65
59
|
* The magic constants `__FILE__` and `__COMPILER_HALT_OFFSET__` are usually
|
|
66
60
|
* perfectly suited to the job:
|
|
67
61
|
*
|
|
68
|
-
* $loader = new
|
|
62
|
+
* $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
|
|
69
63
|
*
|
|
70
64
|
* Note that this only works if the loader is instantiated inside the same
|
|
71
65
|
* file as the inline templates. If the templates are located in another
|
|
@@ -79,11 +73,11 @@ class InlineLoader implements Loader
|
|
|
79
73
|
public function __construct($fileName, $offset)
|
|
80
74
|
{
|
|
81
75
|
if (!is_file($fileName)) {
|
|
82
|
-
throw new
|
|
76
|
+
throw new Mustache_Exception_InvalidArgumentException('InlineLoader expects a valid filename.');
|
|
83
77
|
}
|
|
84
78
|
|
|
85
79
|
if (!is_int($offset) || $offset < 0) {
|
|
86
|
-
throw new
|
|
80
|
+
throw new Mustache_Exception_InvalidArgumentException('InlineLoader expects a valid file offset.');
|
|
87
81
|
}
|
|
88
82
|
|
|
89
83
|
$this->fileName = $fileName;
|
|
@@ -93,7 +87,7 @@ class InlineLoader implements Loader
|
|
|
93
87
|
/**
|
|
94
88
|
* Load a Template by name.
|
|
95
89
|
*
|
|
96
|
-
* @throws
|
|
90
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found
|
|
97
91
|
*
|
|
98
92
|
* @param string $name
|
|
99
93
|
*
|
|
@@ -104,7 +98,7 @@ class InlineLoader implements Loader
|
|
|
104
98
|
$this->loadTemplates();
|
|
105
99
|
|
|
106
100
|
if (!array_key_exists($name, $this->templates)) {
|
|
107
|
-
throw new
|
|
101
|
+
throw new Mustache_Exception_UnknownTemplateException($name);
|
|
108
102
|
}
|
|
109
103
|
|
|
110
104
|
return $this->templates[$name];
|
|
@@ -116,10 +110,10 @@ class InlineLoader implements Loader
|
|
|
116
110
|
protected function loadTemplates()
|
|
117
111
|
{
|
|
118
112
|
if ($this->templates === null) {
|
|
119
|
-
$this->templates =
|
|
113
|
+
$this->templates = array();
|
|
120
114
|
$data = file_get_contents($this->fileName, false, null, $this->offset);
|
|
121
115
|
foreach (preg_split("/^@@(?= [\w\d\.]+$)/m", $data, -1) as $chunk) {
|
|
122
|
-
if (trim($chunk)
|
|
116
|
+
if (trim($chunk)) {
|
|
123
117
|
list($name, $content) = explode("\n", $chunk, 2);
|
|
124
118
|
$this->templates[trim($name)] = trim($content);
|
|
125
119
|
}
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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
|
+
* Mustache Template mutable Loader interface.
|
|
14
|
+
*/
|
|
15
|
+
interface Mustache_Loader_MutableLoader
|
|
15
16
|
{
|
|
16
17
|
/**
|
|
17
18
|
* Set an associative array of Template sources for this loader.
|
|
19
|
+
*
|
|
20
|
+
* @param array $templates
|
|
18
21
|
*/
|
|
19
22
|
public function setTemplates(array $templates);
|
|
20
23
|
|
|
@@ -3,19 +3,12 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
6
|
+
* (c) 2010-2017 Justin Hileman
|
|
7
7
|
*
|
|
8
8
|
* For the full copyright and license information, please view the LICENSE
|
|
9
9
|
* file that was distributed with this source code.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
namespace Mustache\Loader;
|
|
13
|
-
|
|
14
|
-
use Mustache\Exception\RuntimeException;
|
|
15
|
-
use Mustache\Exception\UnknownTemplateException;
|
|
16
|
-
use Mustache\Source;
|
|
17
|
-
use Mustache\Source\FilesystemSource;
|
|
18
|
-
|
|
19
12
|
/**
|
|
20
13
|
* Mustache Template production filesystem Loader implementation.
|
|
21
14
|
*
|
|
@@ -23,7 +16,7 @@ use Mustache\Source\FilesystemSource;
|
|
|
23
16
|
*
|
|
24
17
|
* {@inheritdoc}
|
|
25
18
|
*/
|
|
26
|
-
class
|
|
19
|
+
class Mustache_Loader_ProductionFilesystemLoader extends Mustache_Loader_FilesystemLoader
|
|
27
20
|
{
|
|
28
21
|
private $statProps;
|
|
29
22
|
|
|
@@ -32,11 +25,11 @@ class ProductionFilesystemLoader extends FilesystemLoader
|
|
|
32
25
|
*
|
|
33
26
|
* Passing an $options array allows overriding certain Loader options during instantiation:
|
|
34
27
|
*
|
|
35
|
-
* $options =
|
|
28
|
+
* $options = array(
|
|
36
29
|
* // The filename extension used for Mustache templates. Defaults to '.mustache'
|
|
37
30
|
* 'extension' => '.ms',
|
|
38
|
-
* 'stat_props' =>
|
|
39
|
-
*
|
|
31
|
+
* 'stat_props' => array('size', 'mtime'),
|
|
32
|
+
* );
|
|
40
33
|
*
|
|
41
34
|
* Specifying 'stat_props' overrides the stat properties used to invalidate the template cache. By default, this
|
|
42
35
|
* uses 'mtime' and 'size', but this can be set to any of the properties supported by stat():
|
|
@@ -45,49 +38,49 @@ class ProductionFilesystemLoader extends FilesystemLoader
|
|
|
45
38
|
*
|
|
46
39
|
* You can also disable filesystem stat entirely:
|
|
47
40
|
*
|
|
48
|
-
* $options =
|
|
41
|
+
* $options = array('stat_props' => null);
|
|
49
42
|
*
|
|
50
43
|
* But with great power comes great responsibility. Namely, if you disable stat-based cache invalidation,
|
|
51
44
|
* YOU MUST CLEAR THE TEMPLATE CACHE YOURSELF when your templates change. Make it part of your build or deploy
|
|
52
45
|
* process so you don't forget!
|
|
53
46
|
*
|
|
54
|
-
* @throws
|
|
47
|
+
* @throws Mustache_Exception_RuntimeException if $baseDir does not exist.
|
|
55
48
|
*
|
|
56
|
-
* @param string $baseDir
|
|
57
|
-
* @param array $options Loader options (default:
|
|
49
|
+
* @param string $baseDir Base directory containing Mustache template files.
|
|
50
|
+
* @param array $options Array of Loader options (default: array())
|
|
58
51
|
*/
|
|
59
|
-
public function __construct($baseDir, array $options =
|
|
52
|
+
public function __construct($baseDir, array $options = array())
|
|
60
53
|
{
|
|
61
54
|
parent::__construct($baseDir, $options);
|
|
62
55
|
|
|
63
56
|
if (array_key_exists('stat_props', $options)) {
|
|
64
57
|
if (empty($options['stat_props'])) {
|
|
65
|
-
$this->statProps =
|
|
58
|
+
$this->statProps = array();
|
|
66
59
|
} else {
|
|
67
60
|
$this->statProps = $options['stat_props'];
|
|
68
61
|
}
|
|
69
62
|
} else {
|
|
70
|
-
$this->statProps =
|
|
63
|
+
$this->statProps = array('size', 'mtime');
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
66
|
|
|
74
67
|
/**
|
|
75
68
|
* Helper function for loading a Mustache file by name.
|
|
76
69
|
*
|
|
77
|
-
* @throws
|
|
70
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found.
|
|
78
71
|
*
|
|
79
72
|
* @param string $name
|
|
80
73
|
*
|
|
81
|
-
* @return
|
|
74
|
+
* @return Mustache_Source Mustache Template source
|
|
82
75
|
*/
|
|
83
76
|
protected function loadFile($name)
|
|
84
77
|
{
|
|
85
78
|
$fileName = $this->getFileName($name);
|
|
86
79
|
|
|
87
80
|
if (!file_exists($fileName)) {
|
|
88
|
-
throw new
|
|
81
|
+
throw new Mustache_Exception_UnknownTemplateException($name);
|
|
89
82
|
}
|
|
90
83
|
|
|
91
|
-
return new
|
|
84
|
+
return new Mustache_Source_FilesystemSource($fileName, $this->statProps);
|
|
92
85
|
}
|
|
93
86
|
}
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
6
|
+
* (c) 2010-2017 Justin Hileman
|
|
7
7
|
*
|
|
8
8
|
* For the full copyright and license information, please view the LICENSE
|
|
9
9
|
* file that was distributed with this source code.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
namespace Mustache\Loader;
|
|
13
|
-
|
|
14
|
-
use Mustache\Loader;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* Mustache Template string Loader implementation.
|
|
18
14
|
*
|
|
@@ -23,11 +19,11 @@ use Mustache\Loader;
|
|
|
23
19
|
*
|
|
24
20
|
* This is the default Template Loader instance used by Mustache:
|
|
25
21
|
*
|
|
26
|
-
* $m = new
|
|
22
|
+
* $m = new Mustache;
|
|
27
23
|
* $tpl = $m->loadTemplate('{{ foo }}');
|
|
28
|
-
* echo $tpl->render(
|
|
24
|
+
* echo $tpl->render(array('foo' => 'bar')); // "bar"
|
|
29
25
|
*/
|
|
30
|
-
class
|
|
26
|
+
class Mustache_Loader_StringLoader implements Mustache_Loader
|
|
31
27
|
{
|
|
32
28
|
/**
|
|
33
29
|
* Load a Template by source.
|
|
@@ -3,26 +3,25 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
interface Loader
|
|
12
|
+
/**
|
|
13
|
+
* Mustache Template Loader interface.
|
|
14
|
+
*/
|
|
15
|
+
interface Mustache_Loader
|
|
17
16
|
{
|
|
18
17
|
/**
|
|
19
18
|
* Load a Template by name.
|
|
20
19
|
*
|
|
21
|
-
* @throws
|
|
20
|
+
* @throws Mustache_Exception_UnknownTemplateException If a template file is not found
|
|
22
21
|
*
|
|
23
22
|
* @param string $name
|
|
24
23
|
*
|
|
25
|
-
* @return string|
|
|
24
|
+
* @return string|Mustache_Source Mustache Template source
|
|
26
25
|
*/
|
|
27
26
|
public function load($name);
|
|
28
27
|
}
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is part of Mustache.php.
|
|
5
5
|
*
|
|
6
|
-
* (c) 2010-
|
|
6
|
+
* (c) 2010-2017 Justin Hileman
|
|
7
7
|
*
|
|
8
8
|
* For the full copyright and license information, please view the LICENSE
|
|
9
9
|
* file that was distributed with this source code.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
namespace Mustache\Logger;
|
|
13
|
-
|
|
14
|
-
use Mustache\Logger;
|
|
15
|
-
|
|
16
12
|
/**
|
|
17
13
|
* This is a simple Logger implementation that other Loggers can inherit from.
|
|
18
14
|
*
|
|
@@ -22,16 +18,17 @@ use Mustache\Logger;
|
|
|
22
18
|
* reduce boilerplate code that a simple Logger that does the same thing with
|
|
23
19
|
* messages regardless of the error level has to implement.
|
|
24
20
|
*/
|
|
25
|
-
abstract class
|
|
21
|
+
abstract class Mustache_Logger_AbstractLogger implements Mustache_Logger
|
|
26
22
|
{
|
|
27
23
|
/**
|
|
28
24
|
* System is unusable.
|
|
29
25
|
*
|
|
30
26
|
* @param string $message
|
|
27
|
+
* @param array $context
|
|
31
28
|
*/
|
|
32
|
-
public function emergency($message, array $context =
|
|
29
|
+
public function emergency($message, array $context = array())
|
|
33
30
|
{
|
|
34
|
-
$this->log(
|
|
31
|
+
$this->log(Mustache_Logger::EMERGENCY, $message, $context);
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
/**
|
|
@@ -41,10 +38,11 @@ abstract class AbstractLogger implements Logger
|
|
|
41
38
|
* trigger the SMS alerts and wake you up.
|
|
42
39
|
*
|
|
43
40
|
* @param string $message
|
|
41
|
+
* @param array $context
|
|
44
42
|
*/
|
|
45
|
-
public function alert($message, array $context =
|
|
43
|
+
public function alert($message, array $context = array())
|
|
46
44
|
{
|
|
47
|
-
$this->log(
|
|
45
|
+
$this->log(Mustache_Logger::ALERT, $message, $context);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
/**
|
|
@@ -53,10 +51,11 @@ abstract class AbstractLogger implements Logger
|
|
|
53
51
|
* Example: Application component unavailable, unexpected exception.
|
|
54
52
|
*
|
|
55
53
|
* @param string $message
|
|
54
|
+
* @param array $context
|
|
56
55
|
*/
|
|
57
|
-
public function critical($message, array $context =
|
|
56
|
+
public function critical($message, array $context = array())
|
|
58
57
|
{
|
|
59
|
-
$this->log(
|
|
58
|
+
$this->log(Mustache_Logger::CRITICAL, $message, $context);
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
/**
|
|
@@ -64,10 +63,11 @@ abstract class AbstractLogger implements Logger
|
|
|
64
63
|
* be logged and monitored.
|
|
65
64
|
*
|
|
66
65
|
* @param string $message
|
|
66
|
+
* @param array $context
|
|
67
67
|
*/
|
|
68
|
-
public function error($message, array $context =
|
|
68
|
+
public function error($message, array $context = array())
|
|
69
69
|
{
|
|
70
|
-
$this->log(
|
|
70
|
+
$this->log(Mustache_Logger::ERROR, $message, $context);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -77,20 +77,22 @@ abstract class AbstractLogger implements Logger
|
|
|
77
77
|
* that are not necessarily wrong.
|
|
78
78
|
*
|
|
79
79
|
* @param string $message
|
|
80
|
+
* @param array $context
|
|
80
81
|
*/
|
|
81
|
-
public function warning($message, array $context =
|
|
82
|
+
public function warning($message, array $context = array())
|
|
82
83
|
{
|
|
83
|
-
$this->log(
|
|
84
|
+
$this->log(Mustache_Logger::WARNING, $message, $context);
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
/**
|
|
87
88
|
* Normal but significant events.
|
|
88
89
|
*
|
|
89
90
|
* @param string $message
|
|
91
|
+
* @param array $context
|
|
90
92
|
*/
|
|
91
|
-
public function notice($message, array $context =
|
|
93
|
+
public function notice($message, array $context = array())
|
|
92
94
|
{
|
|
93
|
-
$this->log(
|
|
95
|
+
$this->log(Mustache_Logger::NOTICE, $message, $context);
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
/**
|
|
@@ -99,19 +101,21 @@ abstract class AbstractLogger implements Logger
|
|
|
99
101
|
* Example: User logs in, SQL logs.
|
|
100
102
|
*
|
|
101
103
|
* @param string $message
|
|
104
|
+
* @param array $context
|
|
102
105
|
*/
|
|
103
|
-
public function info($message, array $context =
|
|
106
|
+
public function info($message, array $context = array())
|
|
104
107
|
{
|
|
105
|
-
$this->log(
|
|
108
|
+
$this->log(Mustache_Logger::INFO, $message, $context);
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
/**
|
|
109
112
|
* Detailed debug information.
|
|
110
113
|
*
|
|
111
114
|
* @param string $message
|
|
115
|
+
* @param array $context
|
|
112
116
|
*/
|
|
113
|
-
public function debug($message, array $context =
|
|
117
|
+
public function debug($message, array $context = array())
|
|
114
118
|
{
|
|
115
|
-
$this->log(
|
|
119
|
+
$this->log(Mustache_Logger::DEBUG, $message, $context);
|
|
116
120
|
}
|
|
117
121
|
}
|