Version Description
(14th Aug 2019) = * Allow support for PHP 5.5 again. * Downgrade Twig back to 1.33.0 as it doesn't play nicely with other plugins.
Download this release
Release Info
Developer | peterfeatherstone |
Plugin | Responsive Menu |
Version | 3.1.24 |
Comparing to | |
See all releases |
Code changes from version 3.1.23 to 3.1.24
- composer.json +1 -1
- composer.lock +19 -80
- config/twig.php +0 -1
- readme.txt +9 -5
- responsive-menu.php +1 -1
- vendor/autoload.php +0 -0
- vendor/composer/ClassLoader.php +0 -0
- vendor/composer/LICENSE +0 -0
- vendor/composer/autoload_classmap.php +0 -0
- vendor/composer/autoload_files.php +0 -10
- vendor/composer/autoload_namespaces.php +0 -0
- vendor/composer/autoload_psr4.php +0 -2
- vendor/composer/autoload_real.php +0 -18
- vendor/composer/autoload_static.php +0 -20
- vendor/composer/installed.json +17 -81
- vendor/symfony/polyfill-ctype/Ctype.php +0 -227
- vendor/symfony/polyfill-ctype/LICENSE +0 -19
- vendor/symfony/polyfill-ctype/README.md +0 -12
- vendor/symfony/polyfill-ctype/bootstrap.php +0 -26
- vendor/symfony/polyfill-ctype/composer.json +0 -34
- vendor/twig/twig/.editorconfig +0 -0
- vendor/twig/twig/.php_cs.dist +5 -8
- vendor/twig/twig/.travis.yml +19 -20
- vendor/twig/twig/CHANGELOG +2 -181
- vendor/twig/twig/LICENSE +1 -1
- vendor/twig/twig/README.rst +1 -1
- vendor/twig/twig/composer.json +9 -10
- vendor/twig/twig/doc/advanced.rst +215 -215
- vendor/twig/twig/doc/advanced_legacy.rst +87 -85
- vendor/twig/twig/doc/api.rst +121 -127
- vendor/twig/twig/doc/coding_standards.rst +11 -11
- vendor/twig/twig/doc/deprecated.rst +54 -54
- vendor/twig/twig/doc/filters/abs.rst +2 -2
- vendor/twig/twig/doc/filters/batch.rst +2 -2
- vendor/twig/twig/doc/filters/capitalize.rst +1 -1
- vendor/twig/twig/doc/filters/convert_encoding.rst +3 -3
- vendor/twig/twig/doc/filters/date.rst +15 -15
- vendor/twig/twig/doc/filters/date_modify.rst +3 -3
- vendor/twig/twig/doc/filters/default.rst +2 -2
- vendor/twig/twig/doc/filters/escape.rst +19 -29
- vendor/twig/twig/doc/filters/filter.rst +0 -58
- vendor/twig/twig/doc/filters/first.rst +2 -2
- vendor/twig/twig/doc/filters/format.rst +2 -2
- vendor/twig/twig/doc/filters/index.rst +0 -4
- vendor/twig/twig/doc/filters/join.rst +2 -14
- vendor/twig/twig/doc/filters/json_encode.rst +5 -7
- vendor/twig/twig/doc/filters/keys.rst +1 -1
- vendor/twig/twig/doc/filters/last.rst +2 -2
- vendor/twig/twig/doc/filters/length.rst +1 -3
- vendor/twig/twig/doc/filters/lower.rst +1 -1
- vendor/twig/twig/doc/filters/map.rst +0 -38
- vendor/twig/twig/doc/filters/merge.rst +4 -4
- vendor/twig/twig/doc/filters/nl2br.rst +1 -1
- vendor/twig/twig/doc/filters/number_format.rst +5 -13
- vendor/twig/twig/doc/filters/raw.rst +2 -4
- vendor/twig/twig/doc/filters/reduce.rst +0 -33
- vendor/twig/twig/doc/filters/replace.rst +1 -7
- vendor/twig/twig/doc/filters/reverse.rst +3 -3
- vendor/twig/twig/doc/filters/round.rst +1 -1
- vendor/twig/twig/doc/filters/slice.rst +7 -7
- vendor/twig/twig/doc/filters/sort.rst +2 -2
- vendor/twig/twig/doc/filters/spaceless.rst +0 -65
- vendor/twig/twig/doc/filters/split.rst +10 -10
- vendor/twig/twig/doc/filters/striptags.rst +3 -3
- vendor/twig/twig/doc/filters/title.rst +1 -1
- vendor/twig/twig/doc/filters/trim.rst +4 -4
- vendor/twig/twig/doc/filters/upper.rst +1 -1
- vendor/twig/twig/doc/filters/url_encode.rst +4 -4
- vendor/twig/twig/doc/functions/attribute.rst +2 -2
- vendor/twig/twig/doc/functions/block.rst +4 -4
- vendor/twig/twig/doc/functions/constant.rst +3 -3
- vendor/twig/twig/doc/functions/cycle.rst +2 -2
- vendor/twig/twig/doc/functions/date.rst +6 -6
- vendor/twig/twig/doc/functions/dump.rst +10 -10
- vendor/twig/twig/doc/functions/include.rst +10 -10
- vendor/twig/twig/doc/functions/index.rst +0 -0
- vendor/twig/twig/doc/functions/max.rst +2 -2
- vendor/twig/twig/doc/functions/min.rst +2 -2
- vendor/twig/twig/doc/functions/parent.rst +1 -1
- vendor/twig/twig/doc/functions/random.rst +2 -9
- vendor/twig/twig/doc/functions/range.rst +5 -5
- vendor/twig/twig/doc/functions/source.rst +2 -2
- vendor/twig/twig/doc/functions/template_from_string.rst +4 -15
- vendor/twig/twig/doc/index.rst +0 -0
- vendor/twig/twig/doc/installation.rst +57 -14
- vendor/twig/twig/doc/internals.rst +28 -30
- vendor/twig/twig/doc/intro.rst +26 -17
- vendor/twig/twig/doc/recipes.rst +86 -86
- vendor/twig/twig/doc/tags/apply.rst +0 -23
- vendor/twig/twig/doc/tags/autoescape.rst +4 -4
- vendor/twig/twig/doc/tags/block.rst +0 -0
- vendor/twig/twig/doc/tags/deprecated.rst +0 -30
- vendor/twig/twig/doc/tags/do.rst +1 -1
- vendor/twig/twig/doc/tags/embed.rst +19 -19
- vendor/twig/twig/doc/tags/extends.rst +18 -18
- vendor/twig/twig/doc/tags/filter.rst +4 -9
- vendor/twig/twig/doc/tags/flush.rst +2 -2
- vendor/twig/twig/doc/tags/for.rst +10 -17
- vendor/twig/twig/doc/tags/from.rst +3 -1
- vendor/twig/twig/doc/tags/if.rst +10 -13
- vendor/twig/twig/doc/tags/import.rst +54 -3
- vendor/twig/twig/doc/tags/include.rst +11 -35
- vendor/twig/twig/doc/tags/index.rst +0 -2
- vendor/twig/twig/doc/tags/macro.rst +38 -76
- vendor/twig/twig/doc/tags/sandbox.rst +2 -2
- vendor/twig/twig/doc/tags/set.rst +8 -8
- vendor/twig/twig/doc/tags/spaceless.rst +1 -5
- vendor/twig/twig/doc/tags/use.rst +7 -7
- vendor/twig/twig/doc/tags/verbatim.rst +1 -1
- vendor/twig/twig/doc/tags/with.rst +3 -3
- vendor/twig/twig/doc/templates.rst +182 -162
- vendor/twig/twig/doc/tests/constant.rst +2 -2
- vendor/twig/twig/doc/tests/defined.rst +2 -2
- vendor/twig/twig/doc/tests/divisibleby.rst +1 -1
- vendor/twig/twig/doc/tests/empty.rst +1 -1
- vendor/twig/twig/doc/tests/even.rst +1 -1
- vendor/twig/twig/doc/tests/index.rst +0 -0
- vendor/twig/twig/doc/tests/iterable.rst +1 -1
- vendor/twig/twig/doc/tests/null.rst +1 -1
- vendor/twig/twig/doc/tests/odd.rst +1 -1
- vendor/twig/twig/doc/tests/sameas.rst +1 -1
- vendor/twig/twig/drupal_test.sh +0 -51
- vendor/twig/twig/ext/twig/config.m4 +0 -0
- vendor/twig/twig/ext/twig/config.w32 +0 -0
- vendor/twig/twig/ext/twig/php_twig.h +1 -1
- vendor/twig/twig/ext/twig/twig.c +19 -21
- vendor/twig/twig/lib/Twig/Autoloader.php +6 -4
- vendor/twig/twig/lib/Twig/BaseNodeVisitor.php +43 -4
- vendor/twig/twig/lib/Twig/Cache/Filesystem.php +84 -4
- vendor/twig/twig/lib/Twig/Cache/Null.php +31 -4
- vendor/twig/twig/lib/Twig/CacheInterface.php +51 -6
- vendor/twig/twig/lib/Twig/Compiler.php +274 -4
- vendor/twig/twig/lib/Twig/CompilerInterface.php +0 -0
- vendor/twig/twig/lib/Twig/ContainerRuntimeLoader.php +30 -4
- vendor/twig/twig/lib/Twig/Environment.php +1554 -4
- vendor/twig/twig/lib/Twig/Error.php +358 -4
- vendor/twig/twig/lib/Twig/Error/Loader.php +32 -5
- vendor/twig/twig/lib/Twig/Error/Runtime.php +16 -7
- vendor/twig/twig/lib/Twig/Error/Syntax.php +46 -4
- vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php +25 -7
- vendor/twig/twig/lib/Twig/ExpressionParser.php +732 -4
- vendor/twig/twig/lib/Twig/Extension.php +58 -4
- vendor/twig/twig/lib/Twig/Extension/Core.php +1596 -4
- vendor/twig/twig/lib/Twig/Extension/Debug.php +58 -4
- vendor/twig/twig/lib/Twig/Extension/Escaper.php +103 -4
- vendor/twig/twig/lib/Twig/Extension/GlobalsInterface.php +18 -7
- vendor/twig/twig/lib/Twig/Extension/InitRuntimeInterface.php +18 -7
- vendor/twig/twig/lib/Twig/Extension/Optimizer.php +26 -4
- vendor/twig/twig/lib/Twig/Extension/Profiler.php +39 -4
- vendor/twig/twig/lib/Twig/Extension/Sandbox.php +94 -4
- vendor/twig/twig/lib/Twig/Extension/Staging.php +103 -4
- vendor/twig/twig/lib/Twig/Extension/StringLoader.php +38 -4
- vendor/twig/twig/lib/Twig/ExtensionInterface.php +82 -6
- vendor/twig/twig/lib/Twig/FactoryRuntimeLoader.php +30 -4
- vendor/twig/twig/lib/Twig/FileExtensionEscapingStrategy.php +52 -5
- vendor/twig/twig/lib/Twig/Filter.php +8 -10
- vendor/twig/twig/lib/Twig/Filter/Function.php +3 -3
- vendor/twig/twig/lib/Twig/Filter/Method.php +5 -7
- vendor/twig/twig/lib/Twig/Filter/Node.php +3 -3
- vendor/twig/twig/lib/Twig/FilterCallableInterface.php +1 -1
- vendor/twig/twig/lib/Twig/FilterInterface.php +2 -4
- vendor/twig/twig/lib/Twig/Function.php +9 -11
- vendor/twig/twig/lib/Twig/Function/Function.php +3 -3
- vendor/twig/twig/lib/Twig/Function/Method.php +5 -7
- vendor/twig/twig/lib/Twig/Function/Node.php +3 -3
- vendor/twig/twig/lib/Twig/FunctionCallableInterface.php +1 -1
- vendor/twig/twig/lib/Twig/FunctionInterface.php +2 -4
- vendor/twig/twig/lib/Twig/Lexer.php +415 -4
- vendor/twig/twig/lib/Twig/LexerInterface.php +4 -8
- vendor/twig/twig/lib/Twig/Loader/Array.php +88 -4
- vendor/twig/twig/lib/Twig/Loader/Chain.php +142 -4
- vendor/twig/twig/lib/Twig/Loader/Filesystem.php +281 -4
- vendor/twig/twig/lib/Twig/Loader/String.php +4 -9
- vendor/twig/twig/lib/Twig/LoaderInterface.php +50 -6
- vendor/twig/twig/lib/Twig/Markup.php +30 -4
- vendor/twig/twig/lib/Twig/Node.php +246 -4
- vendor/twig/twig/lib/Twig/Node/AutoEscape.php +27 -4
- vendor/twig/twig/lib/Twig/Node/Block.php +32 -4
- vendor/twig/twig/lib/Twig/Node/BlockReference.php +25 -4
- vendor/twig/twig/lib/Twig/Node/Body.php +15 -7
- vendor/twig/twig/lib/Twig/Node/CheckSecurity.php +71 -4
- vendor/twig/twig/lib/Twig/Node/Deprecated.php +0 -11
- vendor/twig/twig/lib/Twig/Node/Do.php +26 -4
- vendor/twig/twig/lib/Twig/Node/Embed.php +37 -4
- vendor/twig/twig/lib/Twig/Node/Expression.php +16 -7
- vendor/twig/twig/lib/Twig/Node/Expression/Array.php +74 -4
- vendor/twig/twig/lib/Twig/Node/Expression/AssignName.php +17 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary.php +29 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Add.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/And.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseAnd.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseOr.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/BitwiseXor.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Concat.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Div.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php +24 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Equal.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php +18 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Greater.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/GreaterEqual.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/In.php +22 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Less.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/LessEqual.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php +22 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mod.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php +12 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotIn.php +22 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Or.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Power.php +25 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Range.php +22 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/StartsWith.php +24 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Binary/Sub.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php +84 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Call.php +282 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Conditional.php +25 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Constant.php +17 -5
- vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php +3 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Filter.php +33 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php +36 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Function.php +37 -5
- vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php +65 -4
- vendor/twig/twig/lib/Twig/Node/Expression/MethodCall.php +34 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Name.php +93 -4
- vendor/twig/twig/lib/Twig/Node/Expression/NullCoalesce.php +39 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Parent.php +35 -4
- vendor/twig/twig/lib/Twig/Node/Expression/TempName.php +20 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test.php +33 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Constant.php +40 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php +52 -4
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Divisibleby.php +27 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Even.php +26 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Null.php +25 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Odd.php +26 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Test/Sameas.php +23 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Unary.php +21 -5
- vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Unary/Not.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Expression/Unary/Pos.php +13 -6
- vendor/twig/twig/lib/Twig/Node/Flush.php +24 -4
- vendor/twig/twig/lib/Twig/Node/For.php +104 -4
- vendor/twig/twig/lib/Twig/Node/ForLoop.php +43 -4
- vendor/twig/twig/lib/Twig/Node/If.php +59 -4
- vendor/twig/twig/lib/Twig/Node/Import.php +42 -4
- vendor/twig/twig/lib/Twig/Node/Include.php +81 -4
- vendor/twig/twig/lib/Twig/Node/Macro.php +116 -4
- vendor/twig/twig/lib/Twig/Node/Module.php +452 -4
- vendor/twig/twig/lib/Twig/Node/Print.php +27 -4
- vendor/twig/twig/lib/Twig/Node/Sandbox.php +35 -4
- vendor/twig/twig/lib/Twig/Node/SandboxedPrint.php +42 -4
- vendor/twig/twig/lib/Twig/Node/Set.php +89 -4
- vendor/twig/twig/lib/Twig/Node/SetTemp.php +28 -4
- vendor/twig/twig/lib/Twig/Node/Spaceless.php +28 -4
- vendor/twig/twig/lib/Twig/Node/Text.php +27 -4
- vendor/twig/twig/lib/Twig/Node/With.php +55 -4
- vendor/twig/twig/lib/Twig/NodeCaptureInterface.php +15 -7
- vendor/twig/twig/lib/Twig/NodeInterface.php +2 -4
- vendor/twig/twig/lib/Twig/NodeOutputInterface.php +15 -7
- vendor/twig/twig/lib/Twig/NodeTraverser.php +75 -4
- vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php +145 -4
- vendor/twig/twig/lib/Twig/NodeVisitor/Optimizer.php +244 -4
- vendor/twig/twig/lib/Twig/NodeVisitor/SafeAnalysis.php +141 -4
- vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php +68 -4
- vendor/twig/twig/lib/Twig/NodeVisitorInterface.php +36 -6
- vendor/twig/twig/lib/Twig/Parser.php +399 -4
- vendor/twig/twig/lib/Twig/ParserInterface.php +3 -7
- vendor/twig/twig/lib/Twig/Profiler/Dumper/Base.php +0 -11
- vendor/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php +63 -4
- vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php +38 -4
- vendor/twig/twig/lib/Twig/Profiler/Dumper/Text.php +63 -4
- vendor/twig/twig/lib/Twig/Profiler/Node/EnterProfile.php +30 -4
- vendor/twig/twig/lib/Twig/Profiler/Node/LeaveProfile.php +24 -4
- vendor/twig/twig/lib/Twig/Profiler/NodeVisitor/Profiler.php +58 -4
- vendor/twig/twig/lib/Twig/Profiler/Profile.php +155 -4
- vendor/twig/twig/lib/Twig/RuntimeLoaderInterface.php +23 -7
- vendor/twig/twig/lib/Twig/Sandbox/SecurityError.php +15 -7
- vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php +24 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php +24 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedMethodError.php +31 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedPropertyError.php +31 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedTagError.php +24 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php +116 -4
- vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php +19 -6
- vendor/twig/twig/lib/Twig/SimpleFilter.php +112 -4
- vendor/twig/twig/lib/Twig/SimpleFunction.php +102 -4
- vendor/twig/twig/lib/Twig/SimpleTest.php +64 -4
- vendor/twig/twig/lib/Twig/Source.php +44 -4
- vendor/twig/twig/lib/Twig/SourceContextLoaderInterface.php +27 -7
- vendor/twig/twig/lib/Twig/Template.php +694 -4
- vendor/twig/twig/lib/Twig/TemplateInterface.php +2 -4
- vendor/twig/twig/lib/Twig/TemplateWrapper.php +124 -4
- vendor/twig/twig/lib/Twig/Test.php +5 -5
- vendor/twig/twig/lib/Twig/Test/Function.php +2 -2
- vendor/twig/twig/lib/Twig/Test/IntegrationTestCase.php +225 -4
- vendor/twig/twig/lib/Twig/Test/Method.php +4 -6
- vendor/twig/twig/lib/Twig/Test/Node.php +1 -1
- vendor/twig/twig/lib/Twig/Test/NodeTestCase.php +61 -4
- vendor/twig/twig/lib/Twig/TestCallableInterface.php +0 -0
- vendor/twig/twig/lib/Twig/TestInterface.php +0 -0
- vendor/twig/twig/lib/Twig/Token.php +198 -4
- vendor/twig/twig/lib/Twig/TokenParser.php +24 -4
- vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php +74 -4
- vendor/twig/twig/lib/Twig/TokenParser/Block.php +64 -4
- vendor/twig/twig/lib/Twig/TokenParser/Deprecated.php +0 -11
- vendor/twig/twig/lib/Twig/TokenParser/Do.php +25 -4
- vendor/twig/twig/lib/Twig/TokenParser/Embed.php +58 -4
- vendor/twig/twig/lib/Twig/TokenParser/Extends.php +37 -4
- vendor/twig/twig/lib/Twig/TokenParser/Filter.php +44 -4
- vendor/twig/twig/lib/Twig/TokenParser/Flush.php +25 -4
- vendor/twig/twig/lib/Twig/TokenParser/For.php +118 -4
- vendor/twig/twig/lib/Twig/TokenParser/From.php +57 -4
- vendor/twig/twig/lib/Twig/TokenParser/If.php +77 -4
- vendor/twig/twig/lib/Twig/TokenParser/Import.php +32 -4
- vendor/twig/twig/lib/Twig/TokenParser/Include.php +58 -4
- vendor/twig/twig/lib/Twig/TokenParser/Macro.php +51 -4
- vendor/twig/twig/lib/Twig/TokenParser/Sandbox.php +52 -4
- vendor/twig/twig/lib/Twig/TokenParser/Set.php +66 -4
- vendor/twig/twig/lib/Twig/TokenParser/Spaceless.php +42 -4
- vendor/twig/twig/lib/Twig/TokenParser/Use.php +59 -4
- vendor/twig/twig/lib/Twig/TokenParser/With.php +43 -4
- vendor/twig/twig/lib/Twig/TokenParserBroker.php +14 -16
- vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php +3 -5
- vendor/twig/twig/lib/Twig/TokenParserInterface.php +34 -6
- vendor/twig/twig/lib/Twig/TokenStream.php +187 -4
- vendor/twig/twig/lib/Twig/Util/DeprecationCollector.php +77 -4
- vendor/twig/twig/lib/Twig/Util/TemplateDirIterator.php +19 -4
- vendor/twig/twig/phpunit.xml.dist +3 -3
- vendor/twig/twig/src/Cache/CacheInterface.php +0 -60
- vendor/twig/twig/src/Cache/FilesystemCache.php +0 -93
- vendor/twig/twig/src/Cache/NullCache.php +0 -42
- vendor/twig/twig/src/Compiler.php +0 -288
- vendor/twig/twig/src/Environment.php +0 -1638
- vendor/twig/twig/src/Error/Error.php +0 -325
- vendor/twig/twig/src/Error/LoaderError.php +0 -23
- vendor/twig/twig/src/Error/RuntimeError.php +0 -24
- vendor/twig/twig/src/Error/SyntaxError.php +0 -57
- vendor/twig/twig/src/ExpressionParser.php +0 -834
- vendor/twig/twig/src/Extension/AbstractExtension.php +0 -72
- vendor/twig/twig/src/Extension/CoreExtension.php +0 -586
composer.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"require": {
|
3 |
-
"twig/twig": "1.
|
4 |
},
|
5 |
"autoload": {
|
6 |
"psr-4": {
|
1 |
{
|
2 |
"require": {
|
3 |
+
"twig/twig": "1.33.0"
|
4 |
},
|
5 |
"autoload": {
|
6 |
"psr-4": {
|
composer.lock
CHANGED
@@ -1,104 +1,43 @@
|
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"
|
|
|
8 |
"packages": [
|
9 |
-
{
|
10 |
-
"name": "symfony/polyfill-ctype",
|
11 |
-
"version": "v1.12.0",
|
12 |
-
"source": {
|
13 |
-
"type": "git",
|
14 |
-
"url": "https://github.com/symfony/polyfill-ctype.git",
|
15 |
-
"reference": "550ebaac289296ce228a706d0867afc34687e3f4"
|
16 |
-
},
|
17 |
-
"dist": {
|
18 |
-
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
|
20 |
-
"reference": "550ebaac289296ce228a706d0867afc34687e3f4",
|
21 |
-
"shasum": ""
|
22 |
-
},
|
23 |
-
"require": {
|
24 |
-
"php": ">=5.3.3"
|
25 |
-
},
|
26 |
-
"suggest": {
|
27 |
-
"ext-ctype": "For best performance"
|
28 |
-
},
|
29 |
-
"type": "library",
|
30 |
-
"extra": {
|
31 |
-
"branch-alias": {
|
32 |
-
"dev-master": "1.12-dev"
|
33 |
-
}
|
34 |
-
},
|
35 |
-
"autoload": {
|
36 |
-
"psr-4": {
|
37 |
-
"Symfony\\Polyfill\\Ctype\\": ""
|
38 |
-
},
|
39 |
-
"files": [
|
40 |
-
"bootstrap.php"
|
41 |
-
]
|
42 |
-
},
|
43 |
-
"notification-url": "https://packagist.org/downloads/",
|
44 |
-
"license": [
|
45 |
-
"MIT"
|
46 |
-
],
|
47 |
-
"authors": [
|
48 |
-
{
|
49 |
-
"name": "Gert de Pagter",
|
50 |
-
"email": "BackEndTea@gmail.com"
|
51 |
-
},
|
52 |
-
{
|
53 |
-
"name": "Symfony Community",
|
54 |
-
"homepage": "https://symfony.com/contributors"
|
55 |
-
}
|
56 |
-
],
|
57 |
-
"description": "Symfony polyfill for ctype functions",
|
58 |
-
"homepage": "https://symfony.com",
|
59 |
-
"keywords": [
|
60 |
-
"compatibility",
|
61 |
-
"ctype",
|
62 |
-
"polyfill",
|
63 |
-
"portable"
|
64 |
-
],
|
65 |
-
"time": "2019-08-06T08:03:45+00:00"
|
66 |
-
},
|
67 |
{
|
68 |
"name": "twig/twig",
|
69 |
-
"version": "v1.
|
70 |
"source": {
|
71 |
"type": "git",
|
72 |
"url": "https://github.com/twigphp/Twig.git",
|
73 |
-
"reference": "
|
74 |
},
|
75 |
"dist": {
|
76 |
"type": "zip",
|
77 |
-
"url": "https://api.github.com/repos/twigphp/Twig/zipball/
|
78 |
-
"reference": "
|
79 |
"shasum": ""
|
80 |
},
|
81 |
"require": {
|
82 |
-
"php": ">=5.
|
83 |
-
"symfony/polyfill-ctype": "^1.8"
|
84 |
},
|
85 |
"require-dev": {
|
86 |
"psr/container": "^1.0",
|
87 |
-
"symfony/debug": "
|
88 |
-
"symfony/phpunit-bridge": "
|
89 |
},
|
90 |
"type": "library",
|
91 |
"extra": {
|
92 |
"branch-alias": {
|
93 |
-
"dev-master": "1.
|
94 |
}
|
95 |
},
|
96 |
"autoload": {
|
97 |
"psr-0": {
|
98 |
"Twig_": "lib/"
|
99 |
-
},
|
100 |
-
"psr-4": {
|
101 |
-
"Twig\\": "src/"
|
102 |
}
|
103 |
},
|
104 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -108,27 +47,27 @@
|
|
108 |
"authors": [
|
109 |
{
|
110 |
"name": "Fabien Potencier",
|
111 |
-
"role": "Lead Developer",
|
112 |
"email": "fabien@symfony.com",
|
113 |
-
"homepage": "http://fabien.potencier.org"
|
|
|
114 |
},
|
115 |
{
|
116 |
"name": "Armin Ronacher",
|
117 |
-
"
|
118 |
-
"
|
119 |
},
|
120 |
{
|
121 |
"name": "Twig Team",
|
122 |
-
"
|
123 |
-
"
|
124 |
}
|
125 |
],
|
126 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
127 |
-
"homepage": "
|
128 |
"keywords": [
|
129 |
"templating"
|
130 |
],
|
131 |
-
"time": "
|
132 |
}
|
133 |
],
|
134 |
"packages-dev": [],
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"hash": "802aa0021594e5acc4c74c035325ace1",
|
8 |
+
"content-hash": "3e0253c4e4a1ebc6bc87d8ca2e86e719",
|
9 |
"packages": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
{
|
11 |
"name": "twig/twig",
|
12 |
+
"version": "v1.33.0",
|
13 |
"source": {
|
14 |
"type": "git",
|
15 |
"url": "https://github.com/twigphp/Twig.git",
|
16 |
+
"reference": "05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a"
|
17 |
},
|
18 |
"dist": {
|
19 |
"type": "zip",
|
20 |
+
"url": "https://api.github.com/repos/twigphp/Twig/zipball/05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a",
|
21 |
+
"reference": "05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a",
|
22 |
"shasum": ""
|
23 |
},
|
24 |
"require": {
|
25 |
+
"php": ">=5.2.7"
|
|
|
26 |
},
|
27 |
"require-dev": {
|
28 |
"psr/container": "^1.0",
|
29 |
+
"symfony/debug": "~2.7",
|
30 |
+
"symfony/phpunit-bridge": "~3.3@dev"
|
31 |
},
|
32 |
"type": "library",
|
33 |
"extra": {
|
34 |
"branch-alias": {
|
35 |
+
"dev-master": "1.33-dev"
|
36 |
}
|
37 |
},
|
38 |
"autoload": {
|
39 |
"psr-0": {
|
40 |
"Twig_": "lib/"
|
|
|
|
|
|
|
41 |
}
|
42 |
},
|
43 |
"notification-url": "https://packagist.org/downloads/",
|
47 |
"authors": [
|
48 |
{
|
49 |
"name": "Fabien Potencier",
|
|
|
50 |
"email": "fabien@symfony.com",
|
51 |
+
"homepage": "http://fabien.potencier.org",
|
52 |
+
"role": "Lead Developer"
|
53 |
},
|
54 |
{
|
55 |
"name": "Armin Ronacher",
|
56 |
+
"email": "armin.ronacher@active-4.com",
|
57 |
+
"role": "Project Founder"
|
58 |
},
|
59 |
{
|
60 |
"name": "Twig Team",
|
61 |
+
"homepage": "http://twig.sensiolabs.org/contributors",
|
62 |
+
"role": "Contributors"
|
63 |
}
|
64 |
],
|
65 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
66 |
+
"homepage": "http://twig.sensiolabs.org",
|
67 |
"keywords": [
|
68 |
"templating"
|
69 |
],
|
70 |
+
"time": "2017-03-22 15:40:09"
|
71 |
}
|
72 |
],
|
73 |
"packages-dev": [],
|
config/twig.php
CHANGED
@@ -5,7 +5,6 @@ $twig = new Twig_Environment(new Twig_Loader_Filesystem([
|
|
5 |
dirname(dirname(__FILE__)) . '/public',
|
6 |
]), ['autoescape' => false, 'debug' => false]);
|
7 |
|
8 |
-
//$twig->addExtension(new Twig_Extension_Debug());
|
9 |
if(!is_admin()):
|
10 |
|
11 |
$twig->addFilter(new Twig_SimpleFilter('shortcode', function($string) {
|
5 |
dirname(dirname(__FILE__)) . '/public',
|
6 |
]), ['autoescape' => false, 'debug' => false]);
|
7 |
|
|
|
8 |
if(!is_admin()):
|
9 |
|
10 |
$twig->addFilter(new Twig_SimpleFilter('shortcode', function($string) {
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Responsive Menu ===
|
2 |
Contributors: peterfeatherstone
|
3 |
-
Tags: responsive, menu,
|
4 |
Requires at least: 3.6
|
5 |
Tested up to: 5.2.2
|
6 |
-
Stable tag: 3.1.
|
7 |
-
Requires PHP: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,7 +22,7 @@ Highly customisable Responsive Menu Plugin for WordPress. With over 150 customis
|
|
22 |
|
23 |
**Requirements:**
|
24 |
|
25 |
-
PHP 5.
|
26 |
|
27 |
**Full Knowledgebase and dedicated support forum:**
|
28 |
|
@@ -111,10 +111,14 @@ To view our FAQ, please go to [https://responsive.menu/faq/](https://responsive.
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
114 |
= 3.1.23 (13th Aug 2019) =
|
115 |
* Added option to hide the original desktop theme menu.
|
116 |
* Drop support for PHP 5.5
|
117 |
-
* Update Twig to
|
118 |
* Fix bug with pre IE10 javascript when disabling background scrolling.
|
119 |
|
120 |
= 3.1.22 (30th May 2019) =
|
1 |
=== Responsive Menu ===
|
2 |
Contributors: peterfeatherstone
|
3 |
+
Tags: responsive, menu, navigation, mobile, hamburger
|
4 |
Requires at least: 3.6
|
5 |
Tested up to: 5.2.2
|
6 |
+
Stable tag: 3.1.24
|
7 |
+
Requires PHP: 5.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
|
23 |
**Requirements:**
|
24 |
|
25 |
+
PHP 5.5+
|
26 |
|
27 |
**Full Knowledgebase and dedicated support forum:**
|
28 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 3.1.24 (14th Aug 2019) =
|
115 |
+
* Allow support for PHP 5.5 again.
|
116 |
+
* Downgrade Twig back to 1.33.0 as it doesn't play nicely with other plugins.
|
117 |
+
|
118 |
= 3.1.23 (13th Aug 2019) =
|
119 |
* Added option to hide the original desktop theme menu.
|
120 |
* Drop support for PHP 5.5
|
121 |
+
* Update Twig to 1.42.2
|
122 |
* Fix bug with pre IE10 javascript when disabling background scrolling.
|
123 |
|
124 |
= 3.1.22 (30th May 2019) =
|
responsive-menu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Responsive Menu
|
5 |
Plugin URI: https://responsive.menu
|
6 |
Description: Highly Customisable Responsive Menu Plugin for WordPress
|
7 |
-
Version: 3.1.
|
8 |
Author: Peter Featherstone
|
9 |
Text Domain: responsive-menu
|
10 |
Author URI: https://responsive.menu
|
4 |
Plugin Name: Responsive Menu
|
5 |
Plugin URI: https://responsive.menu
|
6 |
Description: Highly Customisable Responsive Menu Plugin for WordPress
|
7 |
+
Version: 3.1.24
|
8 |
Author: Peter Featherstone
|
9 |
Text Domain: responsive-menu
|
10 |
Author URI: https://responsive.menu
|
vendor/autoload.php
CHANGED
File without changes
|
vendor/composer/ClassLoader.php
CHANGED
File without changes
|
vendor/composer/LICENSE
CHANGED
File without changes
|
vendor/composer/autoload_classmap.php
CHANGED
File without changes
|
vendor/composer/autoload_files.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// autoload_files.php @generated by Composer
|
4 |
-
|
5 |
-
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname($vendorDir);
|
7 |
-
|
8 |
-
return array(
|
9 |
-
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
|
10 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/composer/autoload_namespaces.php
CHANGED
File without changes
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -6,7 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'Twig\\' => array($vendorDir . '/twig/twig/src'),
|
10 |
-
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
|
11 |
'ResponsiveMenu\\' => array($baseDir . '/app'),
|
12 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
|
|
9 |
'ResponsiveMenu\\' => array($baseDir . '/app'),
|
10 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -47,24 +47,6 @@ class ComposerAutoloaderInitbe9ac5d85095f467548fb48e989d4a37
|
|
47 |
|
48 |
$loader->register(true);
|
49 |
|
50 |
-
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\ComposerStaticInitbe9ac5d85095f467548fb48e989d4a37::$files;
|
52 |
-
} else {
|
53 |
-
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
-
}
|
55 |
-
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
composerRequirebe9ac5d85095f467548fb48e989d4a37($fileIdentifier, $file);
|
57 |
-
}
|
58 |
-
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
-
|
63 |
-
function composerRequirebe9ac5d85095f467548fb48e989d4a37($fileIdentifier, $file)
|
64 |
-
{
|
65 |
-
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
-
require $file;
|
67 |
-
|
68 |
-
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
69 |
-
}
|
70 |
-
}
|
47 |
|
48 |
$loader->register(true);
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
return $loader;
|
51 |
}
|
52 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/composer/autoload_static.php
CHANGED
@@ -6,19 +6,7 @@ namespace Composer\Autoload;
|
|
6 |
|
7 |
class ComposerStaticInitbe9ac5d85095f467548fb48e989d4a37
|
8 |
{
|
9 |
-
public static $files = array (
|
10 |
-
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
11 |
-
);
|
12 |
-
|
13 |
public static $prefixLengthsPsr4 = array (
|
14 |
-
'T' =>
|
15 |
-
array (
|
16 |
-
'Twig\\' => 5,
|
17 |
-
),
|
18 |
-
'S' =>
|
19 |
-
array (
|
20 |
-
'Symfony\\Polyfill\\Ctype\\' => 23,
|
21 |
-
),
|
22 |
'R' =>
|
23 |
array (
|
24 |
'ResponsiveMenu\\' => 15,
|
@@ -26,14 +14,6 @@ class ComposerStaticInitbe9ac5d85095f467548fb48e989d4a37
|
|
26 |
);
|
27 |
|
28 |
public static $prefixDirsPsr4 = array (
|
29 |
-
'Twig\\' =>
|
30 |
-
array (
|
31 |
-
0 => __DIR__ . '/..' . '/twig/twig/src',
|
32 |
-
),
|
33 |
-
'Symfony\\Polyfill\\Ctype\\' =>
|
34 |
-
array (
|
35 |
-
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
|
36 |
-
),
|
37 |
'ResponsiveMenu\\' =>
|
38 |
array (
|
39 |
0 => __DIR__ . '/../..' . '/app',
|
6 |
|
7 |
class ComposerStaticInitbe9ac5d85095f467548fb48e989d4a37
|
8 |
{
|
|
|
|
|
|
|
|
|
9 |
public static $prefixLengthsPsr4 = array (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
'R' =>
|
11 |
array (
|
12 |
'ResponsiveMenu\\' => 15,
|
14 |
);
|
15 |
|
16 |
public static $prefixDirsPsr4 = array (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
'ResponsiveMenu\\' =>
|
18 |
array (
|
19 |
0 => __DIR__ . '/../..' . '/app',
|
vendor/composer/installed.json
CHANGED
@@ -1,102 +1,38 @@
|
|
1 |
[
|
2 |
-
{
|
3 |
-
"name": "symfony/polyfill-ctype",
|
4 |
-
"version": "v1.12.0",
|
5 |
-
"version_normalized": "1.12.0.0",
|
6 |
-
"source": {
|
7 |
-
"type": "git",
|
8 |
-
"url": "https://github.com/symfony/polyfill-ctype.git",
|
9 |
-
"reference": "550ebaac289296ce228a706d0867afc34687e3f4"
|
10 |
-
},
|
11 |
-
"dist": {
|
12 |
-
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
|
14 |
-
"reference": "550ebaac289296ce228a706d0867afc34687e3f4",
|
15 |
-
"shasum": ""
|
16 |
-
},
|
17 |
-
"require": {
|
18 |
-
"php": ">=5.3.3"
|
19 |
-
},
|
20 |
-
"suggest": {
|
21 |
-
"ext-ctype": "For best performance"
|
22 |
-
},
|
23 |
-
"time": "2019-08-06T08:03:45+00:00",
|
24 |
-
"type": "library",
|
25 |
-
"extra": {
|
26 |
-
"branch-alias": {
|
27 |
-
"dev-master": "1.12-dev"
|
28 |
-
}
|
29 |
-
},
|
30 |
-
"installation-source": "dist",
|
31 |
-
"autoload": {
|
32 |
-
"psr-4": {
|
33 |
-
"Symfony\\Polyfill\\Ctype\\": ""
|
34 |
-
},
|
35 |
-
"files": [
|
36 |
-
"bootstrap.php"
|
37 |
-
]
|
38 |
-
},
|
39 |
-
"notification-url": "https://packagist.org/downloads/",
|
40 |
-
"license": [
|
41 |
-
"MIT"
|
42 |
-
],
|
43 |
-
"authors": [
|
44 |
-
{
|
45 |
-
"name": "Gert de Pagter",
|
46 |
-
"email": "BackEndTea@gmail.com"
|
47 |
-
},
|
48 |
-
{
|
49 |
-
"name": "Symfony Community",
|
50 |
-
"homepage": "https://symfony.com/contributors"
|
51 |
-
}
|
52 |
-
],
|
53 |
-
"description": "Symfony polyfill for ctype functions",
|
54 |
-
"homepage": "https://symfony.com",
|
55 |
-
"keywords": [
|
56 |
-
"compatibility",
|
57 |
-
"ctype",
|
58 |
-
"polyfill",
|
59 |
-
"portable"
|
60 |
-
]
|
61 |
-
},
|
62 |
{
|
63 |
"name": "twig/twig",
|
64 |
-
"version": "v1.
|
65 |
-
"version_normalized": "1.
|
66 |
"source": {
|
67 |
"type": "git",
|
68 |
"url": "https://github.com/twigphp/Twig.git",
|
69 |
-
"reference": "
|
70 |
},
|
71 |
"dist": {
|
72 |
"type": "zip",
|
73 |
-
"url": "https://api.github.com/repos/twigphp/Twig/zipball/
|
74 |
-
"reference": "
|
75 |
"shasum": ""
|
76 |
},
|
77 |
"require": {
|
78 |
-
"php": ">=5.
|
79 |
-
"symfony/polyfill-ctype": "^1.8"
|
80 |
},
|
81 |
"require-dev": {
|
82 |
"psr/container": "^1.0",
|
83 |
-
"symfony/debug": "
|
84 |
-
"symfony/phpunit-bridge": "
|
85 |
},
|
86 |
-
"time": "
|
87 |
"type": "library",
|
88 |
"extra": {
|
89 |
"branch-alias": {
|
90 |
-
"dev-master": "1.
|
91 |
}
|
92 |
},
|
93 |
"installation-source": "dist",
|
94 |
"autoload": {
|
95 |
"psr-0": {
|
96 |
"Twig_": "lib/"
|
97 |
-
},
|
98 |
-
"psr-4": {
|
99 |
-
"Twig\\": "src/"
|
100 |
}
|
101 |
},
|
102 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -106,23 +42,23 @@
|
|
106 |
"authors": [
|
107 |
{
|
108 |
"name": "Fabien Potencier",
|
109 |
-
"role": "Lead Developer",
|
110 |
"email": "fabien@symfony.com",
|
111 |
-
"homepage": "http://fabien.potencier.org"
|
|
|
112 |
},
|
113 |
{
|
114 |
"name": "Armin Ronacher",
|
115 |
-
"
|
116 |
-
"
|
117 |
},
|
118 |
{
|
119 |
"name": "Twig Team",
|
120 |
-
"
|
121 |
-
"
|
122 |
}
|
123 |
],
|
124 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
125 |
-
"homepage": "
|
126 |
"keywords": [
|
127 |
"templating"
|
128 |
]
|
1 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
{
|
3 |
"name": "twig/twig",
|
4 |
+
"version": "v1.33.0",
|
5 |
+
"version_normalized": "1.33.0.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/twigphp/Twig.git",
|
9 |
+
"reference": "05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/twigphp/Twig/zipball/05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a",
|
14 |
+
"reference": "05cf49921b13f6f01d3cfdf9018cfa7a8086fd5a",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
+
"php": ">=5.2.7"
|
|
|
19 |
},
|
20 |
"require-dev": {
|
21 |
"psr/container": "^1.0",
|
22 |
+
"symfony/debug": "~2.7",
|
23 |
+
"symfony/phpunit-bridge": "~3.3@dev"
|
24 |
},
|
25 |
+
"time": "2017-03-22 15:40:09",
|
26 |
"type": "library",
|
27 |
"extra": {
|
28 |
"branch-alias": {
|
29 |
+
"dev-master": "1.33-dev"
|
30 |
}
|
31 |
},
|
32 |
"installation-source": "dist",
|
33 |
"autoload": {
|
34 |
"psr-0": {
|
35 |
"Twig_": "lib/"
|
|
|
|
|
|
|
36 |
}
|
37 |
},
|
38 |
"notification-url": "https://packagist.org/downloads/",
|
42 |
"authors": [
|
43 |
{
|
44 |
"name": "Fabien Potencier",
|
|
|
45 |
"email": "fabien@symfony.com",
|
46 |
+
"homepage": "http://fabien.potencier.org",
|
47 |
+
"role": "Lead Developer"
|
48 |
},
|
49 |
{
|
50 |
"name": "Armin Ronacher",
|
51 |
+
"email": "armin.ronacher@active-4.com",
|
52 |
+
"role": "Project Founder"
|
53 |
},
|
54 |
{
|
55 |
"name": "Twig Team",
|
56 |
+
"homepage": "http://twig.sensiolabs.org/contributors",
|
57 |
+
"role": "Contributors"
|
58 |
}
|
59 |
],
|
60 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
61 |
+
"homepage": "http://twig.sensiolabs.org",
|
62 |
"keywords": [
|
63 |
"templating"
|
64 |
]
|
vendor/symfony/polyfill-ctype/Ctype.php
DELETED
@@ -1,227 +0,0 @@
|
|
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\Polyfill\Ctype;
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Ctype implementation through regex.
|
16 |
-
*
|
17 |
-
* @internal
|
18 |
-
*
|
19 |
-
* @author Gert de Pagter <BackEndTea@gmail.com>
|
20 |
-
*/
|
21 |
-
final class Ctype
|
22 |
-
{
|
23 |
-
/**
|
24 |
-
* Returns TRUE if every character in text is either a letter or a digit, FALSE otherwise.
|
25 |
-
*
|
26 |
-
* @see https://php.net/ctype-alnum
|
27 |
-
*
|
28 |
-
* @param string|int $text
|
29 |
-
*
|
30 |
-
* @return bool
|
31 |
-
*/
|
32 |
-
public static function ctype_alnum($text)
|
33 |
-
{
|
34 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
35 |
-
|
36 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Returns TRUE if every character in text is a letter, FALSE otherwise.
|
41 |
-
*
|
42 |
-
* @see https://php.net/ctype-alpha
|
43 |
-
*
|
44 |
-
* @param string|int $text
|
45 |
-
*
|
46 |
-
* @return bool
|
47 |
-
*/
|
48 |
-
public static function ctype_alpha($text)
|
49 |
-
{
|
50 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
51 |
-
|
52 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z]/', $text);
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.
|
57 |
-
*
|
58 |
-
* @see https://php.net/ctype-cntrl
|
59 |
-
*
|
60 |
-
* @param string|int $text
|
61 |
-
*
|
62 |
-
* @return bool
|
63 |
-
*/
|
64 |
-
public static function ctype_cntrl($text)
|
65 |
-
{
|
66 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
67 |
-
|
68 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^\x00-\x1f\x7f]/', $text);
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
|
73 |
-
*
|
74 |
-
* @see https://php.net/ctype-digit
|
75 |
-
*
|
76 |
-
* @param string|int $text
|
77 |
-
*
|
78 |
-
* @return bool
|
79 |
-
*/
|
80 |
-
public static function ctype_digit($text)
|
81 |
-
{
|
82 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
83 |
-
|
84 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Returns TRUE if every character in text is printable and actually creates visible output (no white space), FALSE otherwise.
|
89 |
-
*
|
90 |
-
* @see https://php.net/ctype-graph
|
91 |
-
*
|
92 |
-
* @param string|int $text
|
93 |
-
*
|
94 |
-
* @return bool
|
95 |
-
*/
|
96 |
-
public static function ctype_graph($text)
|
97 |
-
{
|
98 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
99 |
-
|
100 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^!-~]/', $text);
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Returns TRUE if every character in text is a lowercase letter.
|
105 |
-
*
|
106 |
-
* @see https://php.net/ctype-lower
|
107 |
-
*
|
108 |
-
* @param string|int $text
|
109 |
-
*
|
110 |
-
* @return bool
|
111 |
-
*/
|
112 |
-
public static function ctype_lower($text)
|
113 |
-
{
|
114 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
115 |
-
|
116 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Returns TRUE if every character in text will actually create output (including blanks). Returns FALSE if text contains control characters or characters that do not have any output or control function at all.
|
121 |
-
*
|
122 |
-
* @see https://php.net/ctype-print
|
123 |
-
*
|
124 |
-
* @param string|int $text
|
125 |
-
*
|
126 |
-
* @return bool
|
127 |
-
*/
|
128 |
-
public static function ctype_print($text)
|
129 |
-
{
|
130 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
131 |
-
|
132 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
|
133 |
-
}
|
134 |
-
|
135 |
-
/**
|
136 |
-
* Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise.
|
137 |
-
*
|
138 |
-
* @see https://php.net/ctype-punct
|
139 |
-
*
|
140 |
-
* @param string|int $text
|
141 |
-
*
|
142 |
-
* @return bool
|
143 |
-
*/
|
144 |
-
public static function ctype_punct($text)
|
145 |
-
{
|
146 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
147 |
-
|
148 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
|
149 |
-
}
|
150 |
-
|
151 |
-
/**
|
152 |
-
* Returns TRUE if every character in text creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters.
|
153 |
-
*
|
154 |
-
* @see https://php.net/ctype-space
|
155 |
-
*
|
156 |
-
* @param string|int $text
|
157 |
-
*
|
158 |
-
* @return bool
|
159 |
-
*/
|
160 |
-
public static function ctype_space($text)
|
161 |
-
{
|
162 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
163 |
-
|
164 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^\s]/', $text);
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Returns TRUE if every character in text is an uppercase letter.
|
169 |
-
*
|
170 |
-
* @see https://php.net/ctype-upper
|
171 |
-
*
|
172 |
-
* @param string|int $text
|
173 |
-
*
|
174 |
-
* @return bool
|
175 |
-
*/
|
176 |
-
public static function ctype_upper($text)
|
177 |
-
{
|
178 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
179 |
-
|
180 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^A-Z]/', $text);
|
181 |
-
}
|
182 |
-
|
183 |
-
/**
|
184 |
-
* Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , FALSE otherwise.
|
185 |
-
*
|
186 |
-
* @see https://php.net/ctype-xdigit
|
187 |
-
*
|
188 |
-
* @param string|int $text
|
189 |
-
*
|
190 |
-
* @return bool
|
191 |
-
*/
|
192 |
-
public static function ctype_xdigit($text)
|
193 |
-
{
|
194 |
-
$text = self::convert_int_to_char_for_ctype($text);
|
195 |
-
|
196 |
-
return \is_string($text) && '' !== $text && !preg_match('/[^A-Fa-f0-9]/', $text);
|
197 |
-
}
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Converts integers to their char versions according to normal ctype behaviour, if needed.
|
201 |
-
*
|
202 |
-
* If an integer between -128 and 255 inclusive is provided,
|
203 |
-
* it is interpreted as the ASCII value of a single character
|
204 |
-
* (negative values have 256 added in order to allow characters in the Extended ASCII range).
|
205 |
-
* Any other integer is interpreted as a string containing the decimal digits of the integer.
|
206 |
-
*
|
207 |
-
* @param string|int $int
|
208 |
-
*
|
209 |
-
* @return mixed
|
210 |
-
*/
|
211 |
-
private static function convert_int_to_char_for_ctype($int)
|
212 |
-
{
|
213 |
-
if (!\is_int($int)) {
|
214 |
-
return $int;
|
215 |
-
}
|
216 |
-
|
217 |
-
if ($int < -128 || $int > 255) {
|
218 |
-
return (string) $int;
|
219 |
-
}
|
220 |
-
|
221 |
-
if ($int < 0) {
|
222 |
-
$int += 256;
|
223 |
-
}
|
224 |
-
|
225 |
-
return \chr($int);
|
226 |
-
}
|
227 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/symfony/polyfill-ctype/LICENSE
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
Copyright (c) 2018-2019 Fabien Potencier
|
2 |
-
|
3 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 |
-
of this software and associated documentation files (the "Software"), to deal
|
5 |
-
in the Software without restriction, including without limitation the rights
|
6 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7 |
-
copies of the Software, and to permit persons to whom the Software is furnished
|
8 |
-
to do so, subject to the following conditions:
|
9 |
-
|
10 |
-
The above copyright notice and this permission notice shall be included in all
|
11 |
-
copies or substantial portions of the Software.
|
12 |
-
|
13 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14 |
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15 |
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16 |
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17 |
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18 |
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19 |
-
THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/symfony/polyfill-ctype/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
Symfony Polyfill / Ctype
|
2 |
-
========================
|
3 |
-
|
4 |
-
This component provides `ctype_*` functions to users who run php versions without the ctype extension.
|
5 |
-
|
6 |
-
More information can be found in the
|
7 |
-
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
|
8 |
-
|
9 |
-
License
|
10 |
-
=======
|
11 |
-
|
12 |
-
This library is released under the [MIT license](LICENSE).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/symfony/polyfill-ctype/bootstrap.php
DELETED
@@ -1,26 +0,0 @@
|
|
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 |
-
use Symfony\Polyfill\Ctype as p;
|
13 |
-
|
14 |
-
if (!function_exists('ctype_alnum')) {
|
15 |
-
function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
|
16 |
-
function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
|
17 |
-
function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
|
18 |
-
function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
|
19 |
-
function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
|
20 |
-
function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
|
21 |
-
function ctype_print($text) { return p\Ctype::ctype_print($text); }
|
22 |
-
function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
|
23 |
-
function ctype_space($text) { return p\Ctype::ctype_space($text); }
|
24 |
-
function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
|
25 |
-
function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/symfony/polyfill-ctype/composer.json
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "symfony/polyfill-ctype",
|
3 |
-
"type": "library",
|
4 |
-
"description": "Symfony polyfill for ctype functions",
|
5 |
-
"keywords": ["polyfill", "compatibility", "portable", "ctype"],
|
6 |
-
"homepage": "https://symfony.com",
|
7 |
-
"license": "MIT",
|
8 |
-
"authors": [
|
9 |
-
{
|
10 |
-
"name": "Gert de Pagter",
|
11 |
-
"email": "BackEndTea@gmail.com"
|
12 |
-
},
|
13 |
-
{
|
14 |
-
"name": "Symfony Community",
|
15 |
-
"homepage": "https://symfony.com/contributors"
|
16 |
-
}
|
17 |
-
],
|
18 |
-
"require": {
|
19 |
-
"php": ">=5.3.3"
|
20 |
-
},
|
21 |
-
"autoload": {
|
22 |
-
"psr-4": { "Symfony\\Polyfill\\Ctype\\": "" },
|
23 |
-
"files": [ "bootstrap.php" ]
|
24 |
-
},
|
25 |
-
"suggest": {
|
26 |
-
"ext-ctype": "For best performance"
|
27 |
-
},
|
28 |
-
"minimum-stability": "dev",
|
29 |
-
"extra": {
|
30 |
-
"branch-alias": {
|
31 |
-
"dev-master": "1.12-dev"
|
32 |
-
}
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/twig/twig/.editorconfig
CHANGED
File without changes
|
vendor/twig/twig/.php_cs.dist
CHANGED
@@ -1,18 +1,15 @@
|
|
1 |
<?php
|
2 |
|
3 |
return PhpCsFixer\Config::create()
|
4 |
-
->setRules(
|
5 |
'@Symfony' => true,
|
6 |
'@Symfony:risky' => true,
|
7 |
-
'array_syntax' =>
|
8 |
-
'php_unit_fqcn_annotation' =>
|
9 |
'no_unreachable_default_argument_value' => false,
|
10 |
-
'braces' =>
|
11 |
'heredoc_to_nowdoc' => false,
|
12 |
-
|
13 |
-
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
|
14 |
-
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
|
15 |
-
])
|
16 |
->setRiskyAllowed(true)
|
17 |
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
|
18 |
;
|
1 |
<?php
|
2 |
|
3 |
return PhpCsFixer\Config::create()
|
4 |
+
->setRules(array(
|
5 |
'@Symfony' => true,
|
6 |
'@Symfony:risky' => true,
|
7 |
+
'array_syntax' => array('syntax' => 'long'),
|
8 |
+
'php_unit_fqcn_annotation' => false,
|
9 |
'no_unreachable_default_argument_value' => false,
|
10 |
+
'braces' => array('allow_single_line_closure' => true),
|
11 |
'heredoc_to_nowdoc' => false,
|
12 |
+
))
|
|
|
|
|
|
|
13 |
->setRiskyAllowed(true)
|
14 |
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
|
15 |
;
|
vendor/twig/twig/.travis.yml
CHANGED
@@ -7,38 +7,37 @@ cache:
|
|
7 |
- vendor
|
8 |
- $HOME/.composer/cache/files
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
env:
|
11 |
- TWIG_EXT=no
|
|
|
12 |
|
13 |
before_install:
|
14 |
-
- phpenv config-rm xdebug.ini ||
|
15 |
|
16 |
install:
|
17 |
-
|
|
|
18 |
|
19 |
before_script:
|
20 |
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
|
21 |
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
jobs:
|
26 |
fast_finish: true
|
27 |
-
|
28 |
-
- php:
|
29 |
-
- php: 5.4
|
30 |
-
env: TWIG_EXT=yes
|
31 |
-
- php: 5.5
|
32 |
-
- php: 5.5
|
33 |
-
env: TWIG_EXT=yes
|
34 |
-
- php: 5.6
|
35 |
-
- php: 5.6
|
36 |
env: TWIG_EXT=yes
|
37 |
- php: 7.0
|
|
|
38 |
- php: 7.1
|
39 |
-
|
40 |
-
- php: 7.3
|
41 |
-
- php: 7.4snapshot
|
42 |
-
- stage: integration tests
|
43 |
-
php: 7.3
|
44 |
-
script: ./drupal_test.sh
|
7 |
- vendor
|
8 |
- $HOME/.composer/cache/files
|
9 |
|
10 |
+
php:
|
11 |
+
- 5.2
|
12 |
+
- 5.3
|
13 |
+
- 5.4
|
14 |
+
- 5.5
|
15 |
+
- 5.6
|
16 |
+
- 7.0
|
17 |
+
- 7.1
|
18 |
+
- hhvm
|
19 |
+
|
20 |
env:
|
21 |
- TWIG_EXT=no
|
22 |
+
- TWIG_EXT=yes
|
23 |
|
24 |
before_install:
|
25 |
+
- if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
|
26 |
|
27 |
install:
|
28 |
+
# Composer is not available on PHP 5.2
|
29 |
+
- if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
|
30 |
|
31 |
before_script:
|
32 |
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
|
33 |
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
34 |
|
35 |
+
matrix:
|
|
|
|
|
36 |
fast_finish: true
|
37 |
+
exclude:
|
38 |
+
- php: hhvm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
env: TWIG_EXT=yes
|
40 |
- php: 7.0
|
41 |
+
env: TWIG_EXT=yes
|
42 |
- php: 7.1
|
43 |
+
env: TWIG_EXT=yes
|
|
|
|
|
|
|
|
|
|
vendor/twig/twig/CHANGELOG
CHANGED
@@ -1,182 +1,3 @@
|
|
1 |
-
* 1.42.2 (2019-06-18)
|
2 |
-
|
3 |
-
* Display partial output (PHP buffer) when an error occurs in debug mode
|
4 |
-
|
5 |
-
* 1.42.1 (2019-06-04)
|
6 |
-
|
7 |
-
* added support for "Twig\Markup" instances in the "in" test (again)
|
8 |
-
* allowed string operators as variables names in assignments
|
9 |
-
|
10 |
-
* 1.42.0 (2019-05-31)
|
11 |
-
|
12 |
-
* fixed the "filter" filter when the argument is \Traversable but does not implement \Iterator (\SimpleXmlElement for instance)
|
13 |
-
* fixed a PHP fatal error when calling a macro imported in a block in a nested block
|
14 |
-
* fixed a PHP fatal error when calling a macro imported in the template in another macro
|
15 |
-
* fixed wrong error message on "import" and "from"
|
16 |
-
|
17 |
-
* 1.41.0 (2019-05-14)
|
18 |
-
|
19 |
-
* fixed support for PHP 7.4
|
20 |
-
* added "filter", "map", and "reduce" filters (and support for arrow functions)
|
21 |
-
* fixed partial output leak when a PHP fatal error occurs
|
22 |
-
* optimized context access on PHP 7.4
|
23 |
-
|
24 |
-
* 1.40.1 (2019-04-29)
|
25 |
-
|
26 |
-
* fixed regression in NodeTraverser
|
27 |
-
|
28 |
-
* 1.40.0 (2019-04-28)
|
29 |
-
|
30 |
-
* allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)
|
31 |
-
* added the "apply" tag as a replacement for the "filter" tag
|
32 |
-
* allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
|
33 |
-
* added support for "Twig\Markup" instances in the "in" test
|
34 |
-
* fixed Lexer when using custom options containing the # char
|
35 |
-
* fixed "import" when macros are stored in a template string
|
36 |
-
|
37 |
-
* 1.39.1 (2019-04-16)
|
38 |
-
|
39 |
-
* fixed EscaperNodeVisitor
|
40 |
-
|
41 |
-
* 1.39.0 (2019-04-16)
|
42 |
-
|
43 |
-
* added Traversable support for the length filter
|
44 |
-
* fixed some wrong location in error messages
|
45 |
-
* made exception creation faster
|
46 |
-
* made escaping on ternary expressions (?: and ??) more fine-grained
|
47 |
-
* added the possibility to give a nice name to string templates (template_from_string function)
|
48 |
-
* fixed the "with" behavior to always include the globals (for consistency with the "include" and "embed" tags)
|
49 |
-
* fixed "include" with "ignore missing" when an error loading occurs in the included template
|
50 |
-
* added support for a new whitespace trimming option ({%~ ~%}, {{~ ~}}, {#~ ~#})
|
51 |
-
|
52 |
-
* 1.38.4 (2019-03-23)
|
53 |
-
|
54 |
-
* fixed CheckToStringNode implementation (broken when a function/filter is variadic)
|
55 |
-
|
56 |
-
* 1.38.3 (2019-03-21)
|
57 |
-
|
58 |
-
* fixed the spaceless filter so that it behaves like the spaceless tag
|
59 |
-
* fixed BC break on Environment::resolveTemplate()
|
60 |
-
* fixed the bundled Autoloader to also load namespaced classes
|
61 |
-
* allowed Traversable objects to be used in the "with" tag
|
62 |
-
* allowed Traversable objects to be used in the "with" argument of the "include" and "embed" tags
|
63 |
-
|
64 |
-
* 1.38.2 (2019-03-12)
|
65 |
-
|
66 |
-
* added TemplateWrapper::getTemplateName()
|
67 |
-
|
68 |
-
* 1.38.1 (2019-03-12)
|
69 |
-
|
70 |
-
* fixed class aliases
|
71 |
-
|
72 |
-
* 1.38.0 (2019-03-12)
|
73 |
-
|
74 |
-
* fixed sandbox security issue (under some circumstances, calling the
|
75 |
-
__toString() method on an object was possible even if not allowed by the
|
76 |
-
security policy)
|
77 |
-
* fixed batch filter clobbers array keys when fill parameter is used
|
78 |
-
* added preserveKeys support for the batch filter
|
79 |
-
* fixed "embed" support when used from "template_from_string"
|
80 |
-
* added the possibility to pass a TemplateWrapper to Twig\Environment::load()
|
81 |
-
* improved the performance of the sandbox
|
82 |
-
* added a spaceless filter
|
83 |
-
* added max value to the "random" function
|
84 |
-
* made namespace classes the default classes (PSR-0 ones are aliases now)
|
85 |
-
* removed duplicated directory separator in FilesystemLoader
|
86 |
-
* added Twig\Loader\ChainLoader::getLoaders()
|
87 |
-
* changed internal code to use the namespaced classes as much as possible
|
88 |
-
|
89 |
-
* 1.37.1 (2019-01-14)
|
90 |
-
|
91 |
-
* fixed regression (key exists check for non ArrayObject objects)
|
92 |
-
* fixed logic in TemplateWrapper
|
93 |
-
|
94 |
-
* 1.37.0 (2019-01-14)
|
95 |
-
|
96 |
-
* fixed ArrayObject access with a null value
|
97 |
-
* fixed embedded templates starting with a BOM
|
98 |
-
* fixed using a Twig_TemplateWrapper instance as an argument to extends
|
99 |
-
* switched generated code to use the PHP short array notation
|
100 |
-
* dropped PHP 5.3 support
|
101 |
-
* fixed float representation in compiled templates
|
102 |
-
* added a second argument to the join filter (last separator configuration)
|
103 |
-
|
104 |
-
* 1.36.0 (2018-12-16)
|
105 |
-
|
106 |
-
* made sure twig_include returns a string
|
107 |
-
* fixed multi-byte UFT-8 in escape('html_attr')
|
108 |
-
* added the "deprecated" tag
|
109 |
-
* added support for dynamically named tests
|
110 |
-
* fixed GlobalsInterface extended class
|
111 |
-
* fixed filesystem loader throwing an exception instead of returning false
|
112 |
-
|
113 |
-
* 1.35.4 (2018-07-13)
|
114 |
-
|
115 |
-
* ensured that syntax errors are triggered with the right line
|
116 |
-
* added the Symfony ctype polyfill as a dependency
|
117 |
-
* "js" filter now produces valid JSON
|
118 |
-
|
119 |
-
* 1.35.3 (2018-03-20)
|
120 |
-
|
121 |
-
* fixed block names unicity
|
122 |
-
* fixed counting children of SimpleXMLElement objects
|
123 |
-
* added missing else clause to avoid infinite loops
|
124 |
-
* fixed .. (range operator) in sandbox policy
|
125 |
-
|
126 |
-
* 1.35.2 (2018-03-03)
|
127 |
-
|
128 |
-
* fixed a regression in the way the profiler is registered in templates
|
129 |
-
|
130 |
-
* 1.35.1 (2018-03-02)
|
131 |
-
|
132 |
-
* added an exception when using "===" instead of "same as"
|
133 |
-
* fixed possible array to string conversion concealing actual error
|
134 |
-
* made variable names deterministic in compiled templates
|
135 |
-
* fixed length filter when passing an instance of IteratorAggregate
|
136 |
-
* fixed Environment::resolveTemplate to accept instances of TemplateWrapper
|
137 |
-
|
138 |
-
* 1.35.0 (2017-09-27)
|
139 |
-
|
140 |
-
* added Twig_Profiler_Profile::reset()
|
141 |
-
* fixed use TokenParser to return an empty Node
|
142 |
-
* added RuntimeExtensionInterface
|
143 |
-
* added circular reference detection when loading templates
|
144 |
-
|
145 |
-
* 1.34.4 (2017-07-04)
|
146 |
-
|
147 |
-
* added support for runtime loaders in IntegrationTestCase
|
148 |
-
* fixed deprecation when using Twig_Profiler_Dumper_Html
|
149 |
-
|
150 |
-
* 1.34.3 (2017-06-07)
|
151 |
-
|
152 |
-
* fixed namespaces introduction
|
153 |
-
|
154 |
-
* 1.34.2 (2017-06-05)
|
155 |
-
|
156 |
-
* fixed namespaces introduction
|
157 |
-
|
158 |
-
* 1.34.1 (2017-06-05)
|
159 |
-
|
160 |
-
* fixed namespaces introduction
|
161 |
-
|
162 |
-
* 1.34.0 (2017-06-05)
|
163 |
-
|
164 |
-
* added support for PHPUnit 6 when testing extensions
|
165 |
-
* fixed PHP 7.2 compatibility
|
166 |
-
* fixed template name generation in Twig_Environment::createTemplate()
|
167 |
-
* removed final tag on Twig_TokenParser_Include
|
168 |
-
* added namespaced aliases for all (non-deprecated) classes and interfaces
|
169 |
-
* dropped HHVM support
|
170 |
-
* dropped PHP 5.2 support
|
171 |
-
|
172 |
-
* 1.33.2 (2017-04-20)
|
173 |
-
|
174 |
-
* fixed edge case in the method cache for Twig attributes
|
175 |
-
|
176 |
-
* 1.33.1 (2017-04-18)
|
177 |
-
|
178 |
-
* fixed the empty() test
|
179 |
-
|
180 |
* 1.33.0 (2017-03-22)
|
181 |
|
182 |
* fixed a race condition handling when writing cache files
|
@@ -286,7 +107,7 @@
|
|
286 |
|
287 |
* fixed reserved keywords (forbids true, false, null and none keywords for variables names)
|
288 |
* fixed support for PHP7 (Throwable support)
|
289 |
-
* marked the following methods as being internals on Twig_Environment:
|
290 |
getFunctions(), getFilters(), getTests(), getFunction(), getFilter(), getTest(),
|
291 |
getTokenParsers(), getTags(), getNodeVisitors(), getUnaryOperators(), getBinaryOperators(),
|
292 |
getFunctions(), getFilters(), getGlobals(), initGlobals(), initExtensions(), and initExtension()
|
@@ -370,7 +191,7 @@
|
|
370 |
* fixed limited RCEs when in sandbox mode
|
371 |
* deprecated Twig_Template::getEnvironment()
|
372 |
* deprecated the _self variable for usage outside of the from and import tags
|
373 |
-
* added Twig_BaseNodeVisitor to ease the compatibility of node visitors
|
374 |
between 1.x and 2.x
|
375 |
|
376 |
* 1.19.0 (2015-07-31)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
* 1.33.0 (2017-03-22)
|
2 |
|
3 |
* fixed a race condition handling when writing cache files
|
107 |
|
108 |
* fixed reserved keywords (forbids true, false, null and none keywords for variables names)
|
109 |
* fixed support for PHP7 (Throwable support)
|
110 |
+
* marked the following methods as being internals on Twig_Environment:
|
111 |
getFunctions(), getFilters(), getTests(), getFunction(), getFilter(), getTest(),
|
112 |
getTokenParsers(), getTags(), getNodeVisitors(), getUnaryOperators(), getBinaryOperators(),
|
113 |
getFunctions(), getFilters(), getGlobals(), initGlobals(), initExtensions(), and initExtension()
|
191 |
* fixed limited RCEs when in sandbox mode
|
192 |
* deprecated Twig_Template::getEnvironment()
|
193 |
* deprecated the _self variable for usage outside of the from and import tags
|
194 |
+
* added Twig_BaseNodeVisitor to ease the compatibility of node visitors
|
195 |
between 1.x and 2.x
|
196 |
|
197 |
* 1.19.0 (2015-07-31)
|
vendor/twig/twig/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Copyright (c) 2009-
|
2 |
|
3 |
Some rights reserved.
|
4 |
|
1 |
+
Copyright (c) 2009-2017 by the Twig Team.
|
2 |
|
3 |
Some rights reserved.
|
4 |
|
vendor/twig/twig/README.rst
CHANGED
@@ -12,4 +12,4 @@ More Information
|
|
12 |
|
13 |
Read the `documentation`_ for more information.
|
14 |
|
15 |
-
.. _documentation:
|
12 |
|
13 |
Read the `documentation`_ for more information.
|
14 |
|
15 |
+
.. _documentation: http://twig.sensiolabs.org/documentation
|
vendor/twig/twig/composer.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"type": "library",
|
4 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
5 |
"keywords": ["templating"],
|
6 |
-
"homepage": "
|
7 |
"license": "BSD-3-Clause",
|
8 |
"authors": [
|
9 |
{
|
@@ -14,7 +14,7 @@
|
|
14 |
},
|
15 |
{
|
16 |
"name": "Twig Team",
|
17 |
-
"homepage": "
|
18 |
"role": "Contributors"
|
19 |
},
|
20 |
{
|
@@ -23,26 +23,25 @@
|
|
23 |
"role": "Project Founder"
|
24 |
}
|
25 |
],
|
|
|
|
|
|
|
26 |
"require": {
|
27 |
-
"php": ">=5.
|
28 |
-
"symfony/polyfill-ctype": "^1.8"
|
29 |
},
|
30 |
"require-dev": {
|
31 |
-
"symfony/phpunit-bridge": "
|
32 |
-
"symfony/debug": "
|
33 |
"psr/container": "^1.0"
|
34 |
},
|
35 |
"autoload": {
|
36 |
"psr-0" : {
|
37 |
"Twig_" : "lib/"
|
38 |
-
},
|
39 |
-
"psr-4" : {
|
40 |
-
"Twig\\" : "src/"
|
41 |
}
|
42 |
},
|
43 |
"extra": {
|
44 |
"branch-alias": {
|
45 |
-
"dev-master": "1.
|
46 |
}
|
47 |
}
|
48 |
}
|
3 |
"type": "library",
|
4 |
"description": "Twig, the flexible, fast, and secure template language for PHP",
|
5 |
"keywords": ["templating"],
|
6 |
+
"homepage": "http://twig.sensiolabs.org",
|
7 |
"license": "BSD-3-Clause",
|
8 |
"authors": [
|
9 |
{
|
14 |
},
|
15 |
{
|
16 |
"name": "Twig Team",
|
17 |
+
"homepage": "http://twig.sensiolabs.org/contributors",
|
18 |
"role": "Contributors"
|
19 |
},
|
20 |
{
|
23 |
"role": "Project Founder"
|
24 |
}
|
25 |
],
|
26 |
+
"support": {
|
27 |
+
"forum": "https://groups.google.com/forum/#!forum/twig-users"
|
28 |
+
},
|
29 |
"require": {
|
30 |
+
"php": ">=5.2.7"
|
|
|
31 |
},
|
32 |
"require-dev": {
|
33 |
+
"symfony/phpunit-bridge": "~3.3@dev",
|
34 |
+
"symfony/debug": "~2.7",
|
35 |
"psr/container": "^1.0"
|
36 |
},
|
37 |
"autoload": {
|
38 |
"psr-0" : {
|
39 |
"Twig_" : "lib/"
|
|
|
|
|
|
|
40 |
}
|
41 |
},
|
42 |
"extra": {
|
43 |
"branch-alias": {
|
44 |
+
"dev-master": "1.33-dev"
|
45 |
}
|
46 |
}
|
47 |
}
|
vendor/twig/twig/doc/advanced.rst
CHANGED
@@ -13,10 +13,10 @@ itself with node visitors.
|
|
13 |
|
14 |
.. note::
|
15 |
|
16 |
-
The first section of this chapter describes how to extend Twig. If
|
17 |
-
to reuse your changes in different projects or if you want to
|
18 |
-
with others, you should then create an extension as described
|
19 |
-
following section.
|
20 |
|
21 |
.. caution::
|
22 |
|
@@ -40,7 +40,7 @@ generate).
|
|
40 |
|
41 |
You can use a ``lipsum`` *tag*:
|
42 |
|
43 |
-
.. code-block::
|
44 |
|
45 |
{% lipsum 40 %}
|
46 |
|
@@ -51,42 +51,43 @@ three main reasons:
|
|
51 |
* The tag outputs something;
|
52 |
* The tag is not flexible as you cannot use it in an expression:
|
53 |
|
54 |
-
.. code-block::
|
55 |
|
56 |
{{ 'some text' ~ {% lipsum 40 %} ~ 'some more text' }}
|
57 |
|
58 |
In fact, you rarely need to create tags; and that's good news because tags are
|
59 |
-
the most complex extension point.
|
60 |
|
61 |
Now, let's use a ``lipsum`` *filter*:
|
62 |
|
63 |
-
.. code-block::
|
64 |
|
65 |
{{ 40|lipsum }}
|
66 |
|
67 |
-
Again, it works.
|
68 |
-
else
|
69 |
-
``40`` is an argument of the filter, not the value we want to
|
|
|
70 |
|
71 |
Next, let's use a ``lipsum`` *function*:
|
72 |
|
73 |
-
.. code-block::
|
74 |
|
75 |
{{ lipsum(40) }}
|
76 |
|
77 |
Here we go. For this specific example, the creation of a function is the
|
78 |
extension point to use. And you can use it anywhere an expression is accepted:
|
79 |
|
80 |
-
.. code-block::
|
81 |
|
82 |
{{ 'some text' ~ lipsum(40) ~ 'some more text' }}
|
83 |
|
84 |
{% set lipsum = lipsum(40) %}
|
85 |
|
86 |
-
|
87 |
-
ipsum text:
|
88 |
|
89 |
-
.. code-block::
|
90 |
|
91 |
{{ text.lipsum(40) }}
|
92 |
|
@@ -98,13 +99,13 @@ Keep in mind the following when you want to extend Twig:
|
|
98 |
========== ========================== ========== =========================
|
99 |
What? Implementation difficulty? How often? When?
|
100 |
========== ========================== ========== =========================
|
101 |
-
*macro*
|
102 |
-
*global*
|
103 |
-
*function*
|
104 |
-
*filter*
|
105 |
*tag* complex rare DSL language construct
|
106 |
-
*test*
|
107 |
-
*operator*
|
108 |
========== ========================== ========== =========================
|
109 |
|
110 |
Globals
|
@@ -113,49 +114,49 @@ Globals
|
|
113 |
A global variable is like any other template variable, except that it's
|
114 |
available in all templates and macros::
|
115 |
|
116 |
-
$twig = new
|
117 |
$twig->addGlobal('text', new Text());
|
118 |
|
119 |
You can then use the ``text`` variable anywhere in a template:
|
120 |
|
121 |
-
.. code-block::
|
122 |
|
123 |
{{ text.lipsum(40) }}
|
124 |
|
125 |
Filters
|
126 |
-------
|
127 |
|
128 |
-
Creating a filter
|
129 |
|
130 |
// an anonymous function
|
131 |
-
$filter = new
|
132 |
return str_rot13($string);
|
133 |
});
|
134 |
|
135 |
// or a simple PHP function
|
136 |
-
$filter = new
|
137 |
|
138 |
// or a class static method
|
139 |
-
$filter = new
|
140 |
-
$filter = new
|
141 |
|
142 |
// or a class method
|
143 |
-
$filter = new
|
144 |
// the one below needs a runtime implementation (see below for more information)
|
145 |
-
$filter = new
|
146 |
|
147 |
-
The first argument passed to the
|
148 |
of the filter you will use in templates and the second one is the PHP callable
|
149 |
to associate with it.
|
150 |
|
151 |
-
Then, add the filter to
|
152 |
|
153 |
-
$twig = new
|
154 |
$twig->addFilter($filter);
|
155 |
|
156 |
And here is how to use it in a template:
|
157 |
|
158 |
-
.. code-block::
|
159 |
|
160 |
{{ 'Twig'|rot13 }}
|
161 |
|
@@ -167,7 +168,7 @@ to the filter (within parentheses ``()``) as extra arguments.
|
|
167 |
|
168 |
For instance, the following code:
|
169 |
|
170 |
-
.. code-block::
|
171 |
|
172 |
{{ 'TWIG'|lower }}
|
173 |
{{ now|date('d/m/Y') }}
|
@@ -177,10 +178,10 @@ is compiled to something like the following::
|