diff --git a/system/backend/php/composer.lock b/system/backend/php/composer.lock
index 7083240fb2e..c882ab0c685 100644
--- a/system/backend/php/composer.lock
+++ b/system/backend/php/composer.lock
@@ -775,20 +775,23 @@
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.11.0",
+ "version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "82ebae02209c21113908c229e9883c419720738a"
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
- "reference": "82ebae02209c21113908c229e9883c419720738a",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a",
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-ctype": "*"
},
"suggest": {
"ext-ctype": "For best performance"
@@ -796,29 +799,33 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
{
"name": "Gert de Pagter",
"email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for ctype functions",
@@ -829,7 +836,21 @@
"polyfill",
"portable"
],
- "time": "2019-02-06T07:57:58+00:00"
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-11-03T14:55:06+00:00"
},
{
"name": "symfony/polyfill-intl-idn",
@@ -998,20 +1019,23 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.11.0",
+ "version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "fe5e94c604826c35a32fa832f35bd036b6799609"
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609",
- "reference": "fe5e94c604826c35a32fa832f35bd036b6799609",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-mbstring": "*"
},
"suggest": {
"ext-mbstring": "For best performance"
@@ -1019,16 +1043,20 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1053,7 +1081,21 @@
"portable",
"shim"
],
- "time": "2019-02-06T07:57:58+00:00"
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-11-03T14:55:06+00:00"
},
{
"name": "symfony/polyfill-php72",
@@ -1189,32 +1231,32 @@
},
{
"name": "twig/twig",
- "version": "v2.11.2",
+ "version": "v2.15.5",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "84a463403da1c81afbcedda8f0e788c78bd25a79"
+ "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/84a463403da1c81afbcedda8f0e788c78bd25a79",
- "reference": "84a463403da1c81afbcedda8f0e788c78bd25a79",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/fc02a6af3eeb97c4bf5650debc76c2eda85ac22e",
+ "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e",
"shasum": ""
},
"require": {
- "php": "^7.0",
+ "php": ">=7.1.3",
"symfony/polyfill-ctype": "^1.8",
- "symfony/polyfill-mbstring": "^1.3"
+ "symfony/polyfill-mbstring": "^1.3",
+ "symfony/polyfill-php72": "^1.8"
},
"require-dev": {
"psr/container": "^1.0",
- "symfony/debug": "^2.7",
- "symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0"
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.11-dev"
+ "dev-master": "2.15-dev"
}
},
"autoload": {
@@ -1236,15 +1278,14 @@
"homepage": "http://fabien.potencier.org",
"role": "Lead Developer"
},
+ {
+ "name": "Twig Team",
+ "role": "Contributors"
+ },
{
"name": "Armin Ronacher",
"email": "armin.ronacher@active-4.com",
"role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://twig.symfony.com/contributors",
- "role": "Contributors"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
@@ -1252,7 +1293,17 @@
"keywords": [
"templating"
],
- "time": "2019-06-05T11:17:07+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/twig/twig",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2023-05-03T17:49:41+00:00"
},
{
"name": "zircote/swagger-php",
diff --git a/system/backend/php/vendor/composer/installed.json b/system/backend/php/vendor/composer/installed.json
index 891b026f8ba..5536e8819d9 100644
--- a/system/backend/php/vendor/composer/installed.json
+++ b/system/backend/php/vendor/composer/installed.json
@@ -792,53 +792,60 @@
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.11.0",
- "version_normalized": "1.11.0.0",
+ "version": "v1.27.0",
+ "version_normalized": "1.27.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "82ebae02209c21113908c229e9883c419720738a"
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
- "reference": "82ebae02209c21113908c229e9883c419720738a",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a",
+ "reference": "5bbc823adecdae860bb64756d639ecfec17b050a",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-ctype": "*"
},
"suggest": {
"ext-ctype": "For best performance"
},
- "time": "2019-02-06T07:57:58+00:00",
+ "time": "2022-11-03T14:55:06+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"installation-source": "dist",
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- },
{
"name": "Gert de Pagter",
"email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for ctype functions",
@@ -848,6 +855,20 @@
"ctype",
"polyfill",
"portable"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
]
},
{
@@ -1021,40 +1042,47 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.11.0",
- "version_normalized": "1.11.0.0",
+ "version": "v1.27.0",
+ "version_normalized": "1.27.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "fe5e94c604826c35a32fa832f35bd036b6799609"
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609",
- "reference": "fe5e94c604826c35a32fa832f35bd036b6799609",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
+ "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-mbstring": "*"
},
"suggest": {
"ext-mbstring": "For best performance"
},
- "time": "2019-02-06T07:57:58+00:00",
+ "time": "2022-11-03T14:55:06+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"installation-source": "dist",
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
"files": [
"bootstrap.php"
- ]
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1078,6 +1106,20 @@
"polyfill",
"portable",
"shim"
+ ],
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
]
},
{
@@ -1218,34 +1260,34 @@
},
{
"name": "twig/twig",
- "version": "v2.11.2",
- "version_normalized": "2.11.2.0",
+ "version": "v2.15.5",
+ "version_normalized": "2.15.5.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "84a463403da1c81afbcedda8f0e788c78bd25a79"
+ "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/84a463403da1c81afbcedda8f0e788c78bd25a79",
- "reference": "84a463403da1c81afbcedda8f0e788c78bd25a79",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/fc02a6af3eeb97c4bf5650debc76c2eda85ac22e",
+ "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e",
"shasum": ""
},
"require": {
- "php": "^7.0",
+ "php": ">=7.1.3",
"symfony/polyfill-ctype": "^1.8",
- "symfony/polyfill-mbstring": "^1.3"
+ "symfony/polyfill-mbstring": "^1.3",
+ "symfony/polyfill-php72": "^1.8"
},
"require-dev": {
"psr/container": "^1.0",
- "symfony/debug": "^2.7",
- "symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0"
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
- "time": "2019-06-05T11:17:07+00:00",
+ "time": "2023-05-03T17:49:41+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.11-dev"
+ "dev-master": "2.15-dev"
}
},
"installation-source": "dist",
@@ -1268,21 +1310,30 @@
"homepage": "http://fabien.potencier.org",
"role": "Lead Developer"
},
+ {
+ "name": "Twig Team",
+ "role": "Contributors"
+ },
{
"name": "Armin Ronacher",
"email": "armin.ronacher@active-4.com",
"role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://twig.symfony.com/contributors",
- "role": "Contributors"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
"homepage": "https://twig.symfony.com",
"keywords": [
"templating"
+ ],
+ "funding": [
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/twig/twig",
+ "type": "tidelift"
+ }
]
},
{
diff --git a/system/backend/php/vendor/symfony/polyfill-ctype/Ctype.php b/system/backend/php/vendor/symfony/polyfill-ctype/Ctype.php
index 58414dc73bd..ba75a2c95fc 100644
--- a/system/backend/php/vendor/symfony/polyfill-ctype/Ctype.php
+++ b/system/backend/php/vendor/symfony/polyfill-ctype/Ctype.php
@@ -25,13 +25,13 @@ final class Ctype
*
* @see https://php.net/ctype-alnum
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_alnum($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
}
@@ -41,13 +41,13 @@ public static function ctype_alnum($text)
*
* @see https://php.net/ctype-alpha
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_alpha($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z]/', $text);
}
@@ -57,13 +57,13 @@ public static function ctype_alpha($text)
*
* @see https://php.net/ctype-cntrl
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_cntrl($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^\x00-\x1f\x7f]/', $text);
}
@@ -73,13 +73,13 @@ public static function ctype_cntrl($text)
*
* @see https://php.net/ctype-digit
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_digit($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
}
@@ -89,13 +89,13 @@ public static function ctype_digit($text)
*
* @see https://php.net/ctype-graph
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_graph($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^!-~]/', $text);
}
@@ -105,13 +105,13 @@ public static function ctype_graph($text)
*
* @see https://php.net/ctype-lower
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_lower($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
}
@@ -121,13 +121,13 @@ public static function ctype_lower($text)
*
* @see https://php.net/ctype-print
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_print($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
}
@@ -137,13 +137,13 @@ public static function ctype_print($text)
*
* @see https://php.net/ctype-punct
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_punct($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
}
@@ -153,13 +153,13 @@ public static function ctype_punct($text)
*
* @see https://php.net/ctype-space
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_space($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^\s]/', $text);
}
@@ -169,13 +169,13 @@ public static function ctype_space($text)
*
* @see https://php.net/ctype-upper
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_upper($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^A-Z]/', $text);
}
@@ -185,13 +185,13 @@ public static function ctype_upper($text)
*
* @see https://php.net/ctype-xdigit
*
- * @param string|int $text
+ * @param mixed $text
*
* @return bool
*/
public static function ctype_xdigit($text)
{
- $text = self::convert_int_to_char_for_ctype($text);
+ $text = self::convert_int_to_char_for_ctype($text, __FUNCTION__);
return \is_string($text) && '' !== $text && !preg_match('/[^A-Fa-f0-9]/', $text);
}
@@ -204,11 +204,12 @@ public static function ctype_xdigit($text)
* (negative values have 256 added in order to allow characters in the Extended ASCII range).
* Any other integer is interpreted as a string containing the decimal digits of the integer.
*
- * @param string|int $int
+ * @param mixed $int
+ * @param string $function
*
* @return mixed
*/
- private static function convert_int_to_char_for_ctype($int)
+ private static function convert_int_to_char_for_ctype($int, $function)
{
if (!\is_int($int)) {
return $int;
@@ -218,6 +219,10 @@ private static function convert_int_to_char_for_ctype($int)
return (string) $int;
}
+ if (\PHP_VERSION_ID >= 80100) {
+ @trigger_error($function.'(): Argument of type int will be interpreted as string in the future', \E_USER_DEPRECATED);
+ }
+
if ($int < 0) {
$int += 256;
}
diff --git a/system/backend/php/vendor/symfony/polyfill-ctype/README.md b/system/backend/php/vendor/symfony/polyfill-ctype/README.md
index 8add1ab0096..b144d03c3c6 100644
--- a/system/backend/php/vendor/symfony/polyfill-ctype/README.md
+++ b/system/backend/php/vendor/symfony/polyfill-ctype/README.md
@@ -4,7 +4,7 @@ Symfony Polyfill / Ctype
This component provides `ctype_*` functions to users who run php versions without the ctype extension.
More information can be found in the
-[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
+[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
License
=======
diff --git a/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap.php b/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap.php
index 14d1d0faa37..d54524b31b4 100644
--- a/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap.php
+++ b/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap.php
@@ -11,16 +11,40 @@
use Symfony\Polyfill\Ctype as p;
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
+
if (!function_exists('ctype_alnum')) {
function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
+}
+if (!function_exists('ctype_alpha')) {
function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
+}
+if (!function_exists('ctype_cntrl')) {
function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
+}
+if (!function_exists('ctype_digit')) {
function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
+}
+if (!function_exists('ctype_graph')) {
function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
+}
+if (!function_exists('ctype_lower')) {
function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
+}
+if (!function_exists('ctype_print')) {
function ctype_print($text) { return p\Ctype::ctype_print($text); }
+}
+if (!function_exists('ctype_punct')) {
function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
+}
+if (!function_exists('ctype_space')) {
function ctype_space($text) { return p\Ctype::ctype_space($text); }
+}
+if (!function_exists('ctype_upper')) {
function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
+}
+if (!function_exists('ctype_xdigit')) {
function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
}
diff --git a/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap80.php b/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap80.php
new file mode 100644
index 00000000000..ab2f8611dac
--- /dev/null
+++ b/system/backend/php/vendor/symfony/polyfill-ctype/bootstrap80.php
@@ -0,0 +1,46 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Ctype as p;
+
+if (!function_exists('ctype_alnum')) {
+ function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }
+}
+if (!function_exists('ctype_alpha')) {
+ function ctype_alpha(mixed $text): bool { return p\Ctype::ctype_alpha($text); }
+}
+if (!function_exists('ctype_cntrl')) {
+ function ctype_cntrl(mixed $text): bool { return p\Ctype::ctype_cntrl($text); }
+}
+if (!function_exists('ctype_digit')) {
+ function ctype_digit(mixed $text): bool { return p\Ctype::ctype_digit($text); }
+}
+if (!function_exists('ctype_graph')) {
+ function ctype_graph(mixed $text): bool { return p\Ctype::ctype_graph($text); }
+}
+if (!function_exists('ctype_lower')) {
+ function ctype_lower(mixed $text): bool { return p\Ctype::ctype_lower($text); }
+}
+if (!function_exists('ctype_print')) {
+ function ctype_print(mixed $text): bool { return p\Ctype::ctype_print($text); }
+}
+if (!function_exists('ctype_punct')) {
+ function ctype_punct(mixed $text): bool { return p\Ctype::ctype_punct($text); }
+}
+if (!function_exists('ctype_space')) {
+ function ctype_space(mixed $text): bool { return p\Ctype::ctype_space($text); }
+}
+if (!function_exists('ctype_upper')) {
+ function ctype_upper(mixed $text): bool { return p\Ctype::ctype_upper($text); }
+}
+if (!function_exists('ctype_xdigit')) {
+ function ctype_xdigit(mixed $text): bool { return p\Ctype::ctype_xdigit($text); }
+}
diff --git a/system/backend/php/vendor/symfony/polyfill-ctype/composer.json b/system/backend/php/vendor/symfony/polyfill-ctype/composer.json
index c24e20ca75f..1b3efff5725 100644
--- a/system/backend/php/vendor/symfony/polyfill-ctype/composer.json
+++ b/system/backend/php/vendor/symfony/polyfill-ctype/composer.json
@@ -16,7 +16,10 @@
}
],
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-ctype": "*"
},
"autoload": {
"psr-4": { "Symfony\\Polyfill\\Ctype\\": "" },
@@ -28,7 +31,11 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
}
}
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/Mbstring.php b/system/backend/php/vendor/symfony/polyfill-mbstring/Mbstring.php
index a5e4a8fde4b..bce5c4a84ab 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/Mbstring.php
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/Mbstring.php
@@ -35,6 +35,7 @@
* - mb_strlen - Get string length
* - mb_strpos - Find position of first occurrence of string in a string
* - mb_strrpos - Find position of last occurrence of a string in a string
+ * - mb_str_split - Convert a string to an array
* - mb_strtolower - Make a string lowercase
* - mb_strtoupper - Make a string uppercase
* - mb_substitute_character - Set/Get substitution character
@@ -66,19 +67,20 @@
*/
final class Mbstring
{
- const MB_CASE_FOLD = PHP_INT_MAX;
+ public const MB_CASE_FOLD = \PHP_INT_MAX;
- private static $encodingList = array('ASCII', 'UTF-8');
+ private const CASE_FOLD = [
+ ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"],
+ ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'],
+ ];
+
+ private static $encodingList = ['ASCII', 'UTF-8'];
private static $language = 'neutral';
private static $internalEncoding = 'UTF-8';
- private static $caseFold = array(
- array('µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"),
- array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'),
- );
public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
{
- if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) {
+ if (\is_array($fromEncoding) || (null !== $fromEncoding && false !== strpos($fromEncoding, ','))) {
$fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
} else {
$fromEncoding = self::getEncoding($fromEncoding);
@@ -103,24 +105,22 @@ public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null
$s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
}
- return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s);
+ return preg_replace_callback('/[\x80-\xFF]+/', [__CLASS__, 'html_encoding_callback'], $s);
}
if ('HTML-ENTITIES' === $fromEncoding) {
- $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
+ $s = html_entity_decode($s, \ENT_COMPAT, 'UTF-8');
$fromEncoding = 'UTF-8';
}
return iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
}
- public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null)
+ public static function mb_convert_variables($toEncoding, $fromEncoding, &...$vars)
{
- $vars = array(&$a, &$b, &$c, &$d, &$e, &$f);
-
$ok = true;
array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
- if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
+ if (false === $v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
$ok = false;
}
});
@@ -135,23 +135,23 @@ public static function mb_decode_mimeheader($s)
public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
{
- trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING);
+ trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING);
}
public static function mb_decode_numericentity($s, $convmap, $encoding = null)
{
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
+ trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
- if (!\is_array($convmap) || !$convmap) {
+ if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
return false;
}
if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return ''; // Instead of null (cf. mb_encode_numericentity).
}
@@ -184,7 +184,7 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
$c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1];
for ($i = 0; $i < $cnt; $i += 4) {
if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
- return Mbstring::mb_chr($c - $convmap[$i + 2]);
+ return self::mb_chr($c - $convmap[$i + 2]);
}
}
@@ -200,24 +200,24 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
{
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
+ trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
- if (!\is_array($convmap) || !$convmap) {
+ if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
return false;
}
if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null; // Instead of '' (cf. mb_decode_numericentity).
}
if (null !== $is_hex && !\is_scalar($is_hex)) {
- trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
+ trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
@@ -238,7 +238,7 @@ public static function mb_encode_numericentity($s, $convmap, $encoding = null, $
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
}
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
+ static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4];
$cnt = floor(\count($convmap) / 4) * 4;
$i = 0;
@@ -286,14 +286,14 @@ public static function mb_convert_case($s, $mode, $encoding = null)
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
}
- if (MB_CASE_TITLE == $mode) {
+ if (\MB_CASE_TITLE == $mode) {
static $titleRegexp = null;
if (null === $titleRegexp) {
$titleRegexp = self::getData('titleCaseRegexp');
}
- $s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s);
+ $s = preg_replace_callback($titleRegexp, [__CLASS__, 'title_case'], $s);
} else {
- if (MB_CASE_UPPER == $mode) {
+ if (\MB_CASE_UPPER == $mode) {
static $upper = null;
if (null === $upper) {
$upper = self::getData('upperCase');
@@ -301,7 +301,7 @@ public static function mb_convert_case($s, $mode, $encoding = null)
$map = $upper;
} else {
if (self::MB_CASE_FOLD === $mode) {
- $s = str_replace(self::$caseFold[0], self::$caseFold[1], $s);
+ $s = str_replace(self::CASE_FOLD[0], self::CASE_FOLD[1], $s);
}
static $lower = null;
@@ -311,7 +311,7 @@ public static function mb_convert_case($s, $mode, $encoding = null)
$map = $lower;
}
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
+ static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4];
$i = 0;
$len = \strlen($s);
@@ -352,15 +352,19 @@ public static function mb_internal_encoding($encoding = null)
return self::$internalEncoding;
}
- $encoding = self::getEncoding($encoding);
+ $normalizedEncoding = self::getEncoding($encoding);
- if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) {
- self::$internalEncoding = $encoding;
+ if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, ' ')) {
+ self::$internalEncoding = $normalizedEncoding;
return true;
}
- return false;
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError(sprintf('Argument #1 ($encoding) must be a valid encoding, "%s" given', $encoding));
}
public static function mb_language($lang = null)
@@ -369,20 +373,24 @@ public static function mb_language($lang = null)
return self::$language;
}
- switch ($lang = strtolower($lang)) {
+ switch ($normalizedLang = strtolower($lang)) {
case 'uni':
case 'neutral':
- self::$language = $lang;
+ self::$language = $normalizedLang;
return true;
}
- return false;
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError(sprintf('Argument #1 ($language) must be a valid language, "%s" given', $lang));
}
public static function mb_list_encodings()
{
- return array('UTF-8');
+ return ['UTF-8'];
}
public static function mb_encoding_aliases($encoding)
@@ -390,7 +398,7 @@ public static function mb_encoding_aliases($encoding)
switch (strtoupper($encoding)) {
case 'UTF8':
case 'UTF-8':
- return array('utf8');
+ return ['utf8'];
}
return false;
@@ -405,7 +413,7 @@ public static function mb_check_encoding($var = null, $encoding = null)
$encoding = self::$internalEncoding;
}
- return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
+ return self::mb_detect_encoding($var, [$encoding]) || false !== @iconv($encoding, $encoding, $var);
}
public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
@@ -492,9 +500,13 @@ public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = nu
$needle = (string) $needle;
if ('' === $needle) {
- trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING);
+ if (80000 > \PHP_VERSION_ID) {
+ trigger_error(__METHOD__.': Empty delimiter', \E_USER_WARNING);
- return false;
+ return false;
+ }
+
+ return 0;
}
return iconv_strpos($haystack, $needle, $offset, $encoding);
@@ -511,42 +523,98 @@ public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = n
$offset = 0;
} elseif ($offset = (int) $offset) {
if ($offset < 0) {
- $haystack = self::mb_substr($haystack, 0, $offset, $encoding);
+ if (0 > $offset += self::mb_strlen($needle)) {
+ $haystack = self::mb_substr($haystack, 0, $offset, $encoding);
+ }
$offset = 0;
} else {
$haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
}
}
- $pos = iconv_strrpos($haystack, $needle, $encoding);
+ $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
+ ? iconv_strrpos($haystack, $needle, $encoding)
+ : self::mb_strlen($haystack, $encoding);
return false !== $pos ? $offset + $pos : false;
}
+ public static function mb_str_split($string, $split_length = 1, $encoding = null)
+ {
+ if (null !== $string && !\is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) {
+ trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING);
+
+ return null;
+ }
+
+ if (1 > $split_length = (int) $split_length) {
+ if (80000 > \PHP_VERSION_ID) {
+ trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING);
+
+ return false;
+ }
+
+ throw new \ValueError('Argument #2 ($length) must be greater than 0');
+ }
+
+ if (null === $encoding) {
+ $encoding = mb_internal_encoding();
+ }
+
+ if ('UTF-8' === $encoding = self::getEncoding($encoding)) {
+ $rx = '/(';
+ while (65535 < $split_length) {
+ $rx .= '.{65535}';
+ $split_length -= 65535;
+ }
+ $rx .= '.{'.$split_length.'})/us';
+
+ return preg_split($rx, $string, -1, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY);
+ }
+
+ $result = [];
+ $length = mb_strlen($string, $encoding);
+
+ for ($i = 0; $i < $length; $i += $split_length) {
+ $result[] = mb_substr($string, $i, $split_length, $encoding);
+ }
+
+ return $result;
+ }
+
public static function mb_strtolower($s, $encoding = null)
{
- return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
+ return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding);
}
public static function mb_strtoupper($s, $encoding = null)
{
- return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
+ return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding);
}
public static function mb_substitute_character($c = null)
{
+ if (null === $c) {
+ return 'none';
+ }
if (0 === strcasecmp($c, 'none')) {
return true;
}
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+ if (\is_int($c) || 'long' === $c || 'entity' === $c) {
+ return false;
+ }
- return null !== $c ? false : 'none';
+ throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint');
}
public static function mb_substr($s, $start, $length = null, $encoding = null)
{
$encoding = self::getEncoding($encoding);
if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return substr($s, $start, null === $length ? 2147483647 : $length);
+ return (string) substr($s, $start, null === $length ? 2147483647 : $length);
}
if ($start < 0) {
@@ -587,10 +655,11 @@ public static function mb_strrchr($haystack, $needle, $part = false, $encoding =
{
$encoding = self::getEncoding($encoding);
if ('CP850' === $encoding || 'ASCII' === $encoding) {
- return strrchr($haystack, $needle, $part);
+ $pos = strrpos($haystack, $needle);
+ } else {
+ $needle = self::mb_substr($needle, 0, 1, $encoding);
+ $pos = iconv_strrpos($haystack, $needle, $encoding);
}
- $needle = self::mb_substr($needle, 0, 1, $encoding);
- $pos = iconv_strrpos($haystack, $needle, $encoding);
return self::getSubpart($pos, $part, $haystack, $encoding);
}
@@ -626,7 +695,7 @@ public static function mb_strstr($haystack, $needle, $part = false, $encoding =
public static function mb_get_info($type = 'all')
{
- $info = array(
+ $info = [
'internal_encoding' => self::$internalEncoding,
'http_output' => 'pass',
'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
@@ -641,7 +710,7 @@ public static function mb_get_info($type = 'all')
'detect_order' => self::$encodingList,
'substitute_character' => 'none',
'strict_detection' => 'Off',
- );
+ ];
if ('all' === $type) {
return $info;
@@ -745,7 +814,7 @@ private static function html_encoding_callback(array $m)
{
$i = 1;
$entities = '';
- $m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
+ $m = unpack('C*', htmlentities($m[0], \ENT_COMPAT, 'UTF-8'));
while (isset($m[$i])) {
if (0x80 > $m[$i]) {
@@ -768,7 +837,7 @@ private static function html_encoding_callback(array $m)
private static function title_case(array $s)
{
- return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
+ return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8');
}
private static function getData($file)
@@ -786,11 +855,16 @@ private static function getEncoding($encoding)
return self::$internalEncoding;
}
+ if ('UTF-8' === $encoding) {
+ return 'UTF-8';
+ }
+
$encoding = strtoupper($encoding);
if ('8BIT' === $encoding || 'BINARY' === $encoding) {
return 'CP850';
}
+
if ('UTF8' === $encoding) {
return 'UTF-8';
}
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/README.md b/system/backend/php/vendor/symfony/polyfill-mbstring/README.md
index 342e8286dbf..478b40da25e 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/README.md
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/README.md
@@ -2,10 +2,10 @@ Symfony Polyfill / Mbstring
===========================
This component provides a partial, native PHP implementation for the
-[Mbstring](http://php.net/mbstring) extension.
+[Mbstring](https://php.net/mbstring) extension.
More information can be found in the
-[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
+[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
License
=======
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
index e6fbfa64e62..fac60b081a1 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
@@ -1,6 +1,6 @@
'a',
'B' => 'b',
'C' => 'c',
@@ -81,7 +81,7 @@
'Ī' => 'ī',
'Ĭ' => 'ĭ',
'Į' => 'į',
- 'İ' => 'i',
+ 'İ' => 'i̇',
'IJ' => 'ij',
'Ĵ' => 'ĵ',
'Ķ' => 'ķ',
@@ -510,6 +510,138 @@
'Ⴥ' => 'ⴥ',
'Ⴧ' => 'ⴧ',
'Ⴭ' => 'ⴭ',
+ 'Ꭰ' => 'ꭰ',
+ 'Ꭱ' => 'ꭱ',
+ 'Ꭲ' => 'ꭲ',
+ 'Ꭳ' => 'ꭳ',
+ 'Ꭴ' => 'ꭴ',
+ 'Ꭵ' => 'ꭵ',
+ 'Ꭶ' => 'ꭶ',
+ 'Ꭷ' => 'ꭷ',
+ 'Ꭸ' => 'ꭸ',
+ 'Ꭹ' => 'ꭹ',
+ 'Ꭺ' => 'ꭺ',
+ 'Ꭻ' => 'ꭻ',
+ 'Ꭼ' => 'ꭼ',
+ 'Ꭽ' => 'ꭽ',
+ 'Ꭾ' => 'ꭾ',
+ 'Ꭿ' => 'ꭿ',
+ 'Ꮀ' => 'ꮀ',
+ 'Ꮁ' => 'ꮁ',
+ 'Ꮂ' => 'ꮂ',
+ 'Ꮃ' => 'ꮃ',
+ 'Ꮄ' => 'ꮄ',
+ 'Ꮅ' => 'ꮅ',
+ 'Ꮆ' => 'ꮆ',
+ 'Ꮇ' => 'ꮇ',
+ 'Ꮈ' => 'ꮈ',
+ 'Ꮉ' => 'ꮉ',
+ 'Ꮊ' => 'ꮊ',
+ 'Ꮋ' => 'ꮋ',
+ 'Ꮌ' => 'ꮌ',
+ 'Ꮍ' => 'ꮍ',
+ 'Ꮎ' => 'ꮎ',
+ 'Ꮏ' => 'ꮏ',
+ 'Ꮐ' => 'ꮐ',
+ 'Ꮑ' => 'ꮑ',
+ 'Ꮒ' => 'ꮒ',
+ 'Ꮓ' => 'ꮓ',
+ 'Ꮔ' => 'ꮔ',
+ 'Ꮕ' => 'ꮕ',
+ 'Ꮖ' => 'ꮖ',
+ 'Ꮗ' => 'ꮗ',
+ 'Ꮘ' => 'ꮘ',
+ 'Ꮙ' => 'ꮙ',
+ 'Ꮚ' => 'ꮚ',
+ 'Ꮛ' => 'ꮛ',
+ 'Ꮜ' => 'ꮜ',
+ 'Ꮝ' => 'ꮝ',
+ 'Ꮞ' => 'ꮞ',
+ 'Ꮟ' => 'ꮟ',
+ 'Ꮠ' => 'ꮠ',
+ 'Ꮡ' => 'ꮡ',
+ 'Ꮢ' => 'ꮢ',
+ 'Ꮣ' => 'ꮣ',
+ 'Ꮤ' => 'ꮤ',
+ 'Ꮥ' => 'ꮥ',
+ 'Ꮦ' => 'ꮦ',
+ 'Ꮧ' => 'ꮧ',
+ 'Ꮨ' => 'ꮨ',
+ 'Ꮩ' => 'ꮩ',
+ 'Ꮪ' => 'ꮪ',
+ 'Ꮫ' => 'ꮫ',
+ 'Ꮬ' => 'ꮬ',
+ 'Ꮭ' => 'ꮭ',
+ 'Ꮮ' => 'ꮮ',
+ 'Ꮯ' => 'ꮯ',
+ 'Ꮰ' => 'ꮰ',
+ 'Ꮱ' => 'ꮱ',
+ 'Ꮲ' => 'ꮲ',
+ 'Ꮳ' => 'ꮳ',
+ 'Ꮴ' => 'ꮴ',
+ 'Ꮵ' => 'ꮵ',
+ 'Ꮶ' => 'ꮶ',
+ 'Ꮷ' => 'ꮷ',
+ 'Ꮸ' => 'ꮸ',
+ 'Ꮹ' => 'ꮹ',
+ 'Ꮺ' => 'ꮺ',
+ 'Ꮻ' => 'ꮻ',
+ 'Ꮼ' => 'ꮼ',
+ 'Ꮽ' => 'ꮽ',
+ 'Ꮾ' => 'ꮾ',
+ 'Ꮿ' => 'ꮿ',
+ 'Ᏸ' => 'ᏸ',
+ 'Ᏹ' => 'ᏹ',
+ 'Ᏺ' => 'ᏺ',
+ 'Ᏻ' => 'ᏻ',
+ 'Ᏼ' => 'ᏼ',
+ 'Ᏽ' => 'ᏽ',
+ 'Ა' => 'ა',
+ 'Ბ' => 'ბ',
+ 'Გ' => 'გ',
+ 'Დ' => 'დ',
+ 'Ე' => 'ე',
+ 'Ვ' => 'ვ',
+ 'Ზ' => 'ზ',
+ 'Თ' => 'თ',
+ 'Ი' => 'ი',
+ 'Კ' => 'კ',
+ 'Ლ' => 'ლ',
+ 'Მ' => 'მ',
+ 'Ნ' => 'ნ',
+ 'Ო' => 'ო',
+ 'Პ' => 'პ',
+ 'Ჟ' => 'ჟ',
+ 'Რ' => 'რ',
+ 'Ს' => 'ს',
+ 'Ტ' => 'ტ',
+ 'Უ' => 'უ',
+ 'Ფ' => 'ფ',
+ 'Ქ' => 'ქ',
+ 'Ღ' => 'ღ',
+ 'Ყ' => 'ყ',
+ 'Შ' => 'შ',
+ 'Ჩ' => 'ჩ',
+ 'Ც' => 'ც',
+ 'Ძ' => 'ძ',
+ 'Წ' => 'წ',
+ 'Ჭ' => 'ჭ',
+ 'Ხ' => 'ხ',
+ 'Ჯ' => 'ჯ',
+ 'Ჰ' => 'ჰ',
+ 'Ჱ' => 'ჱ',
+ 'Ჲ' => 'ჲ',
+ 'Ჳ' => 'ჳ',
+ 'Ჴ' => 'ჴ',
+ 'Ჵ' => 'ჵ',
+ 'Ჶ' => 'ჶ',
+ 'Ჷ' => 'ჷ',
+ 'Ჸ' => 'ჸ',
+ 'Ჹ' => 'ჹ',
+ 'Ჺ' => 'ჺ',
+ 'Ჽ' => 'ჽ',
+ 'Ჾ' => 'ჾ',
+ 'Ჿ' => 'ჿ',
'Ḁ' => 'ḁ',
'Ḃ' => 'ḃ',
'Ḅ' => 'ḅ',
@@ -993,8 +1125,24 @@
'Ɜ' => 'ɜ',
'Ɡ' => 'ɡ',
'Ɬ' => 'ɬ',
+ 'Ɪ' => 'ɪ',
'Ʞ' => 'ʞ',
'Ʇ' => 'ʇ',
+ 'Ʝ' => 'ʝ',
+ 'Ꭓ' => 'ꭓ',
+ 'Ꞵ' => 'ꞵ',
+ 'Ꞷ' => 'ꞷ',
+ 'Ꞹ' => 'ꞹ',
+ 'Ꞻ' => 'ꞻ',
+ 'Ꞽ' => 'ꞽ',
+ 'Ꞿ' => 'ꞿ',
+ 'Ꟃ' => 'ꟃ',
+ 'Ꞔ' => 'ꞔ',
+ 'Ʂ' => 'ʂ',
+ 'Ᶎ' => 'ᶎ',
+ 'Ꟈ' => 'ꟈ',
+ 'Ꟊ' => 'ꟊ',
+ 'Ꟶ' => 'ꟶ',
'A' => 'a',
'B' => 'b',
'C' => 'c',
@@ -1061,6 +1209,93 @@
'𐐥' => '𐑍',
'𐐦' => '𐑎',
'𐐧' => '𐑏',
+ '𐒰' => '𐓘',
+ '𐒱' => '𐓙',
+ '𐒲' => '𐓚',
+ '𐒳' => '𐓛',
+ '𐒴' => '𐓜',
+ '𐒵' => '𐓝',
+ '𐒶' => '𐓞',
+ '𐒷' => '𐓟',
+ '𐒸' => '𐓠',
+ '𐒹' => '𐓡',
+ '𐒺' => '𐓢',
+ '𐒻' => '𐓣',
+ '𐒼' => '𐓤',
+ '𐒽' => '𐓥',
+ '𐒾' => '𐓦',
+ '𐒿' => '𐓧',
+ '𐓀' => '𐓨',
+ '𐓁' => '𐓩',
+ '𐓂' => '𐓪',
+ '𐓃' => '𐓫',
+ '𐓄' => '𐓬',
+ '𐓅' => '𐓭',
+ '𐓆' => '𐓮',
+ '𐓇' => '𐓯',
+ '𐓈' => '𐓰',
+ '𐓉' => '𐓱',
+ '𐓊' => '𐓲',
+ '𐓋' => '𐓳',
+ '𐓌' => '𐓴',
+ '𐓍' => '𐓵',
+ '𐓎' => '𐓶',
+ '𐓏' => '𐓷',
+ '𐓐' => '𐓸',
+ '𐓑' => '𐓹',
+ '𐓒' => '𐓺',
+ '𐓓' => '𐓻',
+ '𐲀' => '𐳀',
+ '𐲁' => '𐳁',
+ '𐲂' => '𐳂',
+ '𐲃' => '𐳃',
+ '𐲄' => '𐳄',
+ '𐲅' => '𐳅',
+ '𐲆' => '𐳆',
+ '𐲇' => '𐳇',
+ '𐲈' => '𐳈',
+ '𐲉' => '𐳉',
+ '𐲊' => '𐳊',
+ '𐲋' => '𐳋',
+ '𐲌' => '𐳌',
+ '𐲍' => '𐳍',
+ '𐲎' => '𐳎',
+ '𐲏' => '𐳏',
+ '𐲐' => '𐳐',
+ '𐲑' => '𐳑',
+ '𐲒' => '𐳒',
+ '𐲓' => '𐳓',
+ '𐲔' => '𐳔',
+ '𐲕' => '𐳕',
+ '𐲖' => '𐳖',
+ '𐲗' => '𐳗',
+ '𐲘' => '𐳘',
+ '𐲙' => '𐳙',
+ '𐲚' => '𐳚',
+ '𐲛' => '𐳛',
+ '𐲜' => '𐳜',
+ '𐲝' => '𐳝',
+ '𐲞' => '𐳞',
+ '𐲟' => '𐳟',
+ '𐲠' => '𐳠',
+ '𐲡' => '𐳡',
+ '𐲢' => '𐳢',
+ '𐲣' => '𐳣',
+ '𐲤' => '𐳤',
+ '𐲥' => '𐳥',
+ '𐲦' => '𐳦',
+ '𐲧' => '𐳧',
+ '𐲨' => '𐳨',
+ '𐲩' => '𐳩',
+ '𐲪' => '𐳪',
+ '𐲫' => '𐳫',
+ '𐲬' => '𐳬',
+ '𐲭' => '𐳭',
+ '𐲮' => '𐳮',
+ '𐲯' => '𐳯',
+ '𐲰' => '𐳰',
+ '𐲱' => '𐳱',
+ '𐲲' => '𐳲',
'𑢠' => '𑣀',
'𑢡' => '𑣁',
'𑢢' => '𑣂',
@@ -1093,4 +1328,70 @@
'𑢽' => '𑣝',
'𑢾' => '𑣞',
'𑢿' => '𑣟',
+ '𖹀' => '𖹠',
+ '𖹁' => '𖹡',
+ '𖹂' => '𖹢',
+ '𖹃' => '𖹣',
+ '𖹄' => '𖹤',
+ '𖹅' => '𖹥',
+ '𖹆' => '𖹦',
+ '𖹇' => '𖹧',
+ '𖹈' => '𖹨',
+ '𖹉' => '𖹩',
+ '𖹊' => '𖹪',
+ '𖹋' => '𖹫',
+ '𖹌' => '𖹬',
+ '𖹍' => '𖹭',
+ '𖹎' => '𖹮',
+ '𖹏' => '𖹯',
+ '𖹐' => '𖹰',
+ '𖹑' => '𖹱',
+ '𖹒' => '𖹲',
+ '𖹓' => '𖹳',
+ '𖹔' => '𖹴',
+ '𖹕' => '𖹵',
+ '𖹖' => '𖹶',
+ '𖹗' => '𖹷',
+ '𖹘' => '𖹸',
+ '𖹙' => '𖹹',
+ '𖹚' => '𖹺',
+ '𖹛' => '𖹻',
+ '𖹜' => '𖹼',
+ '𖹝' => '𖹽',
+ '𖹞' => '𖹾',
+ '𖹟' => '𖹿',
+ '𞤀' => '𞤢',
+ '𞤁' => '𞤣',
+ '𞤂' => '𞤤',
+ '𞤃' => '𞤥',
+ '𞤄' => '𞤦',
+ '𞤅' => '𞤧',
+ '𞤆' => '𞤨',
+ '𞤇' => '𞤩',
+ '𞤈' => '𞤪',
+ '𞤉' => '𞤫',
+ '𞤊' => '𞤬',
+ '𞤋' => '𞤭',
+ '𞤌' => '𞤮',
+ '𞤍' => '𞤯',
+ '𞤎' => '𞤰',
+ '𞤏' => '𞤱',
+ '𞤐' => '𞤲',
+ '𞤑' => '𞤳',
+ '𞤒' => '𞤴',
+ '𞤓' => '𞤵',
+ '𞤔' => '𞤶',
+ '𞤕' => '𞤷',
+ '𞤖' => '𞤸',
+ '𞤗' => '𞤹',
+ '𞤘' => '𞤺',
+ '𞤙' => '𞤻',
+ '𞤚' => '𞤼',
+ '𞤛' => '𞤽',
+ '𞤜' => '𞤾',
+ '𞤝' => '𞤿',
+ '𞤞' => '𞥀',
+ '𞤟' => '𞥁',
+ '𞤠' => '𞥂',
+ '𞤡' => '𞥃',
);
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php b/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
index b8103b2e808..56b9cb85207 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
@@ -1,6 +1,6 @@
'A',
'b' => 'B',
'c' => 'C',
@@ -225,6 +225,7 @@
'ɦ' => 'Ɦ',
'ɨ' => 'Ɨ',
'ɩ' => 'Ɩ',
+ 'ɪ' => 'Ɪ',
'ɫ' => 'Ɫ',
'ɬ' => 'Ɬ',
'ɯ' => 'Ɯ',
@@ -233,6 +234,7 @@
'ɵ' => 'Ɵ',
'ɽ' => 'Ɽ',
'ʀ' => 'Ʀ',
+ 'ʂ' => 'Ʂ',
'ʃ' => 'Ʃ',
'ʇ' => 'Ʇ',
'ʈ' => 'Ʈ',
@@ -241,6 +243,7 @@
'ʋ' => 'Ʋ',
'ʌ' => 'Ʌ',
'ʒ' => 'Ʒ',
+ 'ʝ' => 'Ʝ',
'ʞ' => 'Ʞ',
'ͅ' => 'Ι',
'ͱ' => 'Ͱ',
@@ -493,8 +496,70 @@
'ք' => 'Ք',
'օ' => 'Օ',
'ֆ' => 'Ֆ',
+ 'ა' => 'Ა',
+ 'ბ' => 'Ბ',
+ 'გ' => 'Გ',
+ 'დ' => 'Დ',
+ 'ე' => 'Ე',
+ 'ვ' => 'Ვ',
+ 'ზ' => 'Ზ',
+ 'თ' => 'Თ',
+ 'ი' => 'Ი',
+ 'კ' => 'Კ',
+ 'ლ' => 'Ლ',
+ 'მ' => 'Მ',
+ 'ნ' => 'Ნ',
+ 'ო' => 'Ო',
+ 'პ' => 'Პ',
+ 'ჟ' => 'Ჟ',
+ 'რ' => 'Რ',
+ 'ს' => 'Ს',
+ 'ტ' => 'Ტ',
+ 'უ' => 'Უ',
+ 'ფ' => 'Ფ',
+ 'ქ' => 'Ქ',
+ 'ღ' => 'Ღ',
+ 'ყ' => 'Ყ',
+ 'შ' => 'Შ',
+ 'ჩ' => 'Ჩ',
+ 'ც' => 'Ც',
+ 'ძ' => 'Ძ',
+ 'წ' => 'Წ',
+ 'ჭ' => 'Ჭ',
+ 'ხ' => 'Ხ',
+ 'ჯ' => 'Ჯ',
+ 'ჰ' => 'Ჰ',
+ 'ჱ' => 'Ჱ',
+ 'ჲ' => 'Ჲ',
+ 'ჳ' => 'Ჳ',
+ 'ჴ' => 'Ჴ',
+ 'ჵ' => 'Ჵ',
+ 'ჶ' => 'Ჶ',
+ 'ჷ' => 'Ჷ',
+ 'ჸ' => 'Ჸ',
+ 'ჹ' => 'Ჹ',
+ 'ჺ' => 'Ჺ',
+ 'ჽ' => 'Ჽ',
+ 'ჾ' => 'Ჾ',
+ 'ჿ' => 'Ჿ',
+ 'ᏸ' => 'Ᏸ',
+ 'ᏹ' => 'Ᏹ',
+ 'ᏺ' => 'Ᏺ',
+ 'ᏻ' => 'Ᏻ',
+ 'ᏼ' => 'Ᏼ',
+ 'ᏽ' => 'Ᏽ',
+ 'ᲀ' => 'В',
+ 'ᲁ' => 'Д',
+ 'ᲂ' => 'О',
+ 'ᲃ' => 'С',
+ 'ᲄ' => 'Т',
+ 'ᲅ' => 'Т',
+ 'ᲆ' => 'Ъ',
+ 'ᲇ' => 'Ѣ',
+ 'ᲈ' => 'Ꙋ',
'ᵹ' => 'Ᵹ',
'ᵽ' => 'Ᵽ',
+ 'ᶎ' => 'Ᶎ',
'ḁ' => 'Ḁ',
'ḃ' => 'Ḃ',
'ḅ' => 'Ḅ',
@@ -681,41 +746,41 @@
'ύ' => 'Ύ',
'ὼ' => 'Ὼ',
'ώ' => 'Ώ',
- 'ᾀ' => 'ᾈ',
- 'ᾁ' => 'ᾉ',
- 'ᾂ' => 'ᾊ',
- 'ᾃ' => 'ᾋ',
- 'ᾄ' => 'ᾌ',
- 'ᾅ' => 'ᾍ',
- 'ᾆ' => 'ᾎ',
- 'ᾇ' => 'ᾏ',
- 'ᾐ' => 'ᾘ',
- 'ᾑ' => 'ᾙ',
- 'ᾒ' => 'ᾚ',
- 'ᾓ' => 'ᾛ',
- 'ᾔ' => 'ᾜ',
- 'ᾕ' => 'ᾝ',
- 'ᾖ' => 'ᾞ',
- 'ᾗ' => 'ᾟ',
- 'ᾠ' => 'ᾨ',
- 'ᾡ' => 'ᾩ',
- 'ᾢ' => 'ᾪ',
- 'ᾣ' => 'ᾫ',
- 'ᾤ' => 'ᾬ',
- 'ᾥ' => 'ᾭ',
- 'ᾦ' => 'ᾮ',
- 'ᾧ' => 'ᾯ',
+ 'ᾀ' => 'ἈΙ',
+ 'ᾁ' => 'ἉΙ',
+ 'ᾂ' => 'ἊΙ',
+ 'ᾃ' => 'ἋΙ',
+ 'ᾄ' => 'ἌΙ',
+ 'ᾅ' => 'ἍΙ',
+ 'ᾆ' => 'ἎΙ',
+ 'ᾇ' => 'ἏΙ',
+ 'ᾐ' => 'ἨΙ',
+ 'ᾑ' => 'ἩΙ',
+ 'ᾒ' => 'ἪΙ',
+ 'ᾓ' => 'ἫΙ',
+ 'ᾔ' => 'ἬΙ',
+ 'ᾕ' => 'ἭΙ',
+ 'ᾖ' => 'ἮΙ',
+ 'ᾗ' => 'ἯΙ',
+ 'ᾠ' => 'ὨΙ',
+ 'ᾡ' => 'ὩΙ',
+ 'ᾢ' => 'ὪΙ',
+ 'ᾣ' => 'ὫΙ',
+ 'ᾤ' => 'ὬΙ',
+ 'ᾥ' => 'ὭΙ',
+ 'ᾦ' => 'ὮΙ',
+ 'ᾧ' => 'ὯΙ',
'ᾰ' => 'Ᾰ',
'ᾱ' => 'Ᾱ',
- 'ᾳ' => 'ᾼ',
+ 'ᾳ' => 'ΑΙ',
'ι' => 'Ι',
- 'ῃ' => 'ῌ',
+ 'ῃ' => 'ΗΙ',
'ῐ' => 'Ῐ',
'ῑ' => 'Ῑ',
'ῠ' => 'Ῠ',
'ῡ' => 'Ῡ',
'ῥ' => 'Ῥ',
- 'ῳ' => 'ῼ',
+ 'ῳ' => 'ΩΙ',
'ⅎ' => 'Ⅎ',
'ⅰ' => 'Ⅰ',
'ⅱ' => 'Ⅱ',
@@ -993,6 +1058,7 @@
'ꞌ' => 'Ꞌ',
'ꞑ' => 'Ꞑ',
'ꞓ' => 'Ꞓ',
+ 'ꞔ' => 'Ꞔ',
'ꞗ' => 'Ꞗ',
'ꞙ' => 'Ꞙ',
'ꞛ' => 'Ꞛ',
@@ -1003,6 +1069,97 @@
'ꞥ' => 'Ꞥ',
'ꞧ' => 'Ꞧ',
'ꞩ' => 'Ꞩ',
+ 'ꞵ' => 'Ꞵ',
+ 'ꞷ' => 'Ꞷ',
+ 'ꞹ' => 'Ꞹ',
+ 'ꞻ' => 'Ꞻ',
+ 'ꞽ' => 'Ꞽ',
+ 'ꞿ' => 'Ꞿ',
+ 'ꟃ' => 'Ꟃ',
+ 'ꟈ' => 'Ꟈ',
+ 'ꟊ' => 'Ꟊ',
+ 'ꟶ' => 'Ꟶ',
+ 'ꭓ' => 'Ꭓ',
+ 'ꭰ' => 'Ꭰ',
+ 'ꭱ' => 'Ꭱ',
+ 'ꭲ' => 'Ꭲ',
+ 'ꭳ' => 'Ꭳ',
+ 'ꭴ' => 'Ꭴ',
+ 'ꭵ' => 'Ꭵ',
+ 'ꭶ' => 'Ꭶ',
+ 'ꭷ' => 'Ꭷ',
+ 'ꭸ' => 'Ꭸ',
+ 'ꭹ' => 'Ꭹ',
+ 'ꭺ' => 'Ꭺ',
+ 'ꭻ' => 'Ꭻ',
+ 'ꭼ' => 'Ꭼ',
+ 'ꭽ' => 'Ꭽ',
+ 'ꭾ' => 'Ꭾ',
+ 'ꭿ' => 'Ꭿ',
+ 'ꮀ' => 'Ꮀ',
+ 'ꮁ' => 'Ꮁ',
+ 'ꮂ' => 'Ꮂ',
+ 'ꮃ' => 'Ꮃ',
+ 'ꮄ' => 'Ꮄ',
+ 'ꮅ' => 'Ꮅ',
+ 'ꮆ' => 'Ꮆ',
+ 'ꮇ' => 'Ꮇ',
+ 'ꮈ' => 'Ꮈ',
+ 'ꮉ' => 'Ꮉ',
+ 'ꮊ' => 'Ꮊ',
+ 'ꮋ' => 'Ꮋ',
+ 'ꮌ' => 'Ꮌ',
+ 'ꮍ' => 'Ꮍ',
+ 'ꮎ' => 'Ꮎ',
+ 'ꮏ' => 'Ꮏ',
+ 'ꮐ' => 'Ꮐ',
+ 'ꮑ' => 'Ꮑ',
+ 'ꮒ' => 'Ꮒ',
+ 'ꮓ' => 'Ꮓ',
+ 'ꮔ' => 'Ꮔ',
+ 'ꮕ' => 'Ꮕ',
+ 'ꮖ' => 'Ꮖ',
+ 'ꮗ' => 'Ꮗ',
+ 'ꮘ' => 'Ꮘ',
+ 'ꮙ' => 'Ꮙ',
+ 'ꮚ' => 'Ꮚ',
+ 'ꮛ' => 'Ꮛ',
+ 'ꮜ' => 'Ꮜ',
+ 'ꮝ' => 'Ꮝ',
+ 'ꮞ' => 'Ꮞ',
+ 'ꮟ' => 'Ꮟ',
+ 'ꮠ' => 'Ꮠ',
+ 'ꮡ' => 'Ꮡ',
+ 'ꮢ' => 'Ꮢ',
+ 'ꮣ' => 'Ꮣ',
+ 'ꮤ' => 'Ꮤ',
+ 'ꮥ' => 'Ꮥ',
+ 'ꮦ' => 'Ꮦ',
+ 'ꮧ' => 'Ꮧ',
+ 'ꮨ' => 'Ꮨ',
+ 'ꮩ' => 'Ꮩ',
+ 'ꮪ' => 'Ꮪ',
+ 'ꮫ' => 'Ꮫ',
+ 'ꮬ' => 'Ꮬ',
+ 'ꮭ' => 'Ꮭ',
+ 'ꮮ' => 'Ꮮ',
+ 'ꮯ' => 'Ꮯ',
+ 'ꮰ' => 'Ꮰ',
+ 'ꮱ' => 'Ꮱ',
+ 'ꮲ' => 'Ꮲ',
+ 'ꮳ' => 'Ꮳ',
+ 'ꮴ' => 'Ꮴ',
+ 'ꮵ' => 'Ꮵ',
+ 'ꮶ' => 'Ꮶ',
+ 'ꮷ' => 'Ꮷ',
+ 'ꮸ' => 'Ꮸ',
+ 'ꮹ' => 'Ꮹ',
+ 'ꮺ' => 'Ꮺ',
+ 'ꮻ' => 'Ꮻ',
+ 'ꮼ' => 'Ꮼ',
+ 'ꮽ' => 'Ꮽ',
+ 'ꮾ' => 'Ꮾ',
+ 'ꮿ' => 'Ꮿ',
'a' => 'A',
'b' => 'B',
'c' => 'C',
@@ -1069,6 +1226,93 @@
'𐑍' => '𐐥',
'𐑎' => '𐐦',
'𐑏' => '𐐧',
+ '𐓘' => '𐒰',
+ '𐓙' => '𐒱',
+ '𐓚' => '𐒲',
+ '𐓛' => '𐒳',
+ '𐓜' => '𐒴',
+ '𐓝' => '𐒵',
+ '𐓞' => '𐒶',
+ '𐓟' => '𐒷',
+ '𐓠' => '𐒸',
+ '𐓡' => '𐒹',
+ '𐓢' => '𐒺',
+ '𐓣' => '𐒻',
+ '𐓤' => '𐒼',
+ '𐓥' => '𐒽',
+ '𐓦' => '𐒾',
+ '𐓧' => '𐒿',
+ '𐓨' => '𐓀',
+ '𐓩' => '𐓁',
+ '𐓪' => '𐓂',
+ '𐓫' => '𐓃',
+ '𐓬' => '𐓄',
+ '𐓭' => '𐓅',
+ '𐓮' => '𐓆',
+ '𐓯' => '𐓇',
+ '𐓰' => '𐓈',
+ '𐓱' => '𐓉',
+ '𐓲' => '𐓊',
+ '𐓳' => '𐓋',
+ '𐓴' => '𐓌',
+ '𐓵' => '𐓍',
+ '𐓶' => '𐓎',
+ '𐓷' => '𐓏',
+ '𐓸' => '𐓐',
+ '𐓹' => '𐓑',
+ '𐓺' => '𐓒',
+ '𐓻' => '𐓓',
+ '𐳀' => '𐲀',
+ '𐳁' => '𐲁',
+ '𐳂' => '𐲂',
+ '𐳃' => '𐲃',
+ '𐳄' => '𐲄',
+ '𐳅' => '𐲅',
+ '𐳆' => '𐲆',
+ '𐳇' => '𐲇',
+ '𐳈' => '𐲈',
+ '𐳉' => '𐲉',
+ '𐳊' => '𐲊',
+ '𐳋' => '𐲋',
+ '𐳌' => '𐲌',
+ '𐳍' => '𐲍',
+ '𐳎' => '𐲎',
+ '𐳏' => '𐲏',
+ '𐳐' => '𐲐',
+ '𐳑' => '𐲑',
+ '𐳒' => '𐲒',
+ '𐳓' => '𐲓',
+ '𐳔' => '𐲔',
+ '𐳕' => '𐲕',
+ '𐳖' => '𐲖',
+ '𐳗' => '𐲗',
+ '𐳘' => '𐲘',
+ '𐳙' => '𐲙',
+ '𐳚' => '𐲚',
+ '𐳛' => '𐲛',
+ '𐳜' => '𐲜',
+ '𐳝' => '𐲝',
+ '𐳞' => '𐲞',
+ '𐳟' => '𐲟',
+ '𐳠' => '𐲠',
+ '𐳡' => '𐲡',
+ '𐳢' => '𐲢',
+ '𐳣' => '𐲣',
+ '𐳤' => '𐲤',
+ '𐳥' => '𐲥',
+ '𐳦' => '𐲦',
+ '𐳧' => '𐲧',
+ '𐳨' => '𐲨',
+ '𐳩' => '𐲩',
+ '𐳪' => '𐲪',
+ '𐳫' => '𐲫',
+ '𐳬' => '𐲬',
+ '𐳭' => '𐲭',
+ '𐳮' => '𐲮',
+ '𐳯' => '𐲯',
+ '𐳰' => '𐲰',
+ '𐳱' => '𐲱',
+ '𐳲' => '𐲲',
'𑣀' => '𑢠',
'𑣁' => '𑢡',
'𑣂' => '𑢢',
@@ -1101,4 +1345,145 @@
'𑣝' => '𑢽',
'𑣞' => '𑢾',
'𑣟' => '𑢿',
+ '𖹠' => '𖹀',
+ '𖹡' => '𖹁',
+ '𖹢' => '𖹂',
+ '𖹣' => '𖹃',
+ '𖹤' => '𖹄',
+ '𖹥' => '𖹅',
+ '𖹦' => '𖹆',
+ '𖹧' => '𖹇',
+ '𖹨' => '𖹈',
+ '𖹩' => '𖹉',
+ '𖹪' => '𖹊',
+ '𖹫' => '𖹋',
+ '𖹬' => '𖹌',
+ '𖹭' => '𖹍',
+ '𖹮' => '𖹎',
+ '𖹯' => '𖹏',
+ '𖹰' => '𖹐',
+ '𖹱' => '𖹑',
+ '𖹲' => '𖹒',
+ '𖹳' => '𖹓',
+ '𖹴' => '𖹔',
+ '𖹵' => '𖹕',
+ '𖹶' => '𖹖',
+ '𖹷' => '𖹗',
+ '𖹸' => '𖹘',
+ '𖹹' => '𖹙',
+ '𖹺' => '𖹚',
+ '𖹻' => '𖹛',
+ '𖹼' => '𖹜',
+ '𖹽' => '𖹝',
+ '𖹾' => '𖹞',
+ '𖹿' => '𖹟',
+ '𞤢' => '𞤀',
+ '𞤣' => '𞤁',
+ '𞤤' => '𞤂',
+ '𞤥' => '𞤃',
+ '𞤦' => '𞤄',
+ '𞤧' => '𞤅',
+ '𞤨' => '𞤆',
+ '𞤩' => '𞤇',
+ '𞤪' => '𞤈',
+ '𞤫' => '𞤉',
+ '𞤬' => '𞤊',
+ '𞤭' => '𞤋',
+ '𞤮' => '𞤌',
+ '𞤯' => '𞤍',
+ '𞤰' => '𞤎',
+ '𞤱' => '𞤏',
+ '𞤲' => '𞤐',
+ '𞤳' => '𞤑',
+ '𞤴' => '𞤒',
+ '𞤵' => '𞤓',
+ '𞤶' => '𞤔',
+ '𞤷' => '𞤕',
+ '𞤸' => '𞤖',
+ '𞤹' => '𞤗',
+ '𞤺' => '𞤘',
+ '𞤻' => '𞤙',
+ '𞤼' => '𞤚',
+ '𞤽' => '𞤛',
+ '𞤾' => '𞤜',
+ '𞤿' => '𞤝',
+ '𞥀' => '𞤞',
+ '𞥁' => '𞤟',
+ '𞥂' => '𞤠',
+ '𞥃' => '𞤡',
+ 'ß' => 'SS',
+ 'ff' => 'FF',
+ 'fi' => 'FI',
+ 'fl' => 'FL',
+ 'ffi' => 'FFI',
+ 'ffl' => 'FFL',
+ 'ſt' => 'ST',
+ 'st' => 'ST',
+ 'և' => 'ԵՒ',
+ 'ﬓ' => 'ՄՆ',
+ 'ﬔ' => 'ՄԵ',
+ 'ﬕ' => 'ՄԻ',
+ 'ﬖ' => 'ՎՆ',
+ 'ﬗ' => 'ՄԽ',
+ 'ʼn' => 'ʼN',
+ 'ΐ' => 'Ϊ́',
+ 'ΰ' => 'Ϋ́',
+ 'ǰ' => 'J̌',
+ 'ẖ' => 'H̱',
+ 'ẗ' => 'T̈',
+ 'ẘ' => 'W̊',
+ 'ẙ' => 'Y̊',
+ 'ẚ' => 'Aʾ',
+ 'ὐ' => 'Υ̓',
+ 'ὒ' => 'Υ̓̀',
+ 'ὔ' => 'Υ̓́',
+ 'ὖ' => 'Υ̓͂',
+ 'ᾶ' => 'Α͂',
+ 'ῆ' => 'Η͂',
+ 'ῒ' => 'Ϊ̀',
+ 'ΐ' => 'Ϊ́',
+ 'ῖ' => 'Ι͂',
+ 'ῗ' => 'Ϊ͂',
+ 'ῢ' => 'Ϋ̀',
+ 'ΰ' => 'Ϋ́',
+ 'ῤ' => 'Ρ̓',
+ 'ῦ' => 'Υ͂',
+ 'ῧ' => 'Ϋ͂',
+ 'ῶ' => 'Ω͂',
+ 'ᾈ' => 'ἈΙ',
+ 'ᾉ' => 'ἉΙ',
+ 'ᾊ' => 'ἊΙ',
+ 'ᾋ' => 'ἋΙ',
+ 'ᾌ' => 'ἌΙ',
+ 'ᾍ' => 'ἍΙ',
+ 'ᾎ' => 'ἎΙ',
+ 'ᾏ' => 'ἏΙ',
+ 'ᾘ' => 'ἨΙ',
+ 'ᾙ' => 'ἩΙ',
+ 'ᾚ' => 'ἪΙ',
+ 'ᾛ' => 'ἫΙ',
+ 'ᾜ' => 'ἬΙ',
+ 'ᾝ' => 'ἭΙ',
+ 'ᾞ' => 'ἮΙ',
+ 'ᾟ' => 'ἯΙ',
+ 'ᾨ' => 'ὨΙ',
+ 'ᾩ' => 'ὩΙ',
+ 'ᾪ' => 'ὪΙ',
+ 'ᾫ' => 'ὫΙ',
+ 'ᾬ' => 'ὬΙ',
+ 'ᾭ' => 'ὭΙ',
+ 'ᾮ' => 'ὮΙ',
+ 'ᾯ' => 'ὯΙ',
+ 'ᾼ' => 'ΑΙ',
+ 'ῌ' => 'ΗΙ',
+ 'ῼ' => 'ΩΙ',
+ 'ᾲ' => 'ᾺΙ',
+ 'ᾴ' => 'ΆΙ',
+ 'ῂ' => 'ῊΙ',
+ 'ῄ' => 'ΉΙ',
+ 'ῲ' => 'ῺΙ',
+ 'ῴ' => 'ΏΙ',
+ 'ᾷ' => 'Α͂Ι',
+ 'ῇ' => 'Η͂Ι',
+ 'ῷ' => 'Ω͂Ι',
);
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap.php b/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap.php
index 2fdcc5a6f69..1fedd1f7c84 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap.php
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap.php
@@ -11,48 +11,137 @@
use Symfony\Polyfill\Mbstring as p;
-if (!function_exists('mb_strlen')) {
- define('MB_CASE_UPPER', 0);
- define('MB_CASE_LOWER', 1);
- define('MB_CASE_TITLE', 2);
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
- function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
- function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
- function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
- function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); }
- function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); }
- function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
- function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
- function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
+if (!function_exists('mb_convert_encoding')) {
+ function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
+}
+if (!function_exists('mb_decode_mimeheader')) {
+ function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
+}
+if (!function_exists('mb_encode_mimeheader')) {
+ function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
+}
+if (!function_exists('mb_decode_numericentity')) {
+ function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
+}
+if (!function_exists('mb_encode_numericentity')) {
+ function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
+}
+if (!function_exists('mb_convert_case')) {
+ function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
+}
+if (!function_exists('mb_internal_encoding')) {
+ function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
+}
+if (!function_exists('mb_language')) {
+ function mb_language($language = null) { return p\Mbstring::mb_language($language); }
+}
+if (!function_exists('mb_list_encodings')) {
function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
+}
+if (!function_exists('mb_encoding_aliases')) {
function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
- function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
- function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
- function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
- function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
- function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
- function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
- function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
- function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
- function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
- function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
- function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
- function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
- function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
- function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
- function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
- function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
- function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
+}
+if (!function_exists('mb_check_encoding')) {
+ function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
+}
+if (!function_exists('mb_detect_encoding')) {
+ function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
+}
+if (!function_exists('mb_detect_order')) {
+ function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
+}
+if (!function_exists('mb_parse_str')) {
+ function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; }
+}
+if (!function_exists('mb_strlen')) {
+ function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
+}
+if (!function_exists('mb_strpos')) {
+ function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strtolower')) {
+ function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
+}
+if (!function_exists('mb_strtoupper')) {
+ function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
+}
+if (!function_exists('mb_substitute_character')) {
+ function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
+}
+if (!function_exists('mb_substr')) {
+ function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
+}
+if (!function_exists('mb_stripos')) {
+ function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_stristr')) {
+ function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrchr')) {
+ function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrichr')) {
+ function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strripos')) {
+ function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strrpos')) {
+ function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strstr')) {
+ function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_get_info')) {
function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
- function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
- function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
- function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
- function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); }
- function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
- function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
+}
+if (!function_exists('mb_http_output')) {
+ function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
+}
+if (!function_exists('mb_strwidth')) {
+ function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
+}
+if (!function_exists('mb_substr_count')) {
+ function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
+}
+if (!function_exists('mb_output_handler')) {
+ function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
+}
+if (!function_exists('mb_http_input')) {
+ function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
+}
+
+if (!function_exists('mb_convert_variables')) {
+ function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
+}
+
+if (!function_exists('mb_ord')) {
+ function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
}
if (!function_exists('mb_chr')) {
- function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); }
- function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); }
- function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
+ function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
+}
+if (!function_exists('mb_scrub')) {
+ function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
+}
+if (!function_exists('mb_str_split')) {
+ function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
+}
+
+if (extension_loaded('mbstring')) {
+ return;
+}
+
+if (!defined('MB_CASE_UPPER')) {
+ define('MB_CASE_UPPER', 0);
+}
+if (!defined('MB_CASE_LOWER')) {
+ define('MB_CASE_LOWER', 1);
+}
+if (!defined('MB_CASE_TITLE')) {
+ define('MB_CASE_TITLE', 2);
}
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap80.php b/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap80.php
new file mode 100644
index 00000000000..82f5ac4d0f1
--- /dev/null
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/bootstrap80.php
@@ -0,0 +1,143 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Mbstring as p;
+
+if (!function_exists('mb_convert_encoding')) {
+ function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
+}
+if (!function_exists('mb_decode_mimeheader')) {
+ function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); }
+}
+if (!function_exists('mb_encode_mimeheader')) {
+ function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent); }
+}
+if (!function_exists('mb_decode_numericentity')) {
+ function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); }
+}
+if (!function_exists('mb_encode_numericentity')) {
+ function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = false): string { return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex); }
+}
+if (!function_exists('mb_convert_case')) {
+ function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); }
+}
+if (!function_exists('mb_internal_encoding')) {
+ function mb_internal_encoding(?string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); }
+}
+if (!function_exists('mb_language')) {
+ function mb_language(?string $language = null): string|bool { return p\Mbstring::mb_language($language); }
+}
+if (!function_exists('mb_list_encodings')) {
+ function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
+}
+if (!function_exists('mb_encoding_aliases')) {
+ function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); }
+}
+if (!function_exists('mb_check_encoding')) {
+ function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
+}
+if (!function_exists('mb_detect_encoding')) {
+ function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
+}
+if (!function_exists('mb_detect_order')) {
+ function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); }
+}
+if (!function_exists('mb_parse_str')) {
+ function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; }
+}
+if (!function_exists('mb_strlen')) {
+ function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); }
+}
+if (!function_exists('mb_strpos')) {
+ function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
+}
+if (!function_exists('mb_strtolower')) {
+ function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); }
+}
+if (!function_exists('mb_strtoupper')) {
+ function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); }
+}
+if (!function_exists('mb_substitute_character')) {
+ function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); }
+}
+if (!function_exists('mb_substr')) {
+ function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); }
+}
+if (!function_exists('mb_stripos')) {
+ function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
+}
+if (!function_exists('mb_stristr')) {
+ function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrchr')) {
+ function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrichr')) {
+ function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
+}
+if (!function_exists('mb_strripos')) {
+ function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
+}
+if (!function_exists('mb_strrpos')) {
+ function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
+}
+if (!function_exists('mb_strstr')) {
+ function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
+}
+if (!function_exists('mb_get_info')) {
+ function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }
+}
+if (!function_exists('mb_http_output')) {
+ function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); }
+}
+if (!function_exists('mb_strwidth')) {
+ function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); }
+}
+if (!function_exists('mb_substr_count')) {
+ function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); }
+}
+if (!function_exists('mb_output_handler')) {
+ function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); }
+}
+if (!function_exists('mb_http_input')) {
+ function mb_http_input(?string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); }
+}
+
+if (!function_exists('mb_convert_variables')) {
+ function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
+}
+
+if (!function_exists('mb_ord')) {
+ function mb_ord(?string $string, ?string $encoding = null): int|false { return p\Mbstring::mb_ord((string) $string, $encoding); }
+}
+if (!function_exists('mb_chr')) {
+ function mb_chr(?int $codepoint, ?string $encoding = null): string|false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
+}
+if (!function_exists('mb_scrub')) {
+ function mb_scrub(?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); }
+}
+if (!function_exists('mb_str_split')) {
+ function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); }
+}
+
+if (extension_loaded('mbstring')) {
+ return;
+}
+
+if (!defined('MB_CASE_UPPER')) {
+ define('MB_CASE_UPPER', 0);
+}
+if (!defined('MB_CASE_LOWER')) {
+ define('MB_CASE_LOWER', 1);
+}
+if (!defined('MB_CASE_TITLE')) {
+ define('MB_CASE_TITLE', 2);
+}
diff --git a/system/backend/php/vendor/symfony/polyfill-mbstring/composer.json b/system/backend/php/vendor/symfony/polyfill-mbstring/composer.json
index 0bce08782ea..44895536bad 100644
--- a/system/backend/php/vendor/symfony/polyfill-mbstring/composer.json
+++ b/system/backend/php/vendor/symfony/polyfill-mbstring/composer.json
@@ -16,7 +16,10 @@
}
],
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
+ },
+ "provide": {
+ "ext-mbstring": "*"
},
"autoload": {
"psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" },
@@ -28,7 +31,11 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-master": "1.11-dev"
+ "dev-main": "1.27-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
}
}
diff --git a/system/backend/php/vendor/twig/twig/.gitattributes b/system/backend/php/vendor/twig/twig/.gitattributes
new file mode 100644
index 00000000000..06bc3671340
--- /dev/null
+++ b/system/backend/php/vendor/twig/twig/.gitattributes
@@ -0,0 +1,4 @@
+/doc/ export-ignore
+/extra/ export-ignore
+/tests/ export-ignore
+/phpunit.xml.dist export-ignore
diff --git a/system/backend/php/vendor/twig/twig/.github/dependabot.yml b/system/backend/php/vendor/twig/twig/.github/dependabot.yml
new file mode 100644
index 00000000000..5ace4600a1f
--- /dev/null
+++ b/system/backend/php/vendor/twig/twig/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "weekly"
diff --git a/system/backend/php/vendor/twig/twig/.github/workflows/ci.yml b/system/backend/php/vendor/twig/twig/.github/workflows/ci.yml
new file mode 100644
index 00000000000..3f49259ca9a
--- /dev/null
+++ b/system/backend/php/vendor/twig/twig/.github/workflows/ci.yml
@@ -0,0 +1,148 @@
+name: "CI"
+
+on:
+ pull_request:
+ push:
+ branches:
+ - '2.x'
+
+env:
+ SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE: 1
+
+permissions:
+ contents: read
+
+jobs:
+ tests:
+ name: "PHP ${{ matrix.php-version }}"
+
+ runs-on: 'ubuntu-latest'
+
+ continue-on-error: ${{ matrix.experimental }}
+
+ strategy:
+ matrix:
+ php-version:
+ - '7.1.3'
+ - '7.2.5'
+ - '7.3'
+ - '7.4'
+ - '8.0'
+ - '8.1'
+ - '8.2'
+ experimental: [false]
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@v3
+
+ - name: "Install PHP with extensions"
+ uses: shivammathur/setup-php@v2
+ with:
+ coverage: "none"
+ php-version: ${{ matrix.php-version }}
+ ini-values: memory_limit=-1
+
+ - name: "Add PHPUnit matcher"
+ run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
+
+ - run: composer install
+
+ - name: "Install PHPUnit"
+ run: vendor/bin/simple-phpunit install
+
+ - name: "PHPUnit version"
+ run: vendor/bin/simple-phpunit --version
+
+ - name: "Run tests"
+ run: vendor/bin/simple-phpunit
+
+ extension-tests:
+ needs:
+ - 'tests'
+
+ name: "${{ matrix.extension }} with PHP ${{ matrix.php-version }}"
+
+ runs-on: 'ubuntu-latest'
+
+ continue-on-error: true
+
+ strategy:
+ matrix:
+ php-version:
+ - '7.2.5'
+ - '7.3'
+ - '7.4'
+ - '8.0'
+ - '8.1'
+ - '8.2'
+ extension:
+ - 'extra/cssinliner-extra'
+ - 'extra/html-extra'
+ - 'extra/inky-extra'
+ - 'extra/intl-extra'
+ - 'extra/markdown-extra'
+ - 'extra/string-extra'
+ - 'extra/twig-extra-bundle'
+ experimental: [false]
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@v3
+
+ - name: "Install PHP with extensions"
+ uses: shivammathur/setup-php@v2
+ with:
+ coverage: "none"
+ php-version: ${{ matrix.php-version }}
+ ini-values: memory_limit=-1
+
+ - name: "Add PHPUnit matcher"
+ run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
+
+ - run: composer install
+
+ - name: "Install PHPUnit"
+ run: vendor/bin/simple-phpunit install
+
+ - name: "PHPUnit version"
+ run: vendor/bin/simple-phpunit --version
+
+ - name: "Composer install"
+ working-directory: ${{ matrix.extension}}
+ run: composer install
+
+ - name: "Run tests"
+ working-directory: ${{ matrix.extension}}
+ run: ../../vendor/bin/simple-phpunit
+
+ integration-tests:
+ needs:
+ - 'tests'
+
+ name: "Integration tests with PHP ${{ matrix.php-version }}"
+
+ runs-on: 'ubuntu-20.04'
+
+ continue-on-error: true
+
+ strategy:
+ matrix:
+ php-version:
+ - '7.3'
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@v3
+
+ - name: "Install PHP with extensions"
+ uses: shivammathur/setup-php@v2
+ with:
+ coverage: "none"
+ extensions: "gd, pdo_sqlite"
+ php-version: ${{ matrix.php-version }}
+ ini-values: memory_limit=-1
+ tools: composer:v2
+
+ - run: bash ./tests/drupal_test.sh
+ shell: "bash"
diff --git a/system/backend/php/vendor/twig/twig/.github/workflows/documentation.yml b/system/backend/php/vendor/twig/twig/.github/workflows/documentation.yml
new file mode 100644
index 00000000000..f2f46fc6d6e
--- /dev/null
+++ b/system/backend/php/vendor/twig/twig/.github/workflows/documentation.yml
@@ -0,0 +1,64 @@
+name: "Documentation"
+
+on:
+ pull_request:
+ push:
+ branches:
+ - '2.x'
+ - '3.x'
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ name: "Build"
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@v3
+
+ - name: "Set-up PHP"
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: 8.2
+ coverage: none
+ tools: "composer:v2"
+
+ - name: Get composer cache directory
+ id: composercache
+ working-directory: doc/_build
+ run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
+
+ - name: Cache dependencies
+ uses: actions/cache@v3
+ with:
+ path: ${{ steps.composercache.outputs.dir }}
+ key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
+ restore-keys: ${{ runner.os }}-composer-
+
+ - name: "Install dependencies"
+ working-directory: doc/_build
+ run: composer install --prefer-dist --no-progress
+
+ - name: "Build the docs"
+ working-directory: doc/_build
+ run: php build.php --disable-cache
+
+ doctor-rst:
+ name: "DOCtor-RST"
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: "Checkout code"
+ uses: actions/checkout@v3
+
+ - name: "Run DOCtor-RST"
+ uses: docker://oskarstark/doctor-rst
+ with:
+ args: --short
+ env:
+ DOCS_DIR: 'doc/'
diff --git a/system/backend/php/vendor/twig/twig/.gitignore b/system/backend/php/vendor/twig/twig/.gitignore
index bc959c53318..b197246ba80 100644
--- a/system/backend/php/vendor/twig/twig/.gitignore
+++ b/system/backend/php/vendor/twig/twig/.gitignore
@@ -1,3 +1,6 @@
+/doc/_build/vendor
+/doc/_build/output
/composer.lock
/phpunit.xml
/vendor
+.phpunit.result.cache
diff --git a/system/backend/php/vendor/twig/twig/.php_cs.dist b/system/backend/php/vendor/twig/twig/.php-cs-fixer.dist.php
similarity index 75%
rename from system/backend/php/vendor/twig/twig/.php_cs.dist
rename to system/backend/php/vendor/twig/twig/.php-cs-fixer.dist.php
index 1b31c0a3dc7..b07ac7fcabd 100644
--- a/system/backend/php/vendor/twig/twig/.php_cs.dist
+++ b/system/backend/php/vendor/twig/twig/.php-cs-fixer.dist.php
@@ -1,9 +1,11 @@
setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
+ '@PHPUnit75Migration:risky' => true,
+ 'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'php_unit_fqcn_annotation' => true,
'no_unreachable_default_argument_value' => false,
@@ -14,5 +16,5 @@
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
])
->setRiskyAllowed(true)
- ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
+ ->setFinder((new PhpCsFixer\Finder())->in(__DIR__))
;
diff --git a/system/backend/php/vendor/twig/twig/.travis.yml b/system/backend/php/vendor/twig/twig/.travis.yml
deleted file mode 100644
index c2395895b7d..00000000000
--- a/system/backend/php/vendor/twig/twig/.travis.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-language: php
-
-sudo: false
-
-cache:
- directories:
- - vendor
- - $HOME/.composer/cache/files
-
-before_install:
- - phpenv config-rm xdebug.ini || return 0
-
-install:
- - travis_retry composer install
-
-script: ./vendor/bin/simple-phpunit
-
-jobs:
- fast_finish: true
- include:
- - php: 7.0
- - php: 7.1
- - php: 7.2
- - php: 7.3
- - php: 7.4snapshot
- - stage: integration tests
- php: 7.3
- script: ./drupal_test.sh
diff --git a/system/backend/php/vendor/twig/twig/CHANGELOG b/system/backend/php/vendor/twig/twig/CHANGELOG
index 0468803badd..a48393ad05a 100644
--- a/system/backend/php/vendor/twig/twig/CHANGELOG
+++ b/system/backend/php/vendor/twig/twig/CHANGELOG
@@ -1,14 +1,179 @@
-* 2.11.2 (2019-06-05)
+# 2.15.5 (2023-05-03)
+
+ * Make the Lexer initialize itself lazily
+
+# 2.15.4 (2022-12-27)
+
+ * Fix optimizing closures callbacks
+ * Add a better exception when getting an undefined constant via `constant`
+ * Fix `if` nodes when outside of a block and with an empty body
+
+# 2.15.3 (2022-09-28)
+
+ * Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)
+
+# 2.15.2 (2022-08-12)
+
+ * Allow inherited magic method to still run with calling class
+ * Fix CallExpression::reflectCallable() throwing TypeError
+ * Fix typo in naming (currency_code)
+
+# 2.15.1 (2022-05-17)
+
+* Fix optimizing non-public named closures
+
+# 2.15.0 (2022-05-15)
+
+ * Add support for named closures
+
+# 2.14.13 (2022-04-06)
+
+ * Enable bytecode invalidation when auto_reload is enabled
+
+# 2.14.12 (2022-03-25)
+
+ * Fix custom escapers when using multiple Twig environments
+ * Do not reuse internally generated variable names during parsing
+
+# 2.14.11 (2022-02-04)
+
+ * Fix a security issue when in a sandbox: the `sort` filter must require a Closure for the `arrow` parameter
+ * Fix deprecation notice on `round`
+ * Fix call to deprecated `convertToHtml` method
+
+# 2.14.10 (2022-01-03)
+
+ * Allow more null arguments when Twig expects a string (for better 8.1 support)
+
+# 2.14.9 (2022-01-03)
+
+* Allow null when Twig expects a string (for better 8.1 support)
+* Add support for PHP 7.1 back
+* Make some performance optimizations
+* Allow Symfony translation contract v3+
+
+# 2.14.8 (2021-11-25)
+
+ * Bump minimum supported Symfony component versions
+ * Fix a deprecated message
+
+# 2.14.7 (2021-09-17)
+
+ * Allow Symfony 6
+ * Improve compatibility with PHP 8.1
+ * Explicitly specify the encoding for mb_ord in JS escaper
+
+# 2.14.6 (2021-05-16)
+
+ * Revert "Throw a proper exception when a template name is an absolute path (as it has never been supported)"
+
+# 2.14.5 (2021-05-12)
+
+ * Fix PHP 8.1 compatibility
+ * Throw a proper exception when a template name is an absolute path (as it has never been supported)
+
+# 2.14.4 (2021-03-10)
+
+ * Add the slug filter
+
+# 2.14.3 (2021-01-05)
+
+ * Fix extra bundle compat with older versions of Symfony
+
+# 2.14.2 (2021-01-05)
+
+ * Fix "odd" not working for negative numbers
+
+# 2.14.1 (2020-10-27)
+
+* Fix "include(template_from_string())"
+
+# 2.14.0 (2020-10-21)
+
+ * Fix sandbox support when using "include(template_from_string())"
+ * Make round brackets optional for one argument tests like "same as" or "divisible by"
+ * Add support for ES2015 style object initialisation shortcut { a } is the same as { 'a': a }
+ * Drop PHP 7.1 support
+
+# 2.13.1 (2020-08-05)
+
+ * Fix sandbox not disabled if syntax error occurs within {% sandbox %} tag
+ * Fix a regression when not using a space before an operator
+ * Restrict callables to closures in filters
+ * Allow trailing commas in argument lists (in calls as well as definitions)
+
+# 2.13.0 (2020-07-05)
+
+ * Fix options not taken into account when using "Michelf\MarkdownExtra"
+ * Fix "Twig\Extra\Intl\IntlExtension::getCountryName()" to accept "null" as a first argument
+ * Drop support for PHP 7.0
+ * Throw exception in case non-Traversable data is passed to "filter"
+ * Fix context optimization on PHP 7.4
+ * Fix PHP 8 compatibility
+ * Fix ambiguous syntax parsing
+
+# 2.12.5 (2020-02-11)
+
+ * Add a check to ensure that iconv() is defined
+
+# 2.12.4 (2020-02-11)
+
+ * Avoid exceptions when an intl resource is not found
+ * Fix implementation of case-insensitivity for method names
+
+# 2.12.3 (2019-12-28)
+
+ * fixed Symfony 5.0 support for the HTML extra extension
+ * fixed number formatter in Intl extra extension when using a formatter prototype
+
+# 2.12.2 (2019-11-11)
+
+ * added supported for exponential numbers
+
+# 2.12.1 (2019-10-17)
+
+ * added the String extension in the "extra" repositories: "u" filter
+
+# 2.12.0 (2019-10-05)
+
+ * added the spaceship operator ("<=>"), useful when using an arrow function in the "sort" filter
+ * added support for an "arrow" function on the "sort" filter
+ * added the CssInliner extension in the "extra" repositories: "inline_css"
+ filter
+ * added the Inky extension in the "extra" repositories: "inky_to_html" filter
+ * added Intl extension in the "extra" repositories: "country_name",
+ "currency_name", "currency_symbol", "language_name", "locale_name",
+ "timezone_name", "format_currency", "format_number",
+ "format_*_number", "format_datetime", "format_date", and "format_time"
+ filters, and the "country_timezones" function
+ * added the Markdown extension in the "extra" repositories: "markdown_to_html",
+ and "html_to_markdown" filters
+ * added the HtmlExtension extension in the "extra" repositories: "date_uri"
+ filter, and "html_classes" function
+ * optimized "block('foo') ?? 'bar'"
+ * fixed the empty test on Traversable instances
+ * fixed array_key_exists() on objects
+ * fixed cache when opcache is installed but disabled
+ * fixed using macros in arrow functions
+ * fixed split filter on edge case
+
+# 2.11.3 (2019-06-18)
+
+ * display partial output (PHP buffer) when an error occurs in debug mode
+ * fixed the filter filter (allow the result to be used several times)
+ * fixed macro auto-import when a template contains only macros
+
+# 2.11.2 (2019-06-05)
* fixed macro auto-import
-* 2.11.1 (2019-06-04)
+# 2.11.1 (2019-06-04)
* added support for "Twig\Markup" instances in the "in" test (again)
* allowed string operators as variables names in assignments
* fixed support for macros defined in parent templates
-* 2.11.0 (2019-05-31)
+# 2.11.0 (2019-05-31)
* added the possibility to register classes/interfaces as being safe for the escaper ("EscaperExtension::addSafeClass()")
* deprecated CoreExtension::setEscaper() and CoreExtension::getEscapers() in favor of the same methods on EscaperExtension
@@ -22,14 +187,14 @@
* fixed a PHP fatal error when calling a macro imported in the template in another macro
* fixed wrong error message on "import" and "from"
-* 2.10.0 (2019-05-14)
+# 2.10.0 (2019-05-14)
* deprecated "if" conditions on "for" tags
* added "filter", "map", and "reduce" filters (and support for arrow functions)
* fixed partial output leak when a PHP fatal error occurs
* optimized context access on PHP 7.4
-* 2.9.0 (2019-04-28)
+# 2.9.0 (2019-04-28)
* deprecated returning "false" to remove a Node from NodeVisitorInterface::leaveNode()
* allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)
@@ -41,13 +206,13 @@
* fixed Lexer when using custom options containing the # char
* added template line number to twig_get_attribute()
-* 2.8.1 (2019-04-16)
+# 2.8.1 (2019-04-16)
* fixed EscaperNodeVisitor
* deprecated passing a 3rd, 4th, and 5th arguments to the Sandbox exception classes
* deprecated Node::setTemplateName() in favor of Node::setSourceContext()
-* 2.8.0 (2019-04-16)
+# 2.8.0 (2019-04-16)
* added Traversable support for the length filter
* fixed some wrong location in error messages
@@ -59,12 +224,12 @@
* added support for a new whitespace trimming option ({%~ ~%}, {{~ ~}}, {#~ ~#})
* added the "column" filter
-* 2.7.4 (2019-03-23)
+# 2.7.4 (2019-03-23)
* fixed variadic support
* fixed CheckToStringNode implementation (broken when a function/filter is variadic)
-* 2.7.3 (2019-03-21)
+# 2.7.3 (2019-03-21)
* fixed the spaceless filter so that it behaves like the spaceless tag
* fixed BC break on Environment::resolveTemplate()
@@ -72,15 +237,15 @@
* allowed Traversable objects to be used in the "with" tag
* allowed Traversable objects to be used in the "with" argument of the "include" and "embed" tags
-* 2.7.2 (2019-03-12)
+# 2.7.2 (2019-03-12)
* added TemplateWrapper::getTemplateName()
-* 2.7.1 (2019-03-12)
+# 2.7.1 (2019-03-12)
* fixed class aliases
-* 2.7.0 (2019-03-12)
+# 2.7.0 (2019-03-12)
* fixed sandbox security issue (under some circumstances, calling the
__toString() method on an object was possible even if not allowed by the
@@ -107,11 +272,11 @@
* changed internal code to use the namespaced classes as much as possible
* deprecated Twig_Parser::isReservedMacroName()
-* 2.6.2 (2019-01-14)
+# 2.6.2 (2019-01-14)
* fixed regression (key exists check for non ArrayObject objects)
-* 2.6.1 (2019-01-14)
+# 2.6.1 (2019-01-14)
* fixed ArrayObject access with a null value
* fixed embedded templates starting with a BOM
@@ -122,7 +287,7 @@
* fixed float representation in compiled templates
* added a second argument to the join filter (last separator configuration)
-* 2.6.0 (2018-12-16)
+# 2.6.0 (2018-12-16)
* made sure twig_include returns a string
* fixed multi-byte UFT-8 in escape('html_attr')
@@ -131,7 +296,7 @@
* fixed GlobalsInterface extended class
* fixed filesystem loader throwing an exception instead of returning false
-* 2.5.0 (2018-07-13)
+# 2.5.0 (2018-07-13)
* deprecated using the spaceless tag at the root level of a child template (noop anyway)
* deprecated the possibility to define a block in a non-capturing block in a child template
@@ -141,11 +306,11 @@
* ensured that syntax errors are triggered with the right line
* "js" filter now produces valid JSON
-* 2.4.8 (2018-04-02)
+# 2.4.8 (2018-04-02)
* fixed a regression when using the "default" filter or the "defined" test on non-existing arrays
-* 2.4.7 (2018-03-20)
+# 2.4.7 (2018-03-20)
* optimized runtime performance
* optimized parser performance by inlining the constant values
@@ -154,11 +319,11 @@
* added missing else clause to avoid infinite loops
* fixed .. (range operator) in sandbox policy
-* 2.4.6 (2018-03-03)
+# 2.4.6 (2018-03-03)
* fixed a regression in the way the profiler is registered in templates
-* 2.4.5 (2018-03-02)
+# 2.4.5 (2018-03-02)
* optimized the performance of calling an extension method at runtime
* optimized the performance of the dot operator for array and method calls
@@ -168,7 +333,7 @@
* fixed length filter when passing an instance of IteratorAggregate
* fixed Environment::resolveTemplate to accept instances of TemplateWrapper
-* 2.4.4 (2017-09-27)
+# 2.4.4 (2017-09-27)
* added Twig_Profiler_Profile::reset()
* fixed use TokenParser to return an empty Node
@@ -178,19 +343,19 @@
* fixed deprecation when using Twig_Profiler_Dumper_Html
* removed @final from Twig_Profiler_Dumper_Text
-* 2.4.3 (2017-06-07)
+# 2.4.3 (2017-06-07)
* fixed namespaces introduction
-* 2.4.2 (2017-06-05)
+# 2.4.2 (2017-06-05)
* fixed namespaces introduction
-* 2.4.1 (2017-06-05)
+# 2.4.1 (2017-06-05)
* fixed namespaces introduction
-* 2.4.0 (2017-06-05)
+# 2.4.0 (2017-06-05)
* added support for PHPUnit 6 when testing extensions
* fixed PHP 7.2 compatibility
@@ -200,15 +365,15 @@
* added namespaced aliases for all (non-deprecated) classes and interfaces
* marked Twig_Filter, Twig_Function, Twig_Test, Twig_Node_Module and Twig_Profiler_Profile as final via the @final annotation
-* 2.3.2 (2017-04-20)
+# 2.3.2 (2017-04-20)
* fixed edge case in the method cache for Twig attributes
-* 2.3.1 (2017-04-18)
+# 2.3.1 (2017-04-18)
* fixed the empty() test
-* 2.3.0 (2017-03-22)
+# 2.3.0 (2017-03-22)
* fixed a race condition handling when writing cache files
* "length" filter now returns string length when applied to an object that does
@@ -218,17 +383,17 @@
* fixed JS escaping for unicode characters with higher code points
* added error message when calling `parent()` in a block that doesn't exist in the parent template
-* 2.2.0 (2017-02-26)
+# 2.2.0 (2017-02-26)
* added a PSR-11 compatible runtime loader
* added `side` argument to `trim` to allow left or right trimming only.
-* 2.1.0 (2017-01-11)
+# 2.1.0 (2017-01-11)
* fixed twig_get_attribute()
* added Twig_NodeCaptureInterface for nodes that capture all output
-* 2.0.0 (2017-01-05)
+# 2.0.0 (2017-01-05)
* removed the C extension
* moved Twig_Environment::getAttribute() to twig_get_attribute()
@@ -248,1125 +413,3 @@
* removed the ability to register a global variable after the runtime or the extensions have been initialized
* improved the performance of the filesystem loader
* removed features that were deprecated in 1.x
-
-* 1.42.2 (2019-XX-XX)
-
- * n/a
-
-* 1.42.1 (2019-06-04)
-
- * added support for "Twig\Markup" instances in the "in" test (again)
- * allowed string operators as variables names in assignments
-
-* 1.42.0 (2019-05-31)
-
- * fixed the "filter" filter when the argument is \Traversable but does not implement \Iterator (\SimpleXmlElement for instance)
- * fixed a PHP fatal error when calling a macro imported in a block in a nested block
- * fixed a PHP fatal error when calling a macro imported in the template in another macro
- * fixed wrong error message on "import" and "from"
-
-* 1.41.0 (2019-05-14)
-
- * fixed support for PHP 7.4
- * added "filter", "map", and "reduce" filters (and support for arrow functions)
- * fixed partial output leak when a PHP fatal error occurs
- * optimized context access on PHP 7.4
-
-* 1.40.1 (2019-04-29)
-
-* fixed regression in NodeTraverser
-
-* 1.40.0 (2019-04-28)
-
- * allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)
- * added the "apply" tag as a replacement for the "filter" tag
- * allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
- * added support for "Twig\Markup" instances in the "in" test
- * fixed Lexer when using custom options containing the # char
- * fixed "import" when macros are stored in a template string
-
-* 1.39.1 (2019-04-16)
-
- * fixed EscaperNodeVisitor
-
-* 1.39.0 (2019-04-16)
-
- * added Traversable support for the length filter
- * fixed some wrong location in error messages
- * made exception creation faster
- * made escaping on ternary expressions (?: and ??) more fine-grained
- * added the possibility to give a nice name to string templates (template_from_string function)
- * fixed the "with" behavior to always include the globals (for consistency with the "include" and "embed" tags)
- * fixed "include" with "ignore missing" when an error loading occurs in the included template
- * added support for a new whitespace trimming option ({%~ ~%}, {{~ ~}}, {#~ ~#})
-
-* 1.38.4 (2019-03-23)
-
- * fixed CheckToStringNode implementation (broken when a function/filter is variadic)
-
-* 1.38.3 (2019-03-21)
-
- * fixed the spaceless filter so that it behaves like the spaceless tag
- * fixed BC break on Environment::resolveTemplate()
- * fixed the bundled Autoloader to also load namespaced classes
- * allowed Traversable objects to be used in the "with" tag
- * allowed Traversable objects to be used in the "with" argument of the "include" and "embed" tags
-
-* 1.38.2 (2019-03-12)
-
- * added TemplateWrapper::getTemplateName()
-
-* 1.38.1 (2019-03-12)
-
- * fixed class aliases
-
-* 1.38.0 (2019-03-12)
-
- * fixed sandbox security issue (under some circumstances, calling the
- __toString() method on an object was possible even if not allowed by the
- security policy)
- * fixed batch filter clobbers array keys when fill parameter is used
- * added preserveKeys support for the batch filter
- * fixed "embed" support when used from "template_from_string"
- * added the possibility to pass a TemplateWrapper to Twig\Environment::load()
- * improved the performance of the sandbox
- * added a spaceless filter
- * added max value to the "random" function
- * made namespace classes the default classes (PSR-0 ones are aliases now)
- * removed duplicated directory separator in FilesystemLoader
- * added Twig\Loader\ChainLoader::getLoaders()
- * changed internal code to use the namespaced classes as much as possible
-
-* 1.37.1 (2019-01-14)
-
- * fixed regression (key exists check for non ArrayObject objects)
- * fixed logic in TemplateWrapper
-
-* 1.37.0 (2019-01-14)
-
- * fixed ArrayObject access with a null value
- * fixed embedded templates starting with a BOM
- * fixed using a Twig_TemplateWrapper instance as an argument to extends
- * switched generated code to use the PHP short array notation
- * dropped PHP 5.3 support
- * fixed float representation in compiled templates
- * added a second argument to the join filter (last separator configuration)
-
-* 1.36.0 (2018-12-16)
-
- * made sure twig_include returns a string
- * fixed multi-byte UFT-8 in escape('html_attr')
- * added the "deprecated" tag
- * added support for dynamically named tests
- * fixed GlobalsInterface extended class
- * fixed filesystem loader throwing an exception instead of returning false
-
-* 1.35.4 (2018-07-13)
-
- * ensured that syntax errors are triggered with the right line
- * added the Symfony ctype polyfill as a dependency
- * "js" filter now produces valid JSON
-
-* 1.35.3 (2018-03-20)
-
- * fixed block names unicity
- * fixed counting children of SimpleXMLElement objects
- * added missing else clause to avoid infinite loops
- * fixed .. (range operator) in sandbox policy
-
-* 1.35.2 (2018-03-03)
-
- * fixed a regression in the way the profiler is registered in templates
-
-* 1.35.1 (2018-03-02)
-
- * added an exception when using "===" instead of "same as"
- * fixed possible array to string conversion concealing actual error
- * made variable names deterministic in compiled templates
- * fixed length filter when passing an instance of IteratorAggregate
- * fixed Environment::resolveTemplate to accept instances of TemplateWrapper
-
-* 1.35.0 (2017-09-27)
-
- * added Twig_Profiler_Profile::reset()
- * fixed use TokenParser to return an empty Node
- * added RuntimeExtensionInterface
- * added circular reference detection when loading templates
-
-* 1.34.4 (2017-07-04)
-
- * added support for runtime loaders in IntegrationTestCase
- * fixed deprecation when using Twig_Profiler_Dumper_Html
-
-* 1.34.3 (2017-06-07)
-
- * fixed namespaces introduction
-
-* 1.34.2 (2017-06-05)
-
- * fixed namespaces introduction
-
-* 1.34.1 (2017-06-05)
-
- * fixed namespaces introduction
-
-* 1.34.0 (2017-06-05)
-
- * added support for PHPUnit 6 when testing extensions
- * fixed PHP 7.2 compatibility
- * fixed template name generation in Twig_Environment::createTemplate()
- * removed final tag on Twig_TokenParser_Include
- * added namespaced aliases for all (non-deprecated) classes and interfaces
- * dropped HHVM support
- * dropped PHP 5.2 support
-
-* 1.33.2 (2017-04-20)
-
- * fixed edge case in the method cache for Twig attributes
-
-* 1.33.1 (2017-04-18)
-
- * fixed the empty() test
-
-* 1.33.0 (2017-03-22)
-
- * fixed a race condition handling when writing cache files
- * "length" filter now returns string length when applied to an object that does
- not implement \Countable but provides __toString()
- * "empty" test will now consider the return value of the __toString() method for
- objects implement __toString() but not \Countable
- * fixed JS escaping for unicode characters with higher code points
-
-* 1.32.0 (2017-02-26)
-
- * fixed deprecation notice in Twig_Util_DeprecationCollector
- * added a PSR-11 compatible runtime loader
- * added `side` argument to `trim` to allow left or right trimming only.
-
-* 1.31.0 (2017-01-11)
-
- * added Twig_NodeCaptureInterface for nodes that capture all output
- * fixed marking the environment as initialized too early
- * fixed C89 compat for the C extension
- * turned fatal error into exception when a previously generated cache is corrupted
- * fixed offline cache warm-ups for embedded templates
-
-* 1.30.0 (2016-12-23)
-
- * added Twig_FactoryRuntimeLoader
- * deprecated function/test/filter/tag overriding
- * deprecated the "disable_c_ext" attribute on Twig_Node_Expression_GetAttr
-
-* 1.29.0 (2016-12-13)
-
- * fixed sandbox being left enabled if an exception is thrown while rendering
- * marked some classes as being final (via @final)
- * made Twig_Error report real source path when possible
- * added support for {{ _self }} to provide an upgrade path from 1.x to 2.0 (replaces {{ _self.templateName }})
- * deprecated silent display of undefined blocks
- * deprecated support for mbstring.func_overload != 0
-
-* 1.28.2 (2016-11-23)
-
- * fixed precedence between getFoo() and isFoo() in Twig_Template::getAttribute()
- * improved a deprecation message
-
-* 1.28.1 (2016-11-18)
-
- * fixed block() function when used with a template argument
-
-* 1.28.0 (2016-11-17)
-
- * added support for the PHP 7 null coalescing operator for the ?? Twig implementation
- * exposed a way to access template data and methods in a portable way
- * changed context access to use the PHP 7 null coalescing operator when available
- * added the "with" tag
- * added support for a custom template on the block() function
- * added "is defined" support for block() and constant()
- * optimized the way attributes are fetched
-
-* 1.27.0 (2016-10-25)
-
- * deprecated Twig_Parser::getEnvironment()
- * deprecated Twig_Parser::addHandler() and Twig_Parser::addNodeVisitor()
- * deprecated Twig_Compiler::addIndentation()
- * fixed regression when registering two extensions having the same class name
- * deprecated Twig_LoaderInterface::getSource() (implement Twig_SourceContextLoaderInterface instead)
- * fixed the filesystem loader with relative paths
- * deprecated Twig_Node::getLine() in favor of Twig_Node::getTemplateLine()
- * deprecated Twig_Template::getSource() in favor of Twig_Template::getSourceContext()
- * deprecated Twig_Node::getFilename() in favor of Twig_Node::getTemplateName()
- * deprecated the "filename" escaping strategy (use "name" instead)
- * added Twig_Source to hold information about the original template
- * deprecated Twig_Error::getTemplateFile() and Twig_Error::setTemplateFile() in favor of Twig_Error::getTemplateName() and Twig_Error::setTemplateName()
- * deprecated Parser::getFilename()
- * fixed template paths when a template name contains a protocol like vfs://
- * improved debugging with Twig_Sandbox_SecurityError exceptions for disallowed methods and properties
-
-* 1.26.1 (2016-10-05)
-
- * removed template source code from generated template classes when debug is disabled
- * fixed default implementation of Twig_Template::getDebugInfo() for better BC
- * fixed regression on static calls for functions/filters/tests
-
-* 1.26.0 (2016-10-02)
-
- * added template cache invalidation based on more environment options
- * added a missing deprecation notice
- * fixed template paths when a template is stored in a PHAR file
- * allowed filters/functions/tests implementation to use a different class than the extension they belong to
- * deprecated Twig_ExtensionInterface::getName()
-
-* 1.25.0 (2016-09-21)
-
- * changed the way we store template source in template classes
- * removed usage of realpath in cache keys
- * fixed Twig cache sharing when used with different versions of PHP
- * removed embed parent workaround for simple use cases
- * deprecated the ability to store non Node instances in Node::$nodes
- * deprecated Twig_Environment::getLexer(), Twig_Environment::getParser(), Twig_Environment::getCompiler()
- * deprecated Twig_Compiler::getFilename()
-
-* 1.24.2 (2016-09-01)
-
- * fixed static callables
- * fixed a potential PHP warning when loading the cache
- * fixed a case where the autoescaping does not work as expected
-
-* 1.24.1 (2016-05-30)
-
- * fixed reserved keywords (forbids true, false, null and none keywords for variables names)
- * fixed support for PHP7 (Throwable support)
- * marked the following methods as being internals on Twig_Environment:
- getFunctions(), getFilters(), getTests(), getFunction(), getFilter(), getTest(),
- getTokenParsers(), getTags(), getNodeVisitors(), getUnaryOperators(), getBinaryOperators(),
- getFunctions(), getFilters(), getGlobals(), initGlobals(), initExtensions(), and initExtension()
-
-* 1.24.0 (2016-01-25)
-
- * adding support for the ?? operator
- * fixed the defined test when used on a constant, a map, or a sequence
- * undeprecated _self (should only be used to get the template name, not the template instance)
- * fixed parsing on PHP7
-
-* 1.23.3 (2016-01-11)
-
- * fixed typo
-
-* 1.23.2 (2015-01-11)
-
- * added versions in deprecated messages
- * made file cache tolerant for trailing (back)slashes on directory configuration
- * deprecated unused Twig_Node_Expression_ExtensionReference class
-
-* 1.23.1 (2015-11-05)
-
- * fixed some exception messages which triggered PHP warnings
- * fixed BC on Twig_Test_NodeTestCase
-
-* 1.23.0 (2015-10-29)
-
- * deprecated the possibility to override an extension by registering another one with the same name
- * deprecated Twig_ExtensionInterface::getGlobals() (added Twig_Extension_GlobalsInterface for BC)
- * deprecated Twig_ExtensionInterface::initRuntime() (added Twig_Extension_InitRuntimeInterface for BC)
- * deprecated Twig_Environment::computeAlternatives()
-
-* 1.22.3 (2015-10-13)
-
- * fixed regression when using null as a cache strategy
- * improved performance when checking template freshness
- * fixed warnings when loaded templates do not exist
- * fixed template class name generation to prevent possible collisions
- * fixed logic for custom escapers to call them even on integers and null values
- * changed template cache names to take into account the Twig C extension
-
-* 1.22.2 (2015-09-22)
-
- * fixed a race condition in template loading
-
-* 1.22.1 (2015-09-15)
-
- * fixed regression in template_from_string
-
-* 1.22.0 (2015-09-13)
-
- * made Twig_Test_IntegrationTestCase more flexible
- * added an option to force PHP bytecode invalidation when writing a compiled template into the cache
- * fixed the profiler duration for the root node
- * changed template cache names to take into account enabled extensions
- * deprecated Twig_Environment::clearCacheFiles(), Twig_Environment::getCacheFilename(),
- Twig_Environment::writeCacheFile(), and Twig_Environment::getTemplateClassPrefix()
- * added a way to override the filesystem template cache system
- * added a way to get the original template source from Twig_Template
-
-* 1.21.2 (2015-09-09)
-
- * fixed variable names for the deprecation triggering code
- * fixed escaping strategy detection based on filename
- * added Traversable support for replace, merge, and sort
- * deprecated support for character by character replacement for the "replace" filter
-
-* 1.21.1 (2015-08-26)
-
- * fixed regression when using the deprecated Twig_Test_* classes
-
-* 1.21.0 (2015-08-24)
-
- * added deprecation notices for deprecated features
- * added a deprecation "framework" for filters/functions/tests and test fixtures
-
-* 1.20.0 (2015-08-12)
-
- * forbid access to the Twig environment from templates and internal parts of Twig_Template
- * fixed limited RCEs when in sandbox mode
- * deprecated Twig_Template::getEnvironment()
- * deprecated the _self variable for usage outside of the from and import tags
- * added Twig_BaseNodeVisitor to ease the compatibility of node visitors
- between 1.x and 2.x
-
-* 1.19.0 (2015-07-31)
-
- * fixed wrong error message when including an undefined template in a child template
- * added support for variadic filters, functions, and tests
- * added support for extra positional arguments in macros
- * added ignore_missing flag to the source function
- * fixed batch filter with zero items
- * deprecated Twig_Environment::clearTemplateCache()
- * fixed sandbox disabling when using the include function
-
-* 1.18.2 (2015-06-06)
-
- * fixed template/line guessing in exceptions for nested templates
- * optimized the number of inodes and the size of realpath cache when using the cache
-
-* 1.18.1 (2015-04-19)
-
- * fixed memory leaks in the C extension
- * deprecated Twig_Loader_String
- * fixed the slice filter when used with a SimpleXMLElement object
- * fixed filesystem loader when trying to load non-files (like directories)
-
-* 1.18.0 (2015-01-25)
-
- * fixed some error messages where the line was wrong (unknown variables or argument names)
- * added a new way to customize the main Module node (via empty nodes)
- * added Twig_Environment::createTemplate() to create a template from a string
- * added a profiler
- * fixed filesystem loader cache when different file paths are used for the same template
-
-* 1.17.0 (2015-01-14)
-
- * added a 'filename' autoescaping strategy, which dynamically chooses the
- autoescaping strategy for a template based on template file extension.
-
-* 1.16.3 (2014-12-25)
-
- * fixed regression for dynamic parent templates
- * fixed cache management with statcache
- * fixed a regression in the slice filter
-
-* 1.16.2 (2014-10-17)
-
- * fixed timezone on dates as strings
- * fixed 2-words test names when a custom node class is not used
- * fixed macros when using an argument named like a PHP super global (like GET or POST)
- * fixed date_modify when working with DateTimeImmutable
- * optimized for loops
- * fixed multi-byte characters handling in the split filter
- * fixed a regression in the in operator
- * fixed a regression in the slice filter
-
-* 1.16.1 (2014-10-10)
-
- * improved error reporting in a sandboxed template
- * fixed missing error file/line information under certain circumstances
- * fixed wrong error line number in some error messages
- * fixed the in operator to use strict comparisons
- * sped up the slice filter
- * fixed for mb function overload mb_substr acting different
- * fixed the attribute() function when passing a variable for the arguments
-
-* 1.16.0 (2014-07-05)
-
- * changed url_encode to always encode according to RFC 3986
- * fixed inheritance in a 'use'-hierarchy
- * removed the __toString policy check when the sandbox is disabled
- * fixed recursively calling blocks in templates with inheritance
-
-* 1.15.1 (2014-02-13)
-
- * fixed the conversion of the special '0000-00-00 00:00' date
- * added an error message when trying to import an undefined block from a trait
- * fixed a C extension crash when accessing defined but uninitialized property.
-
-* 1.15.0 (2013-12-06)
-
- * made ignoreStrictCheck in Template::getAttribute() works with __call() methods throwing BadMethodCallException
- * added min and max functions
- * added the round filter
- * fixed a bug that prevented the optimizers to be enabled/disabled selectively
- * fixed first and last filters for UTF-8 strings
- * added a source function to include the content of a template without rendering it
- * fixed the C extension sandbox behavior when get or set is prepend to method name
-
-* 1.14.2 (2013-10-30)
-
- * fixed error filename/line when an error occurs in an included file
- * allowed operators that contain whitespaces to have more than one whitespace
- * allowed tests to be made of 1 or 2 words (like "same as" or "divisible by")
-
-* 1.14.1 (2013-10-15)
-
- * made it possible to use named operators as variables
- * fixed the possibility to have a variable named 'matches'
- * added support for PHP 5.5 DateTimeInterface
-
-* 1.14.0 (2013-10-03)
-
- * fixed usage of the html_attr escaping strategy to avoid double-escaping with the html strategy
- * added new operators: ends with, starts with, and matches
- * fixed some compatibility issues with HHVM
- * added a way to add custom escaping strategies
- * fixed the C extension compilation on Windows
- * fixed the batch filter when using a fill argument with an exact match of elements to batch
- * fixed the filesystem loader cache when a template name exists in several namespaces
- * fixed template_from_string when the template includes or extends other ones
- * fixed a crash of the C extension on an edge case
-
-* 1.13.2 (2013-08-03)
-
- * fixed the error line number for an error occurs in and embedded template
- * fixed crashes of the C extension on some edge cases
-
-* 1.13.1 (2013-06-06)
-
- * added the possibility to ignore the filesystem constructor argument in Twig_Loader_Filesystem
- * fixed Twig_Loader_Chain::exists() for a loader which implements Twig_ExistsLoaderInterface
- * adjusted backtrace call to reduce memory usage when an error occurs
- * added support for object instances as the second argument of the constant test
- * fixed the include function when used in an assignment
-
-* 1.13.0 (2013-05-10)
-
- * fixed getting a numeric-like item on a variable ('09' for instance)
- * fixed getting a boolean or float key on an array, so it is consistent with PHP's array access:
- `{{ array[false] }}` behaves the same as `echo $array[false];` (equals `$array[0]`)
- * made the escape filter 20% faster for happy path (escaping string for html with UTF-8)
- * changed ☃ to § in tests
- * enforced usage of named arguments after positional ones
-
-* 1.12.3 (2013-04-08)
-
- * fixed a security issue in the filesystem loader where it was possible to include a template one
- level above the configured path
- * fixed fatal error that should be an exception when adding a filter/function/test too late
- * added a batch filter
- * added support for encoding an array as query string in the url_encode filter
-
-* 1.12.2 (2013-02-09)
-
- * fixed the timezone used by the date filter and function when the given date contains a timezone (like 2010-01-28T15:00:00+02:00)
- * fixed globals when getGlobals is called early on
- * added the first and last filter
-
-* 1.12.1 (2013-01-15)
-
- * added support for object instances as the second argument of the constant function
- * relaxed globals management to avoid a BC break
- * added support for {{ some_string[:2] }}
-
-* 1.12.0 (2013-01-08)
-
- * added verbatim as an alias for the raw tag to avoid confusion with the raw filter
- * fixed registration of tests and functions as anonymous functions
- * fixed globals management
-
-* 1.12.0-RC1 (2012-12-29)
-
- * added an include function (does the same as the include tag but in a more flexible way)
- * added the ability to use any PHP callable to define filters, functions, and tests
- * added a syntax error when using a loop variable that is not defined
- * added the ability to set default values for macro arguments
- * added support for named arguments for filters, tests, and functions
- * moved filters/functions/tests syntax errors to the parser
- * added support for extended ternary operator syntaxes
-
-* 1.11.1 (2012-11-11)
-
- * fixed debug info line numbering (was off by 2)
- * fixed escaping when calling a macro inside another one (regression introduced in 1.9.1)
- * optimized variable access on PHP 5.4
- * fixed a crash of the C extension when an exception was thrown from a macro called without being imported (using _self.XXX)
-
-* 1.11.0 (2012-11-07)
-
- * fixed macro compilation when a variable name is a PHP reserved keyword
- * changed the date filter behavior to always apply the default timezone, except if false is passed as the timezone
- * fixed bitwise operator precedences
- * added the template_from_string function
- * fixed default timezone usage for the date function
- * optimized the way Twig exceptions are managed (to make them faster)
- * added Twig_ExistsLoaderInterface (implementing this interface in your loader make the chain loader much faster)
-
-* 1.10.3 (2012-10-19)
-
- * fixed wrong template location in some error messages
- * reverted a BC break introduced in 1.10.2
- * added a split filter
-
-* 1.10.2 (2012-10-15)
-
- * fixed macro calls on PHP 5.4
-
-* 1.10.1 (2012-10-15)
-
- * made a speed optimization to macro calls when imported via the "import" tag
- * fixed C extension compilation on Windows
- * fixed a segfault in the C extension when using DateTime objects
-
-* 1.10.0 (2012-09-28)
-
- * extracted functional tests framework to make it reusable for third-party extensions
- * added namespaced templates support in Twig_Loader_Filesystem
- * added Twig_Loader_Filesystem::prependPath()
- * fixed an error when a token parser pass a closure as a test to the subparse() method
-
-* 1.9.2 (2012-08-25)
-
- * fixed the in operator for objects that contain circular references
- * fixed the C extension when accessing a public property of an object implementing the \ArrayAccess interface
-
-* 1.9.1 (2012-07-22)
-
- * optimized macro calls when auto-escaping is on
- * fixed wrong parent class for Twig_Function_Node
- * made Twig_Loader_Chain more explicit about problems
-
-* 1.9.0 (2012-07-13)
-
- * made the parsing independent of the template loaders
- * fixed exception trace when an error occurs when rendering a child template
- * added escaping strategies for CSS, URL, and HTML attributes
- * fixed nested embed tag calls
- * added the date_modify filter
-
-* 1.8.3 (2012-06-17)
-
- * fixed paths in the filesystem loader when passing a path that ends with a slash or a backslash
- * fixed escaping when a project defines a function named html or js
- * fixed chmod mode to apply the umask correctly
-
-* 1.8.2 (2012-05-30)
-
- * added the abs filter
- * fixed a regression when using a number in template attributes
- * fixed compiler when mbstring.func_overload is set to 2
- * fixed DateTimeZone support in date filter
-
-* 1.8.1 (2012-05-17)
-
- * fixed a regression when dealing with SimpleXMLElement instances in templates
- * fixed "is_safe" value for the "dump" function when "html_errors" is not defined in php.ini
- * switched to use mbstring whenever possible instead of iconv (you might need to update your encoding as mbstring and iconv encoding names sometimes differ)
-
-* 1.8.0 (2012-05-08)
-
- * enforced interface when adding tests, filters, functions, and node visitors from extensions
- * fixed a side-effect of the date filter where the timezone might be changed
- * simplified usage of the autoescape tag; the only (optional) argument is now the escaping strategy or false (with a BC layer)
- * added a way to dynamically change the auto-escaping strategy according to the template "filename"
- * changed the autoescape option to also accept a supported escaping strategy (for BC, true is equivalent to html)
- * added an embed tag
-
-* 1.7.0 (2012-04-24)
-
- * fixed a PHP warning when using CIFS
- * fixed template line number in some exceptions
- * added an iterable test
- * added an error when defining two blocks with the same name in a template
- * added the preserves_safety option for filters
- * fixed a PHP notice when trying to access a key on a non-object/array variable
- * enhanced error reporting when the template file is an instance of SplFileInfo
- * added Twig_Environment::mergeGlobals()
- * added compilation checks to avoid misuses of the sandbox tag
- * fixed filesystem loader freshness logic for high traffic websites
- * fixed random function when charset is null
-
-* 1.6.5 (2012-04-11)
-
- * fixed a regression when a template only extends another one without defining any blocks
-
-* 1.6.4 (2012-04-02)
-
- * fixed PHP notice in Twig_Error::guessTemplateLine() introduced in 1.6.3
- * fixed performance when compiling large files
- * optimized parent template creation when the template does not use dynamic inheritance
-
-* 1.6.3 (2012-03-22)
-
- * fixed usage of Z_ADDREF_P for PHP 5.2 in the C extension
- * fixed compilation of numeric values used in templates when using a locale where the decimal separator is not a dot
- * made the strategy used to guess the real template file name and line number in exception messages much faster and more accurate
-
-* 1.6.2 (2012-03-18)
-
- * fixed sandbox mode when used with inheritance
- * added preserveKeys support for the slice filter
- * fixed the date filter when a DateTime instance is passed with a specific timezone
- * added a trim filter
-
-* 1.6.1 (2012-02-29)
-
- * fixed Twig C extension
- * removed the creation of Twig_Markup instances when not needed
- * added a way to set the default global timezone for dates
- * fixed the slice filter on strings when the length is not specified
- * fixed the creation of the cache directory in case of a race condition
-
-* 1.6.0 (2012-02-04)
-
- * fixed raw blocks when used with the whitespace trim option
- * made a speed optimization to macro calls when imported via the "from" tag
- * fixed globals, parsers, visitors, filters, tests, and functions management in Twig_Environment when a new one or new extension is added
- * fixed the attribute function when passing arguments
- * added slice notation support for the [] operator (syntactic sugar for the slice operator)
- * added a slice filter
- * added string support for the reverse filter
- * fixed the empty test and the length filter for Twig_Markup instances
- * added a date function to ease date comparison
- * fixed unary operators precedence
- * added recursive parsing support in the parser
- * added string and integer handling for the random function
-
-* 1.5.1 (2012-01-05)
-
- * fixed a regression when parsing strings
-
-* 1.5.0 (2012-01-04)
-
- * added Traversable objects support for the join filter
-
-* 1.5.0-RC2 (2011-12-30)
-
- * added a way to set the default global date interval format
- * fixed the date filter for DateInterval instances (setTimezone() does not exist for them)
- * refactored Twig_Template::display() to ease its extension
- * added a number_format filter
-
-* 1.5.0-RC1 (2011-12-26)
-
- * removed the need to quote hash keys
- * allowed hash keys to be any expression
- * added a do tag
- * added a flush tag
- * added support for dynamically named filters and functions
- * added a dump function to help debugging templates
- * added a nl2br filter
- * added a random function
- * added a way to change the default format for the date filter
- * fixed the lexer when an operator ending with a letter ends a line
- * added string interpolation support
- * enhanced exceptions for unknown filters, functions, tests, and tags
-
-* 1.4.0 (2011-12-07)
-
- * fixed lexer when using big numbers (> PHP_INT_MAX)
- * added missing preserveKeys argument to the reverse filter
- * fixed macros containing filter tag calls
-
-* 1.4.0-RC2 (2011-11-27)
-
- * removed usage of Reflection in Twig_Template::getAttribute()
- * added a C extension that can optionally replace Twig_Template::getAttribute()
- * added negative timestamp support to the date filter
-
-* 1.4.0-RC1 (2011-11-20)
-
- * optimized variable access when using PHP 5.4
- * changed the precedence of the .. operator to be more consistent with languages that implements such a feature like Ruby
- * added an Exception to Twig_Loader_Array::isFresh() method when the template does not exist to be consistent with other loaders
- * added Twig_Function_Node to allow more complex functions to have their own Node class
- * added Twig_Filter_Node to allow more complex filters to have their own Node class
- * added Twig_Test_Node to allow more complex tests to have their own Node class
- * added a better error message when a template is empty but contain a BOM
- * fixed "in" operator for empty strings
- * fixed the "defined" test and the "default" filter (now works with more than one call (foo.bar.foo) and for both values of the strict_variables option)
- * changed the way extensions are loaded (addFilter/addFunction/addGlobal/addTest/addNodeVisitor/addTokenParser/addExtension can now be called in any order)
- * added Twig_Environment::display()
- * made the escape filter smarter when the encoding is not supported by PHP
- * added a convert_encoding filter
- * moved all node manipulations outside the compile() Node method
- * made several speed optimizations
-
-* 1.3.0 (2011-10-08)
-
-no changes
-
-* 1.3.0-RC1 (2011-10-04)
-
- * added an optimization for the parent() function
- * added cache reloading when auto_reload is true and an extension has been modified
- * added the possibility to force the escaping of a string already marked as safe (instance of Twig_Markup)
- * allowed empty templates to be used as traits
- * added traits support for the "parent" function
-
-* 1.2.0 (2011-09-13)
-
-no changes
-
-* 1.2.0-RC1 (2011-09-10)
-
- * enhanced the exception when a tag remains unclosed
- * added support for empty Countable objects for the "empty" test
- * fixed algorithm that determines if a template using inheritance is valid (no output between block definitions)
- * added better support for encoding problems when escaping a string (available as of PHP 5.4)
- * added a way to ignore a missing template when using the "include" tag ({% include "foo" ignore missing %})
- * added support for an array of templates to the "include" and "extends" tags ({% include ['foo', 'bar'] %})
- * added support for bitwise operators in expressions
- * added the "attribute" function to allow getting dynamic attributes on variables
- * added Twig_Loader_Chain
- * added Twig_Loader_Array::setTemplate()
- * added an optimization for the set tag when used to capture a large chunk of static text
- * changed name regex to match PHP one "[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*" (works for blocks, tags, functions, filters, and macros)
- * removed the possibility to use the "extends" tag from a block
- * added "if" modifier support to "for" loops
-
-* 1.1.2 (2011-07-30)
-
- * fixed json_encode filter on PHP 5.2
- * fixed regression introduced in 1.1.1 ({{ block(foo|lower) }})
- * fixed inheritance when using conditional parents
- * fixed compilation of templates when the body of a child template is not empty
- * fixed output when a macro throws an exception
- * fixed a parsing problem when a large chunk of text is enclosed in a comment tag
- * added PHPDoc for all Token parsers and Core extension functions
-
-* 1.1.1 (2011-07-17)
-
- * added a performance optimization in the Optimizer (also helps to lower the number of nested level calls)
- * made some performance improvement for some edge cases
-
-* 1.1.0 (2011-06-28)
-
- * fixed json_encode filter
-
-* 1.1.0-RC3 (2011-06-24)
-
- * fixed method case-sensitivity when using the sandbox mode
- * added timezone support for the date filter
- * fixed possible security problems with NUL bytes
-
-* 1.1.0-RC2 (2011-06-16)
-
- * added an exception when the template passed to "use" is not a string
- * made 'a.b is defined' not throw an exception if a is not defined (in strict mode)
- * added {% line \d+ %} directive
-
-* 1.1.0-RC1 (2011-05-28)
-
-Flush your cache after upgrading.
-
- * fixed date filter when using a timestamp
- * fixed the defined test for some cases
- * fixed a parsing problem when a large chunk of text is enclosed in a raw tag
- * added support for horizontal reuse of template blocks (see docs for more information)
- * added whitespace control modifier to all tags (see docs for more information)
- * added null as an alias for none (the null test is also an alias for the none test now)
- * made TRUE, FALSE, NONE equivalent to their lowercase counterparts
- * wrapped all compilation and runtime exceptions with Twig_Error_Runtime and added logic to guess the template name and line
- * moved display() method to Twig_Template (generated templates should now use doDisplay() instead)
-
-* 1.0.0 (2011-03-27)
-
- * fixed output when using mbstring
- * fixed duplicate call of methods when using the sandbox
- * made the charset configurable for the escape filter
-
-* 1.0.0-RC2 (2011-02-21)
-
- * changed the way {% set %} works when capturing (the content is now marked as safe)
- * added support for macro name in the endmacro tag
- * make Twig_Error compatible with PHP 5.3.0 >
- * fixed an infinite loop on some Windows configurations
- * fixed the "length" filter for numbers
- * fixed Template::getAttribute() as properties in PHP are case sensitive
- * removed coupling between Twig_Node and Twig_Template
- * fixed the ternary operator precedence rule
-
-* 1.0.0-RC1 (2011-01-09)
-
-Backward incompatibilities:
-
- * the "items" filter, which has been deprecated for quite a long time now, has been removed
- * the "range" filter has been converted to a function: 0|range(10) -> range(0, 10)
- * the "constant" filter has been converted to a function: {{ some_date|date('DATE_W3C'|constant) }} -> {{ some_date|date(constant('DATE_W3C')) }}
- * the "cycle" filter has been converted to a function: {{ ['odd', 'even']|cycle(i) }} -> {{ cycle(['odd', 'even'], i) }}
- * the "for" tag does not support "joined by" anymore
- * the "autoescape" first argument is now "true"/"false" (instead of "on"/"off")
- * the "parent" tag has been replaced by a "parent" function ({{ parent() }} instead of {% parent %})
- * the "display" tag has been replaced by a "block" function ({{ block('title') }} instead of {% display title %})
- * removed the grammar and simple token parser (moved to the Twig Extensions repository)
-
-Changes:
-
- * added "needs_context" option for filters and functions (the context is then passed as a first argument)
- * added global variables support
- * made macros return their value instead of echoing directly (fixes calling a macro in sandbox mode)
- * added the "from" tag to import macros as functions
- * added support for functions (a function is just syntactic sugar for a getAttribute() call)
- * made macros callable when sandbox mode is enabled
- * added an exception when a macro uses a reserved name
- * the "default" filter now uses the "empty" test instead of just checking for null
- * added the "empty" test
-
-* 0.9.10 (2010-12-16)
-
-Backward incompatibilities:
-
- * The Escaper extension is enabled by default, which means that all displayed
- variables are now automatically escaped. You can revert to the previous
- behavior by removing the extension via $env->removeExtension('escaper')
- or just set the 'autoescape' option to 'false'.
- * removed the "without loop" attribute for the "for" tag (not needed anymore
- as the Optimizer take care of that for most cases)
- * arrays and hashes have now a different syntax
- * arrays keep the same syntax with square brackets: [1, 2]
- * hashes now use curly braces (["a": "b"] should now be written as {"a": "b"})
- * support for "arrays with keys" and "hashes without keys" is not supported anymore ([1, "foo": "bar"] or {"foo": "bar", 1})
- * the i18n extension is now part of the Twig Extensions repository
-
-Changes:
-
- * added the merge filter
- * removed 'is_escaper' option for filters (a left over from the previous version) -- you must use 'is_safe' now instead
- * fixed usage of operators as method names (like is, in, and not)
- * changed the order of execution for node visitors
- * fixed default() filter behavior when used with strict_variables set to on
- * fixed filesystem loader compatibility with PHAR files
- * enhanced error messages when an unexpected token is parsed in an expression
- * fixed filename not being added to syntax error messages
- * added the autoescape option to enable/disable autoescaping
- * removed the newline after a comment (mimics PHP behavior)
- * added a syntax error exception when parent block is used on a template that does not extend another one
- * made the Escaper extension enabled by default
- * fixed sandbox extension when used with auto output escaping
- * fixed escaper when wrapping a Twig_Node_Print (the original class must be preserved)
- * added an Optimizer extension (enabled by default; optimizes "for" loops and "raw" filters)
- * added priority to node visitors
-
-* 0.9.9 (2010-11-28)
-
-Backward incompatibilities:
- * the self special variable has been renamed to _self
- * the odd and even filters are now tests:
- {{ foo|odd }} must now be written {{ foo is odd }}
- * the "safe" filter has been renamed to "raw"
- * in Node classes,
- sub-nodes are now accessed via getNode() (instead of property access)
- attributes via getAttribute() (instead of array access)
- * the urlencode filter had been renamed to url_encode
- * the include tag now merges the passed variables with the current context by default
- (the old behavior is still possible by adding the "only" keyword)
- * moved Exceptions to Twig_Error_* (Twig_SyntaxError/Twig_RuntimeError are now Twig_Error_Syntax/Twig_Error_Runtime)
- * removed support for {{ 1 < i < 3 }} (use {{ i > 1 and i < 3 }} instead)
- * the "in" filter has been removed ({{ a|in(b) }} should now be written {{ a in b }})
-
-Changes:
- * added file and line to Twig_Error_Runtime exceptions thrown from Twig_Template
- * changed trans tag to accept any variable for the plural count
- * fixed sandbox mode (__toString() method check was not enforced if called implicitly from complex statements)
- * added the ** (power) operator
- * changed the algorithm used for parsing expressions
- * added the spaceless tag
- * removed trim_blocks option
- * added support for is*() methods for attributes (foo.bar now looks for foo->getBar() or foo->isBar())
- * changed all exceptions to extend Twig_Error
- * fixed unary expressions ({{ not(1 or 0) }})
- * fixed child templates (with an extend tag) that uses one or more imports
- * added support for {{ 1 not in [2, 3] }} (more readable than the current {{ not (1 in [2, 3]) }})
- * escaping has been rewritten
- * the implementation of template inheritance has been rewritten
- (blocks can now be called individually and still work with inheritance)
- * fixed error handling for if tag when a syntax error occurs within a subparse process
- * added a way to implement custom logic for resolving token parsers given a tag name
- * fixed js escaper to be stricter (now uses a whilelist-based js escaper)
- * added the following filers: "constant", "trans", "replace", "json_encode"
- * added a "constant" test
- * fixed objects with __toString() not being autoescaped
- * fixed subscript expressions when calling __call() (methods now keep the case)
- * added "test" feature (accessible via the "is" operator)
- * removed the debug tag (should be done in an extension)
- * fixed trans tag when no vars are used in plural form
- * fixed race condition when writing template cache
- * added the special _charset variable to reference the current charset
- * added the special _context variable to reference the current context
- * renamed self to _self (to avoid conflict)
- * fixed Twig_Template::getAttribute() for protected properties
-
-* 0.9.8 (2010-06-28)
-
-Backward incompatibilities:
- * the trans tag plural count is now attached to the plural tag:
- old: `{% trans count %}...{% plural %}...{% endtrans %}`
- new: `{% trans %}...{% plural count %}...{% endtrans %}`
-
- * added a way to translate strings coming from a variable ({% trans var %})
- * fixed trans tag when used with the Escaper extension
- * fixed default cache umask
- * removed Twig_Template instances from the debug tag output
- * fixed objects with __isset() defined
- * fixed set tag when used with a capture
- * fixed type hinting for Twig_Environment::addFilter() method
-
-* 0.9.7 (2010-06-12)
-
-Backward incompatibilities:
- * changed 'as' to '=' for the set tag ({% set title as "Title" %} must now be {% set title = "Title" %})
- * removed the sandboxed attribute of the include tag (use the new sandbox tag instead)
- * refactored the Node system (if you have custom nodes, you will have to update them to use the new API)
-
- * added self as a special variable that refers to the current template (useful for importing macros from the current template)
- * added Twig_Template instance support to the include tag
- * added support for dynamic and conditional inheritance ({% extends some_var %} and {% extends standalone ? "minimum" : "base" %})
- * added a grammar sub-framework to ease the creation of custom tags
- * fixed the for tag for large arrays (some loop variables are now only available for arrays and objects that implement the Countable interface)
- * removed the Twig_Resource::resolveMissingFilter() method
- * fixed the filter tag which did not apply filtering to included files
- * added a bunch of unit tests
- * added a bunch of phpdoc
- * added a sandbox tag in the sandbox extension
- * changed the date filter to support any date format supported by DateTime
- * added strict_variable setting to throw an exception when an invalid variable is used in a template (disabled by default)
- * added the lexer, parser, and compiler as arguments to the Twig_Environment constructor
- * changed the cache option to only accepts an explicit path to a cache directory or false
- * added a way to add token parsers, filters, and visitors without creating an extension
- * added three interfaces: Twig_NodeInterface, Twig_TokenParserInterface, and Twig_FilterInterface
- * changed the generated code to match the new coding standards
- * fixed sandbox mode (__toString() method check was not enforced if called implicitly from a simple statement like {{ article }})
- * added an exception when a child template has a non-empty body (as it is always ignored when rendering)
-
-* 0.9.6 (2010-05-12)
-
- * fixed variables defined outside a loop and for which the value changes in a for loop
- * fixed the test suite for PHP 5.2 and older versions of PHPUnit
- * added support for __call() in expression resolution
- * fixed node visiting for macros (macros are now visited by visitors as any other node)
- * fixed nested block definitions with a parent call (rarely useful but nonetheless supported now)
- * added the cycle filter
- * fixed the Lexer when mbstring.func_overload is used with an mbstring.internal_encoding different from ASCII
- * added a long-syntax for the set tag ({% set foo %}...{% endset %})
- * unit tests are now powered by PHPUnit
- * added support for gettext via the `i18n` extension
- * fixed twig_capitalize_string_filter() and fixed twig_length_filter() when used with UTF-8 values
- * added a more useful exception if an if tag is not closed properly
- * added support for escaping strategy in the autoescape tag
- * fixed lexer when a template has a big chunk of text between/in a block
-
-* 0.9.5 (2010-01-20)
-
-As for any new release, don't forget to remove all cached templates after
-upgrading.
-
-If you have defined custom filters, you MUST upgrade them for this release. To
-upgrade, replace "array" with "new Twig_Filter_Function", and replace the
-environment constant by the "needs_environment" option:
-
- // before
- 'even' => array('twig_is_even_filter', false),
- 'escape' => array('twig_escape_filter', true),
-
- // after
- 'even' => new Twig_Filter_Function('twig_is_even_filter'),
- 'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true)),
-
-If you have created NodeTransformer classes, you will need to upgrade them to
-the new interface (please note that the interface is not yet considered
-stable).
-
- * fixed list nodes that did not extend the Twig_NodeListInterface
- * added the "without loop" option to the for tag (it disables the generation of the loop variable)
- * refactored node transformers to node visitors
- * fixed automatic-escaping for blocks
- * added a way to specify variables to pass to an included template
- * changed the automatic-escaping rules to be more sensible and more configurable in custom filters (the documentation lists all the rules)
- * improved the filter system to allow object methods to be used as filters
- * changed the Array and String loaders to actually make use of the cache mechanism
- * included the default filter function definitions in the extension class files directly (Core, Escaper)
- * added the // operator (like the floor() PHP function)
- * added the .. operator (as a syntactic sugar for the range filter when the step is 1)
- * added the in operator (as a syntactic sugar for the in filter)
- * added the following filters in the Core extension: in, range
- * added support for arrays (same behavior as in PHP, a mix between lists and dictionaries, arrays and hashes)
- * enhanced some error messages to provide better feedback in case of parsing errors
-
-* 0.9.4 (2009-12-02)
-
-If you have custom loaders, you MUST upgrade them for this release: The
-Twig_Loader base class has been removed, and the Twig_LoaderInterface has also
-been changed (see the source code for more information or the documentation).
-
- * added support for DateTime instances for the date filter
- * fixed loop.last when the array only has one item
- * made it possible to insert newlines in tag and variable blocks
- * fixed a bug when a literal '\n' were present in a template text
- * fixed bug when the filename of a template contains */
- * refactored loaders
-
-* 0.9.3 (2009-11-11)
-
-This release is NOT backward compatible with the previous releases.
-
- The loaders do not take the cache and autoReload arguments anymore. Instead,
- the Twig_Environment class has two new options: cache and auto_reload.
- Upgrading your code means changing this kind of code:
-
- $loader = new Twig_Loader_Filesystem('/path/to/templates', '/path/to/compilation_cache', true);
- $twig = new Twig_Environment($loader);
-
- to something like this:
-
- $loader = new Twig_Loader_Filesystem('/path/to/templates');
- $twig = new Twig_Environment($loader, array(
- 'cache' => '/path/to/compilation_cache',
- 'auto_reload' => true,
- ));
-
- * deprecated the "items" filter as it is not needed anymore
- * made cache and auto_reload options of Twig_Environment instead of arguments of Twig_Loader
- * optimized template loading speed
- * removed output when an error occurs in a template and render() is used
- * made major speed improvements for loops (up to 300% on even the smallest loops)
- * added properties as part of the sandbox mode
- * added public properties support (obj.item can now be the item property on the obj object)
- * extended set tag to support expression as value ({% set foo as 'foo' ~ 'bar' %} )
- * fixed bug when \ was used in HTML
-
-* 0.9.2 (2009-10-29)
-
- * made some speed optimizations
- * changed the cache extension to .php
- * added a js escaping strategy
- * added support for short block tag
- * changed the filter tag to allow chained filters
- * made lexer more flexible as you can now change the default delimiters
- * added set tag
- * changed default directory permission when cache dir does not exist (more secure)
- * added macro support
- * changed filters first optional argument to be a Twig_Environment instance instead of a Twig_Template instance
- * made Twig_Autoloader::autoload() a static method
- * avoid writing template file if an error occurs
- * added $ escaping when outputting raw strings
- * enhanced some error messages to ease debugging
- * fixed empty cache files when the template contains an error
-
-* 0.9.1 (2009-10-14)
-
- * fixed a bug in PHP 5.2.6
- * fixed numbers with one than one decimal
- * added support for method calls with arguments ({{ foo.bar('a', 43) }})
- * made small speed optimizations
- * made minor tweaks to allow better extensibility and flexibility
-
-* 0.9.0 (2009-10-12)
-
- * Initial release
diff --git a/system/backend/php/vendor/twig/twig/LICENSE b/system/backend/php/vendor/twig/twig/LICENSE
index d06ced2a39c..fd8234e511b 100644
--- a/system/backend/php/vendor/twig/twig/LICENSE
+++ b/system/backend/php/vendor/twig/twig/LICENSE
@@ -1,31 +1,27 @@
-Copyright (c) 2009-2019 by the Twig Team.
+Copyright (c) 2009-present by the Twig Team.
-Some rights reserved.
+All rights reserved.
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution.
-
- * The names of the contributors may not be used to endorse or
- promote products derived from this software without specific
- prior written permission.
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Twig nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/system/backend/php/vendor/twig/twig/README.rst b/system/backend/php/vendor/twig/twig/README.rst
index f33ea336d86..fbe7e9a9f83 100644
--- a/system/backend/php/vendor/twig/twig/README.rst
+++ b/system/backend/php/vendor/twig/twig/README.rst
@@ -1,12 +1,20 @@
Twig, the flexible, fast, and secure template language for PHP
==============================================================
-Twig is a template language for PHP, released under the new BSD license (code
-and documentation).
+Twig is a template language for PHP.
Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.
+Sponsors
+--------
+
+.. raw:: html
+
+
+
+
+
More Information
----------------
diff --git a/system/backend/php/vendor/twig/twig/composer.json b/system/backend/php/vendor/twig/twig/composer.json
index c1bbd55a514..4bc2421a9da 100644
--- a/system/backend/php/vendor/twig/twig/composer.json
+++ b/system/backend/php/vendor/twig/twig/composer.json
@@ -5,6 +5,7 @@
"keywords": ["templating"],
"homepage": "https://twig.symfony.com",
"license": "BSD-3-Clause",
+ "minimum-stability": "dev",
"authors": [
{
"name": "Fabien Potencier",
@@ -14,7 +15,6 @@
},
{
"name": "Twig Team",
- "homepage": "https://twig.symfony.com/contributors",
"role": "Contributors"
},
{
@@ -24,13 +24,13 @@
}
],
"require": {
- "php": "^7.0",
+ "php": ">=7.1.3",
"symfony/polyfill-mbstring": "^1.3",
- "symfony/polyfill-ctype": "^1.8"
+ "symfony/polyfill-ctype": "^1.8",
+ "symfony/polyfill-php72": "^1.8"
},
"require-dev": {
- "symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0",
- "symfony/debug": "^4.0.0",
+ "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0",
"psr/container": "^1.0"
},
"autoload": {
@@ -42,13 +42,13 @@
}
},
"autoload-dev": {
- "psr-0" : {
- "Twig_Tests_" : "test/"
+ "psr-4" : {
+ "Twig\\Tests\\" : "tests/"
}
},
"extra": {
"branch-alias": {
- "dev-master": "2.11-dev"
+ "dev-master": "2.15-dev"
}
}
}
diff --git a/system/backend/php/vendor/twig/twig/doc/advanced.rst b/system/backend/php/vendor/twig/twig/doc/advanced.rst
deleted file mode 100644
index 4d22fcce613..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/advanced.rst
+++ /dev/null
@@ -1,917 +0,0 @@
-Extending Twig
-==============
-
-Twig can be extended in many ways; you can add extra tags, filters, tests,
-operators, global variables, and functions. You can even extend the parser
-itself with node visitors.
-
-.. note::
-
- The first section of this chapter describes how to extend Twig. If you want
- to reuse your changes in different projects or if you want to share them
- with others, you should then create an extension as described in the
- following section.
-
-.. caution::
-
- When extending Twig without creating an extension, Twig won't be able to
- recompile your templates when the PHP code is updated. To see your changes
- in real-time, either disable template caching or package your code into an
- extension (see the next section of this chapter).
-
-Before extending Twig, you must understand the differences between all the
-different possible extension points and when to use them.
-
-First, remember that Twig has two main language constructs:
-
-* ``{{ }}``: used to print the result of an expression evaluation;
-
-* ``{% %}``: used to execute statements.
-
-To understand why Twig exposes so many extension points, let's see how to
-implement a *Lorem ipsum* generator (it needs to know the number of words to
-generate).
-
-You can use a ``lipsum`` *tag*:
-
-.. code-block:: twig
-
- {% lipsum 40 %}
-
-That works, but using a tag for ``lipsum`` is not a good idea for at least
-three main reasons:
-
-* ``lipsum`` is not a language construct;
-* The tag outputs something;
-* The tag is not flexible as you cannot use it in an expression:
-
- .. code-block:: twig
-
- {{ 'some text' ~ {% lipsum 40 %} ~ 'some more text' }}
-
-In fact, you rarely need to create tags; and that's good news because tags are
-the most complex extension point.
-
-Now, let's use a ``lipsum`` *filter*:
-
-.. code-block:: twig
-
- {{ 40|lipsum }}
-
-Again, it works. But a filter should transform the passed value to something
-else. Here, we use the value to indicate the number of words to generate (so,
-``40`` is an argument of the filter, not the value we want to transform).
-
-Next, let's use a ``lipsum`` *function*:
-
-.. code-block:: twig
-
- {{ lipsum(40) }}
-
-Here we go. For this specific example, the creation of a function is the
-extension point to use. And you can use it anywhere an expression is accepted:
-
-.. code-block:: twig
-
- {{ 'some text' ~ lipsum(40) ~ 'some more text' }}
-
- {% set lipsum = lipsum(40) %}
-
-Lastly, you can also use a *global* object with a method able to generate lorem
-ipsum text:
-
-.. code-block:: twig
-
- {{ text.lipsum(40) }}
-
-As a rule of thumb, use functions for frequently used features and global
-objects for everything else.
-
-Keep in mind the following when you want to extend Twig:
-
-========== ========================== ========== =========================
-What? Implementation difficulty? How often? When?
-========== ========================== ========== =========================
-*macro* simple frequent Content generation
-*global* simple frequent Helper object
-*function* simple frequent Content generation
-*filter* simple frequent Value transformation
-*tag* complex rare DSL language construct
-*test* simple rare Boolean decision
-*operator* simple rare Values transformation
-========== ========================== ========== =========================
-
-Globals
--------
-
-A global variable is like any other template variable, except that it's
-available in all templates and macros::
-
- $twig = new \Twig\Environment($loader);
- $twig->addGlobal('text', new Text());
-
-You can then use the ``text`` variable anywhere in a template:
-
-.. code-block:: twig
-
- {{ text.lipsum(40) }}
-
-Filters
--------
-
-Creating a filter consists of associating a name with a PHP callable::
-
- // an anonymous function
- $filter = new \Twig\TwigFilter('rot13', function ($string) {
- return str_rot13($string);
- });
-
- // or a simple PHP function
- $filter = new \Twig\TwigFilter('rot13', 'str_rot13');
-
- // or a class static method
- $filter = new \Twig\TwigFilter('rot13', ['SomeClass', 'rot13Filter']);
- $filter = new \Twig\TwigFilter('rot13', 'SomeClass::rot13Filter');
-
- // or a class method
- $filter = new \Twig\TwigFilter('rot13', [$this, 'rot13Filter']);
- // the one below needs a runtime implementation (see below for more information)
- $filter = new \Twig\TwigFilter('rot13', ['SomeClass', 'rot13Filter']);
-
-The first argument passed to the ``\Twig\TwigFilter`` constructor is the name of the
-filter you will use in templates and the second one is the PHP callable to
-associate with it.
-
-Then, add the filter to the Twig environment::
-
- $twig = new \Twig\Environment($loader);
- $twig->addFilter($filter);
-
-And here is how to use it in a template:
-
-.. code-block:: twig
-
- {{ 'Twig'|rot13 }}
-
- {# will output Gjvt #}
-
-When called by Twig, the PHP callable receives the left side of the filter
-(before the pipe ``|``) as the first argument and the extra arguments passed
-to the filter (within parentheses ``()``) as extra arguments.
-
-For instance, the following code:
-
-.. code-block:: twig
-
- {{ 'TWIG'|lower }}
- {{ now|date('d/m/Y') }}
-
-is compiled to something like the following::
-
-
-
-
-The ``\Twig\TwigFilter`` class takes an array of options as its last argument::
-
- $filter = new \Twig\TwigFilter('rot13', 'str_rot13', $options);
-
-Environment-aware Filters
-~~~~~~~~~~~~~~~~~~~~~~~~~
-
-If you want to access the current environment instance in your filter, set the
-``needs_environment`` option to ``true``; Twig will pass the current
-environment as the first argument to the filter call::
-
- $filter = new \Twig\TwigFilter('rot13', function (Twig_Environment $env, $string) {
- // get the current charset for instance
- $charset = $env->getCharset();
-
- return str_rot13($string);
- }, ['needs_environment' => true]);
-
-Context-aware Filters
-~~~~~~~~~~~~~~~~~~~~~
-
-If you want to access the current context in your filter, set the
-``needs_context`` option to ``true``; Twig will pass the current context as
-the first argument to the filter call (or the second one if
-``needs_environment`` is also set to ``true``)::
-
- $filter = new \Twig\TwigFilter('rot13', function ($context, $string) {
- // ...
- }, ['needs_context' => true]);
-
- $filter = new \Twig\TwigFilter('rot13', function (Twig_Environment $env, $context, $string) {
- // ...
- }, ['needs_context' => true, 'needs_environment' => true]);
-
-Automatic Escaping
-~~~~~~~~~~~~~~~~~~
-
-If automatic escaping is enabled, the output of the filter may be escaped
-before printing. If your filter acts as an escaper (or explicitly outputs HTML
-or JavaScript code), you will want the raw output to be printed. In such a
-case, set the ``is_safe`` option::
-
- $filter = new \Twig\TwigFilter('nl2br', 'nl2br', ['is_safe' => ['html']]);
-
-Some filters may need to work on input that is already escaped or safe, for
-example when adding (safe) HTML tags to originally unsafe output. In such a
-case, set the ``pre_escape`` option to escape the input data before it is run
-through your filter::
-
- $filter = new \Twig\TwigFilter('somefilter', 'somefilter', ['pre_escape' => 'html', 'is_safe' => ['html']]);
-
-Variadic Filters
-~~~~~~~~~~~~~~~~
-
-When a filter should accept an arbitrary number of arguments, set the
-``is_variadic`` option to ``true``; Twig will pass the extra arguments as the
-last argument to the filter call as an array::
-
- $filter = new \Twig\TwigFilter('thumbnail', function ($file, array $options = []) {
- // ...
- }, ['is_variadic' => true]);
-
-Be warned that :ref:`named arguments ` passed to a variadic
-filter cannot be checked for validity as they will automatically end up in the
-option array.
-
-Dynamic Filters
-~~~~~~~~~~~~~~~
-
-A filter name containing the special ``*`` character is a dynamic filter and
-the ``*`` part will match any string::
-
- $filter = new \Twig\TwigFilter('*_path', function ($name, $arguments) {
- // ...
- });
-
-The following filters are matched by the above defined dynamic filter:
-
-* ``product_path``
-* ``category_path``
-
-A dynamic filter can define more than one dynamic parts::
-
- $filter = new \Twig\TwigFilter('*_path_*', function ($name, $suffix, $arguments) {
- // ...
- });
-
-The filter receives all dynamic part values before the normal filter arguments,
-but after the environment and the context. For instance, a call to
-``'foo'|a_path_b()`` will result in the following arguments to be passed to the
-filter: ``('a', 'b', 'foo')``.
-
-Deprecated Filters
-~~~~~~~~~~~~~~~~~~
-
-You can mark a filter as being deprecated by setting the ``deprecated`` option
-to ``true``. You can also give an alternative filter that replaces the
-deprecated one when that makes sense::
-
- $filter = new \Twig\TwigFilter('obsolete', function () {
- // ...
- }, ['deprecated' => true, 'alternative' => 'new_one']);
-
-When a filter is deprecated, Twig emits a deprecation notice when compiling a
-template using it. See :ref:`deprecation-notices` for more information.
-
-Functions
----------
-
-Functions are defined in the exact same way as filters, but you need to create
-an instance of ``\Twig\TwigFunction``::
-
- $twig = new \Twig\Environment($loader);
- $function = new \Twig\TwigFunction('function_name', function () {
- // ...
- });
- $twig->addFunction($function);
-
-Functions support the same features as filters, except for the ``pre_escape``
-and ``preserves_safety`` options.
-
-Tests
------
-
-Tests are defined in the exact same way as filters and functions, but you need
-to create an instance of ``\Twig\TwigTest``::
-
- $twig = new \Twig\Environment($loader);
- $test = new \Twig\TwigTest('test_name', function () {
- // ...
- });
- $twig->addTest($test);
-
-Tests allow you to create custom application specific logic for evaluating
-boolean conditions. As a simple example, let's create a Twig test that checks if
-objects are 'red'::
-
- $twig = new \Twig\Environment($loader);
- $test = new \Twig\TwigTest('red', function ($value) {
- if (isset($value->color) && $value->color == 'red') {
- return true;
- }
- if (isset($value->paint) && $value->paint == 'red') {
- return true;
- }
- return false;
- });
- $twig->addTest($test);
-
-Test functions must always return ``true``/``false``.
-
-When creating tests you can use the ``node_class`` option to provide custom test
-compilation. This is useful if your test can be compiled into PHP primitives.
-This is used by many of the tests built into Twig::
-
- $twig = new \Twig\Environment($loader);
- $test = new \Twig\TwigTest(
- 'odd',
- null,
- ['node_class' => \Twig\Node\Expression\Test\OddTest::class]);
- $twig->addTest($test);
-
- class Twig_Node_Expression_Test_Odd extends \Twig\Node\Expression\TestExpression
- {
- public function compile(\Twig\Compiler $compiler)
- {
- $compiler
- ->raw('(')
- ->subcompile($this->getNode('node'))
- ->raw(' % 2 == 1')
- ->raw(')')
- ;
- }
- }
-
-The above example shows how you can create tests that use a node class. The node
-class has access to one sub-node called ``node``. This sub-node contains the
-value that is being tested. When the ``odd`` filter is used in code such as:
-
-.. code-block:: twig
-
- {% if my_value is odd %}
-
-The ``node`` sub-node will contain an expression of ``my_value``. Node-based
-tests also have access to the ``arguments`` node. This node will contain the
-various other arguments that have been provided to your test.
-
-.. versionadded:: 2.6
- Dynamic tests support was added in Twig 2.6.
-
-If you want to pass a variable number of positional or named arguments to the
-test, set the ``is_variadic`` option to ``true``. Tests support dynamic
-names (see dynamic filters for the syntax).
-
-Tags
-----
-
-One of the most exciting features of a template engine like Twig is the
-possibility to define new **language constructs**. This is also the most complex
-feature as you need to understand how Twig's internals work.
-
-Most of the time though, a tag is not needed:
-
-* If your tag generates some output, use a **function** instead.
-
-* If your tag modifies some content and returns it, use a **filter** instead.
-
- For instance, if you want to create a tag that converts a Markdown formatted
- text to HTML, create a ``markdown`` filter instead:
-
- .. code-block:: twig
-
- {{ '**markdown** text'|markdown }}
-
- If you want use this filter on large amounts of text, wrap it with the
- :doc:`apply ` tag:
-
- .. code-block:: twig
-
- {% apply markdown %}
- Title
- =====
-
- Much better than creating a tag as you can **compose** filters.
- {% endapply %}
-
- .. note::
-
- The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
- previous versions.
-
-* If your tag does not output anything, but only exists because of a side
- effect, create a **function** that returns nothing and call it via the
- :doc:`filter ` tag.
-
- For instance, if you want to create a tag that logs text, create a ``log``
- function instead and call it via the :doc:`do ` tag:
-
- .. code-block:: twig
-
- {% do log('Log some things') %}
-
-If you still want to create a tag for a new language construct, great!
-
-Let's create a ``set`` tag that allows the definition of simple variables from
-within a template. The tag can be used like follows:
-
-.. code-block:: twig
-
- {% set name = "value" %}
-
- {{ name }}
-
- {# should output value #}
-
-.. note::
-
- The ``set`` tag is part of the Core extension and as such is always
- available. The built-in version is slightly more powerful and supports
- multiple assignments by default.
-
-Three steps are needed to define a new tag:
-
-* Defining a Token Parser class (responsible for parsing the template code);
-
-* Defining a Node class (responsible for converting the parsed code to PHP);
-
-* Registering the tag.
-
-Registering a new tag
-~~~~~~~~~~~~~~~~~~~~~
-
-Add a tag by calling the ``addTokenParser`` method on the ``\Twig\Environment``
-instance::
-
- $twig = new \Twig\Environment($loader);
- $twig->addTokenParser(new Project_Set_TokenParser());
-
-Defining a Token Parser
-~~~~~~~~~~~~~~~~~~~~~~~
-
-Now, let's see the actual code of this class::
-
- class Project_Set_TokenParser extends \Twig\TokenParser\AbstractTokenParser
- {
- public function parse(\Twig\Token $token)
- {
- $parser = $this->parser;
- $stream = $parser->getStream();
-
- $name = $stream->expect(\Twig\Token::NAME_TYPE)->getValue();
- $stream->expect(\Twig\Token::OPERATOR_TYPE, '=');
- $value = $parser->getExpressionParser()->parseExpression();
- $stream->expect(\Twig\Token::BLOCK_END_TYPE);
-
- return new Project_Set_Node($name, $value, $token->getLine(), $this->getTag());
- }
-
- public function getTag()
- {
- return 'set';
- }
- }
-
-The ``getTag()`` method must return the tag we want to parse, here ``set``.
-
-The ``parse()`` method is invoked whenever the parser encounters a ``set``
-tag. It should return a ``\Twig\Node\Node`` instance that represents the node (the
-``Project_Set_Node`` calls creating is explained in the next section).
-
-The parsing process is simplified thanks to a bunch of methods you can call
-from the token stream (``$this->parser->getStream()``):
-
-* ``getCurrent()``: Gets the current token in the stream.
-
-* ``next()``: Moves to the next token in the stream, *but returns the old one*.
-
-* ``test($type)``, ``test($value)`` or ``test($type, $value)``: Determines whether
- the current token is of a particular type or value (or both). The value may be an
- array of several possible values.
-
-* ``expect($type[, $value[, $message]])``: If the current token isn't of the given
- type/value a syntax error is thrown. Otherwise, if the type and value are correct,
- the token is returned and the stream moves to the next token.
-
-* ``look()``: Looks at the next token without consuming it.
-
-Parsing expressions is done by calling the ``parseExpression()`` like we did for
-the ``set`` tag.
-
-.. tip::
-
- Reading the existing ``TokenParser`` classes is the best way to learn all
- the nitty-gritty details of the parsing process.
-
-Defining a Node
-~~~~~~~~~~~~~~~
-
-The ``Project_Set_Node`` class itself is quite short::
-
- class Project_Set_Node extends \Twig\Node\Node
- {
- public function __construct($name, \Twig\Node\Expression\AbstractExpression $value, $line, $tag = null)
- {
- parent::__construct(['value' => $value], ['name' => $name], $line, $tag);
- }
-
- public function compile(\Twig\Compiler $compiler)
- {
- $compiler
- ->addDebugInfo($this)
- ->write('$context[\''.$this->getAttribute('name').'\'] = ')
- ->subcompile($this->getNode('value'))
- ->raw(";\n")
- ;
- }
- }
-
-The compiler implements a fluid interface and provides methods that helps the
-developer generate beautiful and readable PHP code:
-
-* ``subcompile()``: Compiles a node.
-
-* ``raw()``: Writes the given string as is.
-
-* ``write()``: Writes the given string by adding indentation at the beginning
- of each line.
-
-* ``string()``: Writes a quoted string.
-
-* ``repr()``: Writes a PHP representation of a given value (see
- ``\Twig\Node\ForNode`` for a usage example).
-
-* ``addDebugInfo()``: Adds the line of the original template file related to
- the current node as a comment.
-
-* ``indent()``: Indents the generated code (see ``\Twig\Node\BlockNode`` for a
- usage example).
-
-* ``outdent()``: Outdents the generated code (see ``\Twig\Node\BlockNode`` for a
- usage example).
-
-.. _creating_extensions:
-
-Creating an Extension
----------------------
-
-The main motivation for writing an extension is to move often used code into a
-reusable class like adding support for internationalization. An extension can
-define tags, filters, tests, operators, functions, and node visitors.
-
-Most of the time, it is useful to create a single extension for your project,
-to host all the specific tags and filters you want to add to Twig.
-
-.. tip::
-
- When packaging your code into an extension, Twig is smart enough to
- recompile your templates whenever you make a change to it (when
- ``auto_reload`` is enabled).
-
-.. note::
-
- Before writing your own extensions, have a look at the Twig official
- extension repository: https://github.com/twigphp/Twig-extensions.
-
-An extension is a class that implements the following interface::
-
- interface \Twig\Extension\ExtensionInterface
- {
- /**
- * Returns the token parser instances to add to the existing list.
- *
- * @return \Twig\TokenParser\TokenParserInterface[]
- */
- public function getTokenParsers();
-
- /**
- * Returns the node visitor instances to add to the existing list.
- *
- * @return \Twig\NodeVisitor\NodeVisitorInterface[]
- */
- public function getNodeVisitors();
-
- /**
- * Returns a list of filters to add to the existing list.
- *
- * @return \Twig\TwigFilter[]
- */
- public function getFilters();
-
- /**
- * Returns a list of tests to add to the existing list.
- *
- * @return \Twig\TwigTest[]
- */
- public function getTests();
-
- /**
- * Returns a list of functions to add to the existing list.
- *
- * @return \Twig\TwigFunction[]
- */
- public function getFunctions();
-
- /**
- * Returns a list of operators to add to the existing list.
- *
- * @return array First array of unary operators, second array of binary operators
- */
- public function getOperators();
- }
-
-To keep your extension class clean and lean, inherit from the built-in
-``\Twig\Extension\AbstractExtension`` class instead of implementing the interface as it provides
-empty implementations for all methods:
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- }
-
-This extension does nothing for now. We will customize it in the next sections.
-
-You can save your extension anywhere on the filesystem, as all extensions must
-be registered explicitly to be available in your templates.
-
-You can register an extension by using the ``addExtension()`` method on your
-main ``Environment`` object::
-
- $twig = new \Twig\Environment($loader);
- $twig->addExtension(new Project_Twig_Extension());
-
-.. tip::
-
- The Twig core extensions are great examples of how extensions work.
-
-Globals
-~~~~~~~
-
-Global variables can be registered in an extension via the ``getGlobals()``
-method::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension implements \Twig\Extension\GlobalsInterface
- {
- public function getGlobals()
- {
- return [
- 'text' => new Text(),
- ];
- }
-
- // ...
- }
-
-Functions
-~~~~~~~~~
-
-Functions can be registered in an extension via the ``getFunctions()``
-method::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getFunctions()
- {
- return [
- new \Twig\TwigFunction('lipsum', 'generate_lipsum'),
- ];
- }
-
- // ...
- }
-
-Filters
-~~~~~~~
-
-To add a filter to an extension, you need to override the ``getFilters()``
-method. This method must return an array of filters to add to the Twig
-environment::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getFilters()
- {
- return [
- new \Twig\TwigFilter('rot13', 'str_rot13'),
- ];
- }
-
- // ...
- }
-
-Tags
-~~~~
-
-Adding a tag in an extension can be done by overriding the
-``getTokenParsers()`` method. This method must return an array of tags to add
-to the Twig environment::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getTokenParsers()
- {
- return [new Project_Set_TokenParser()];
- }
-
- // ...
- }
-
-In the above code, we have added a single new tag, defined by the
-``Project_Set_TokenParser`` class. The ``Project_Set_TokenParser`` class is
-responsible for parsing the tag and compiling it to PHP.
-
-Operators
-~~~~~~~~~
-
-The ``getOperators()`` methods lets you add new operators. Here is how to add
-the ``!``, ``||``, and ``&&`` operators::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getOperators()
- {
- return [
- [
- '!' => ['precedence' => 50, 'class' => \Twig\Node\Expression\Unary\NotUnary::class],
- ],
- [
- '||' => ['precedence' => 10, 'class' => \Twig\Node\Expression\Binary\OrBinary::class, 'associativity' => \Twig\ExpressionParser::OPERATOR_LEFT],
- '&&' => ['precedence' => 15, 'class' => \Twig\Node\Expression\Binary\AndBinary::class, 'associativity' => \Twig\ExpressionParser::OPERATOR_LEFT],
- ],
- ];
- }
-
- // ...
- }
-
-Tests
-~~~~~
-
-The ``getTests()`` method lets you add new test functions::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getTests()
- {
- return [
- new \Twig\TwigTest('even', 'twig_test_even'),
- ];
- }
-
- // ...
- }
-
-Definition vs Runtime
-~~~~~~~~~~~~~~~~~~~~~
-
-Twig filters, functions, and tests runtime implementations can be defined as
-any valid PHP callable:
-
-* **functions/static methods**: Simple to implement and fast (used by all Twig
- core extensions); but it is hard for the runtime to depend on external
- objects;
-
-* **closures**: Simple to implement;
-
-* **object methods**: More flexible and required if your runtime code depends
- on external objects.
-
-The simplest way to use methods is to define them on the extension itself::
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- private $rot13Provider;
-
- public function __construct($rot13Provider)
- {
- $this->rot13Provider = $rot13Provider;
- }
-
- public function getFunctions()
- {
- return [
- new \Twig\TwigFunction('rot13', [$this, 'rot13']),
- ];
- }
-
- public function rot13($value)
- {
- return $this->rot13Provider->rot13($value);
- }
- }
-
-This is very convenient but not recommended as it makes template compilation
-depend on runtime dependencies even if they are not needed (think for instance
-as a dependency that connects to a database engine).
-
-You can easily decouple the extension definitions from their runtime
-implementations by registering a ``\Twig\RuntimeLoader\RuntimeLoaderInterface`` instance on
-the environment that knows how to instantiate such runtime classes (runtime
-classes must be autoload-able)::
-
- class RuntimeLoader implements \Twig\RuntimeLoader\RuntimeLoaderInterface
- {
- public function load($class)
- {
- // implement the logic to create an instance of $class
- // and inject its dependencies
- // most of the time, it means using your dependency injection container
- if ('Project_Twig_RuntimeExtension' === $class) {
- return new $class(new Rot13Provider());
- } else {
- // ...
- }
- }
- }
-
- $twig->addRuntimeLoader(new RuntimeLoader());
-
-.. note::
-
- Twig comes with a PSR-11 compatible runtime loader
- (``\Twig\RuntimeLoader\ContainerRuntimeLoader``).
-
-It is now possible to move the runtime logic to a new
-``Project_Twig_RuntimeExtension`` class and use it directly in the extension::
-
- class Project_Twig_RuntimeExtension
- {
- private $rot13Provider;
-
- public function __construct($rot13Provider)
- {
- $this->rot13Provider = $rot13Provider;
- }
-
- public function rot13($value)
- {
- return $this->rot13Provider->rot13($value);
- }
- }
-
- class Project_Twig_Extension extends \Twig\Extension\AbstractExtension
- {
- public function getFunctions()
- {
- return [
- new \Twig\TwigFunction('rot13', ['Project_Twig_RuntimeExtension', 'rot13']),
- // or
- new \Twig\TwigFunction('rot13', 'Project_Twig_RuntimeExtension::rot13'),
- ];
- }
- }
-
-Testing an Extension
---------------------
-
-Functional Tests
-~~~~~~~~~~~~~~~~
-
-You can create functional tests for extensions by creating the following file
-structure in your test directory::
-
- Fixtures/
- filters/
- foo.test
- bar.test
- functions/
- foo.test
- bar.test
- tags/
- foo.test
- bar.test
- IntegrationTest.php
-
-The ``IntegrationTest.php`` file should look like this::
-
- class Project_Tests_IntegrationTest extends \Twig\Test\IntegrationTestCase
- {
- public function getExtensions()
- {
- return [
- new Project_Twig_Extension1(),
- new Project_Twig_Extension2(),
- ];
- }
-
- public function getFixturesDir()
- {
- return dirname(__FILE__).'/Fixtures/';
- }
- }
-
-Fixtures examples can be found within the Twig repository
-`tests/Twig/Fixtures`_ directory.
-
-Node Tests
-~~~~~~~~~~
-
-Testing the node visitors can be complex, so extend your test cases from
-``\Twig\Test\NodeTestCase``. Examples can be found in the Twig repository
-`tests/Twig/Node`_ directory.
-
-.. _`rot13`: https://secure.php.net/manual/en/function.str-rot13.php
-.. _`tests/Twig/Fixtures`: https://github.com/twigphp/Twig/tree/2.x/test/Twig/Tests/Fixtures
-.. _`tests/Twig/Node`: https://github.com/twigphp/Twig/tree/2.x/test/Twig/Tests/Node
diff --git a/system/backend/php/vendor/twig/twig/doc/api.rst b/system/backend/php/vendor/twig/twig/doc/api.rst
deleted file mode 100644
index 5c0294c20b0..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/api.rst
+++ /dev/null
@@ -1,593 +0,0 @@
-Twig for Developers
-===================
-
-This chapter describes the API to Twig and not the template language. It will
-be most useful as reference to those implementing the template interface to
-the application and not those who are creating Twig templates.
-
-Basics
-------
-
-Twig uses a central object called the **environment** (of class
-``\Twig\Environment``). Instances of this class are used to store the
-configuration and extensions, and are used to load templates.
-
-Most applications create one ``\Twig\Environment`` object on application
-initialization and use that to load templates. In some cases, it might be useful
-to have multiple environments side by side, with different configurations.
-
-The typical way to configure Twig to load templates for an application looks
-roughly like this::
-
- require_once '/path/to/vendor/autoload.php';
-
- $loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
- $twig = new \Twig\Environment($loader, [
- 'cache' => '/path/to/compilation_cache',
- ]);
-
-This creates a template environment with a default configuration and a loader
-that looks up templates in the ``/path/to/templates/`` directory. Different
-loaders are available and you can also write your own if you want to load
-templates from a database or other resources.
-
-.. note::
-
- Notice that the second argument of the environment is an array of options.
- The ``cache`` option is a compilation cache directory, where Twig caches
- the compiled templates to avoid the parsing phase for sub-sequent
- requests. It is very different from the cache you might want to add for
- the evaluated templates. For such a need, you can use any available PHP
- cache library.
-
-Rendering Templates
--------------------
-
-To load a template from a Twig environment, call the ``load()`` method which
-returns a ``\Twig\TemplateWrapper`` instance::
-
- $template = $twig->load('index.html');
-
-To render the template with some variables, call the ``render()`` method::
-
- echo $template->render(['the' => 'variables', 'go' => 'here']);
-
-.. note::
-
- The ``display()`` method is a shortcut to output the rendered template.
-
-You can also load and render the template in one fell swoop::
-
- echo $twig->render('index.html', ['the' => 'variables', 'go' => 'here']);
-
-If a template defines blocks, they can be rendered individually via the
-``renderBlock()`` call::
-
- echo $template->renderBlock('block_name', ['the' => 'variables', 'go' => 'here']);
-
-.. _environment_options:
-
-Environment Options
--------------------
-
-When creating a new ``\Twig\Environment`` instance, you can pass an array of
-options as the constructor second argument::
-
- $twig = new \Twig\Environment($loader, ['debug' => true]);
-
-The following options are available:
-
-* ``debug`` *boolean*
-
- When set to ``true``, the generated templates have a
- ``__toString()`` method that you can use to display the generated nodes
- (default to ``false``).
-
-* ``charset`` *string* (defaults to ``utf-8``)
-
- The charset used by the templates.
-
-* ``base_template_class`` *string* (defaults to ``\Twig\Template``)
-
- The base template class to use for generated
- templates.
-
-* ``cache`` *string* or ``false``
-
- An absolute path where to store the compiled templates, or
- ``false`` to disable caching (which is the default).
-
-* ``auto_reload`` *boolean*
-
- When developing with Twig, it's useful to recompile the
- template whenever the source code changes. If you don't provide a value for
- the ``auto_reload`` option, it will be determined automatically based on the
- ``debug`` value.
-
-* ``strict_variables`` *boolean*
-
- If set to ``false``, Twig will silently ignore invalid
- variables (variables and or attributes/methods that do not exist) and
- replace them with a ``null`` value. When set to ``true``, Twig throws an
- exception instead (default to ``false``).
-
-* ``autoescape`` *string*
-
- Sets the default auto-escaping strategy (``name``, ``html``, ``js``, ``css``,
- ``url``, ``html_attr``, or a PHP callback that takes the template "filename"
- and returns the escaping strategy to use -- the callback cannot be a function
- name to avoid collision with built-in escaping strategies); set it to
- ``false`` to disable auto-escaping. The ``name`` escaping strategy determines
- the escaping strategy to use for a template based on the template filename
- extension (this strategy does not incur any overhead at runtime as
- auto-escaping is done at compilation time.)
-
-* ``optimizations`` *integer*
-
- A flag that indicates which optimizations to apply
- (default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
- disable).
-
-Loaders
--------
-
-Loaders are responsible for loading templates from a resource such as the file
-system.
-
-Compilation Cache
-~~~~~~~~~~~~~~~~~
-
-All template loaders can cache the compiled templates on the filesystem for
-future reuse. It speeds up Twig a lot as templates are only compiled once; and
-the performance boost is even larger if you use a PHP accelerator such as
-OPCache. See the ``cache`` and ``auto_reload`` options of ``\Twig\Environment``
-above for more information.
-
-Built-in Loaders
-~~~~~~~~~~~~~~~~
-
-Here is a list of the built-in loaders:
-
-``\Twig\Loader\FilesystemLoader``
-.................................
-
-``\Twig\Loader\FilesystemLoader`` loads templates from the file system. This loader
-can find templates in folders on the file system and is the preferred way to
-load them::
-
- $loader = new \Twig\Loader\FilesystemLoader($templateDir);
-
-It can also look for templates in an array of directories::
-
- $loader = new \Twig\Loader\FilesystemLoader([$templateDir1, $templateDir2]);
-
-With such a configuration, Twig will first look for templates in
-``$templateDir1`` and if they do not exist, it will fallback to look for them
-in the ``$templateDir2``.
-
-You can add or prepend paths via the ``addPath()`` and ``prependPath()``
-methods::
-
- $loader->addPath($templateDir3);
- $loader->prependPath($templateDir4);
-
-The filesystem loader also supports namespaced templates. This allows to group
-your templates under different namespaces which have their own template paths.
-
-When using the ``setPaths()``, ``addPath()``, and ``prependPath()`` methods,
-specify the namespace as the second argument (when not specified, these
-methods act on the "main" namespace)::
-
- $loader->addPath($templateDir, 'admin');
-
-Namespaced templates can be accessed via the special
-``@namespace_name/template_path`` notation::
-
- $twig->render('@admin/index.html', []);
-
-``\Twig\Loader\FilesystemLoader`` support absolute and relative paths. Using relative
-paths is preferred as it makes the cache keys independent of the project root
-directory (for instance, it allows warming the cache from a build server where
-the directory might be different from the one used on production servers)::
-
- $loader = new \Twig\Loader\FilesystemLoader('templates', getcwd().'/..');
-
-.. note::
-
- When not passing the root path as a second argument, Twig uses ``getcwd()``
- for relative paths.
-
-``\Twig\Loader\ArrayLoader``
-............................
-
-``\Twig\Loader\ArrayLoader`` loads a template from a PHP array. It is passed an
-array of strings bound to template names::
-
- $loader = new \Twig\Loader\ArrayLoader([
- 'index.html' => 'Hello {{ name }}!',
- ]);
- $twig = new \Twig\Environment($loader);
-
- echo $twig->render('index.html', ['name' => 'Fabien']);
-
-This loader is very useful for unit testing. It can also be used for small
-projects where storing all templates in a single PHP file might make sense.
-
-.. tip::
-
- When using the ``Array`` loader with a cache mechanism, you should know that
- a new cache key is generated each time a template content "changes" (the
- cache key being the source code of the template). If you don't want to see
- your cache grows out of control, you need to take care of clearing the old
- cache file by yourself.
-
-``\Twig\Loader\ChainLoader``
-............................
-
-``\Twig\Loader\ChainLoader`` delegates the loading of templates to other loaders::
-
- $loader1 = new \Twig\Loader\ArrayLoader([
- 'base.html' => '{% block content %}{% endblock %}',
- ]);
- $loader2 = new \Twig\Loader\ArrayLoader([
- 'index.html' => '{% extends "base.html" %}{% block content %}Hello {{ name }}{% endblock %}',
- 'base.html' => 'Will never be loaded',
- ]);
-
- $loader = new \Twig\Loader\ChainLoader([$loader1, $loader2]);
-
- $twig = new \Twig\Environment($loader);
-
-When looking for a template, Twig tries each loader in turn and returns as soon
-as the template is found. When rendering the ``index.html`` template from the
-above example, Twig will load it with ``$loader2`` but the ``base.html``
-template will be loaded from ``$loader1``.
-
-.. note::
-
- You can also add loaders via the ``addLoader()`` method.
-
-Create your own Loader
-~~~~~~~~~~~~~~~~~~~~~~
-
-All loaders implement the ``\Twig\Loader\LoaderInterface``::
-
- interface \Twig\Loader\LoaderInterface
- {
- /**
- * Returns the source context for a given template logical name.
- *
- * @param string $name The template logical name
- *
- * @return \Twig\Source
- *
- * @throws \Twig\Error\LoaderError When $name is not found
- */
- public function getSourceContext($name);
-
- /**
- * Gets the cache key to use for the cache for a given template name.
- *
- * @param string $name The name of the template to load
- *
- * @return string The cache key
- *
- * @throws \Twig\Error\LoaderError When $name is not found
- */
- public function getCacheKey($name);
-
- /**
- * Returns true if the template is still fresh.
- *
- * @param string $name The template name
- * @param timestamp $time The last modification time of the cached template
- *
- * @return bool true if the template is fresh, false otherwise
- *
- * @throws \Twig\Error\LoaderError When $name is not found
- */
- public function isFresh($name, $time);
-
- /**
- * Check if we have the source code of a template, given its name.
- *
- * @param string $name The name of the template to check if we can load
- *
- * @return bool If the template source code is handled by this loader or not
- */
- public function exists($name);
- }
-
-The ``isFresh()`` method must return ``true`` if the current cached template
-is still fresh, given the last modification time, or ``false`` otherwise.
-
-The ``getSourceContext()`` method must return an instance of ``\Twig\Source``.
-
-Using Extensions
-----------------
-
-Twig extensions are packages that add new features to Twig. Register an
-extension via the ``addExtension()`` method::
-
- $twig->addExtension(new \Twig\Extension\SandboxExtension());
-
-Twig comes bundled with the following extensions:
-
-* *Twig\Extension\CoreExtension*: Defines all the core features of Twig.
-
-* *Twig\Extension\DebugExtension*: Defines the ``dump`` function to help debug
- template variables.
-
-* *Twig\Extension\EscaperExtension*: Adds automatic output-escaping and the
- possibility to escape/unescape blocks of code.
-
-* *Twig\Extension\SandboxExtension*: Adds a sandbox mode to the default Twig
- environment, making it safe to evaluate untrusted code.
-
-* *Twig\Extension\ProfilerExtension*: Enabled the built-in Twig profiler.
-
-* *Twig\Extension\OptimizerExtension*: Optimizes the node tree before
- compilation.
-
-* *Twig\Extension\StringLoaderExtension*: Defined the ``template_from_string``
- function to allow loading templates from string in a template.
-
-The Core, Escaper, and Optimizer extensions are registered by default.
-
-Built-in Extensions
--------------------
-
-This section describes the features added by the built-in extensions.
-
-.. tip::
-
- Read the chapter about extending Twig to learn how to create your own
- extensions.
-
-Core Extension
-~~~~~~~~~~~~~~
-
-The ``core`` extension defines all the core features of Twig:
-
-* :doc:`Tags `;
-* :doc:`Filters `;
-* :doc:`Functions `;
-* :doc:`Tests `.
-
-Escaper Extension
-~~~~~~~~~~~~~~~~~
-
-The ``escaper`` extension adds automatic output escaping to Twig. It defines a
-tag, ``autoescape``, and a filter, ``raw``.
-
-When creating the escaper extension, you can switch on or off the global
-output escaping strategy::
-
- $escaper = new \Twig\Extension\EscaperExtension('html');
- $twig->addExtension($escaper);
-
-If set to ``html``, all variables in templates are escaped (using the ``html``
-escaping strategy), except those using the ``raw`` filter:
-
-.. code-block:: twig
-
- {{ article.to_html|raw }}
-
-You can also change the escaping mode locally by using the ``autoescape`` tag:
-
-.. code-block:: twig
-
- {% autoescape 'html' %}
- {{ var }}
- {{ var|raw }} {# var won't be escaped #}
- {{ var|escape }} {# var won't be double-escaped #}
- {% endautoescape %}
-
-.. warning::
-
- The ``autoescape`` tag has no effect on included files.
-
-The escaping rules are implemented as follows:
-
-* Literals (integers, booleans, arrays, ...) used in the template directly as
- variables or filter arguments are never automatically escaped:
-
- .. code-block:: twig
-
- {{ "Twig " }} {# won't be escaped #}
-
- {% set text = "Twig " %}
- {{ text }} {# will be escaped #}
-
-* Expressions which the result is always a literal or a variable marked safe
- are never automatically escaped:
-
- .. code-block:: twig
-
- {{ foo ? "Twig " : " Twig" }} {# won't be escaped #}
-
- {% set text = "Twig " %}
- {{ foo ? text : " Twig" }} {# will be escaped #}
-
- {% set text = "Twig " %}
- {{ foo ? text|raw : " Twig" }} {# won't be escaped #}
-
- {% set text = "Twig " %}
- {{ foo ? text|escape : " Twig" }} {# the result of the expression won't be escaped #}
-
-* Objects with a ``__toString`` method are converted to strings and
- escaped. You can mark some classes and/or interfaces as being safe for some
- strategies via ``EscaperExtension::addSafeClass()``:
-
- .. code-block:: twig
-
- // mark object of class Foo as safe for the HTML strategy
- $escaper->addSafeClass('Foo', ['html']);
-
- // mark object of interface Foo as safe for the HTML strategy
- $escaper->addSafeClass('FooInterface', ['html']);
-
- // mark object of class Foo as safe for the HTML and JS strategies
- $escaper->addSafeClass('Foo', ['html', 'js']);
-
- // mark object of class Foo as safe for all strategies
- $escaper->addSafeClass('Foo', ['all']);
-
-* Escaping is applied before printing, after any other filter is applied:
-
- .. code-block:: twig
-
- {{ var|upper }} {# is equivalent to {{ var|upper|escape }} #}
-
-* The `raw` filter should only be used at the end of the filter chain:
-
- .. code-block:: twig
-
- {{ var|raw|upper }} {# will be escaped #}
-
- {{ var|upper|raw }} {# won't be escaped #}
-
-* Automatic escaping is not applied if the last filter in the chain is marked
- safe for the current context (e.g. ``html`` or ``js``). ``escape`` and
- ``escape('html')`` are marked safe for HTML, ``escape('js')`` is marked
- safe for JavaScript, ``raw`` is marked safe for everything.
-
- .. code-block:: twig
-
- {% autoescape 'js' %}
- {{ var|escape('html') }} {# will be escaped for HTML and JavaScript #}
- {{ var }} {# will be escaped for JavaScript #}
- {{ var|escape('js') }} {# won't be double-escaped #}
- {% endautoescape %}
-
-.. note::
-
- Note that autoescaping has some limitations as escaping is applied on
- expressions after evaluation. For instance, when working with
- concatenation, ``{{ foo|raw ~ bar }}`` won't give the expected result as
- escaping is applied on the result of the concatenation, not on the
- individual variables (so, the ``raw`` filter won't have any effect here).
-
-Sandbox Extension
-~~~~~~~~~~~~~~~~~
-
-The ``sandbox`` extension can be used to evaluate untrusted code. Access to
-unsafe attributes and methods is prohibited. The sandbox security is managed
-by a policy instance. By default, Twig comes with one policy class:
-``\Twig\Sandbox\SecurityPolicy``. This class allows you to white-list some
-tags, filters, properties, and methods::
-
- $tags = ['if'];
- $filters = ['upper'];
- $methods = [
- 'Article' => ['getTitle', 'getBody'],
- ];
- $properties = [
- 'Article' => ['title', 'body'],
- ];
- $functions = ['range'];
- $policy = new \Twig\Sandbox\SecurityPolicy($tags, $filters, $methods, $properties, $functions);
-
-With the previous configuration, the security policy will only allow usage of
-the ``if`` tag, and the ``upper`` filter. Moreover, the templates will only be
-able to call the ``getTitle()`` and ``getBody()`` methods on ``Article``
-objects, and the ``title`` and ``body`` public properties. Everything else
-won't be allowed and will generate a ``\Twig\Sandbox\SecurityError`` exception.
-
-The policy object is the first argument of the sandbox constructor::
-
- $sandbox = new \Twig\Extension\SandboxExtension($policy);
- $twig->addExtension($sandbox);
-
-By default, the sandbox mode is disabled and should be enabled when including
-untrusted template code by using the ``sandbox`` tag:
-
-.. code-block:: twig
-
- {% sandbox %}
- {% include 'user.html' %}
- {% endsandbox %}
-
-You can sandbox all templates by passing ``true`` as the second argument of
-the extension constructor::
-
- $sandbox = new \Twig\Extension\SandboxExtension($policy, true);
-
-Profiler Extension
-~~~~~~~~~~~~~~~~~~
-
-The ``profiler`` extension enables a profiler for Twig templates; it should
-only be used on your development machines as it adds some overhead::
-
- $profile = new \Twig\Profiler\Profile();
- $twig->addExtension(new \Twig\Extension\ProfilerExtension($profile));
-
- $dumper = new \Twig\Profiler\Dumper\TextDumper();
- echo $dumper->dump($profile);
-
-A profile contains information about time and memory consumption for template,
-block, and macro executions.
-
-You can also dump the data in a `Blackfire.io `_
-compatible format::
-
- $dumper = new \Twig\Profiler\Dumper\BlackfireDumper();
- file_put_contents('/path/to/profile.prof', $dumper->dump($profile));
-
-Upload the profile to visualize it (create a `free account
-`_
-first):
-
-.. code-block:: sh
-
- blackfire --slot=7 upload /path/to/profile.prof
-
-Optimizer Extension
-~~~~~~~~~~~~~~~~~~~
-
-The ``optimizer`` extension optimizes the node tree before compilation::
-
- $twig->addExtension(new \Twig\Extension\OptimizerExtension());
-
-By default, all optimizations are turned on. You can select the ones you want
-to enable by passing them to the constructor::
-
- $optimizer = new \Twig\Extension\OptimizerExtension(\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_FOR);
-
- $twig->addExtension($optimizer);
-
-Twig supports the following optimizations:
-
-* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_ALL``, enables all optimizations
- (this is the default value).
-
-* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_NONE``, disables all optimizations.
- This reduces the compilation time, but it can increase the execution time
- and the consumed memory.
-
-* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_FOR``, optimizes the ``for`` tag by
- removing the ``loop`` variable creation whenever possible.
-
-* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_RAW_FILTER``, removes the ``raw``
- filter whenever possible.
-
-* ``\Twig\NodeVisitor\OptimizerNodeVisitor::OPTIMIZE_VAR_ACCESS``, simplifies the creation
- and access of variables in the compiled templates whenever possible.
-
-Exceptions
-----------
-
-Twig can throw exceptions:
-
-* ``\Twig\Error\Error``: The base exception for all errors.
-
-* ``\Twig\Error\SyntaxError``: Thrown to tell the user that there is a problem with
- the template syntax.
-
-* ``\Twig\Error\RuntimeError``: Thrown when an error occurs at runtime (when a filter
- does not exist for instance).
-
-* ``\Twig\Error\LoaderError``: Thrown when an error occurs during template loading.
-
-* ``\Twig\Sandbox\SecurityError``: Thrown when an unallowed tag, filter, or
- method is called in a sandboxed template.
diff --git a/system/backend/php/vendor/twig/twig/doc/coding_standards.rst b/system/backend/php/vendor/twig/twig/doc/coding_standards.rst
deleted file mode 100644
index 721b0f13aaf..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/coding_standards.rst
+++ /dev/null
@@ -1,101 +0,0 @@
-Coding Standards
-================
-
-When writing Twig templates, we recommend you to follow these official coding
-standards:
-
-* Put one (and only one) space after the start of a delimiter (``{{``, ``{%``,
- and ``{#``) and before the end of a delimiter (``}}``, ``%}``, and ``#}``):
-
- .. code-block:: twig
-
- {{ foo }}
- {# comment #}
- {% if foo %}{% endif %}
-
- When using the whitespace control character, do not put any spaces between
- it and the delimiter:
-
- .. code-block:: twig
-
- {{- foo -}}
- {#- comment -#}
- {%- if foo -%}{%- endif -%}
-
-* Put one (and only one) space before and after the following operators:
- comparison operators (``==``, ``!=``, ``<``, ``>``, ``>=``, ``<=``), math
- operators (``+``, ``-``, ``/``, ``*``, ``%``, ``//``, ``**``), logic
- operators (``not``, ``and``, ``or``), ``~``, ``is``, ``in``, and the ternary
- operator (``?:``):
-
- .. code-block:: twig
-
- {{ 1 + 2 }}
- {{ foo ~ bar }}
- {{ true ? true : false }}
-
-* Put one (and only one) space after the ``:`` sign in hashes and ``,`` in
- arrays and hashes:
-
- .. code-block:: twig
-
- {{ [1, 2, 3] }}
- {{ {'foo': 'bar'} }}
-
-* Do not put any spaces after an opening parenthesis and before a closing
- parenthesis in expressions:
-
- .. code-block:: twig
-
- {{ 1 + (2 * 3) }}
-
-* Do not put any spaces before and after string delimiters:
-
- .. code-block:: twig
-
- {{ 'foo' }}
- {{ "foo" }}
-
-* Do not put any spaces before and after the following operators: ``|``,
- ``.``, ``..``, ``[]``:
-
- .. code-block:: twig
-
- {{ foo|upper|lower }}
- {{ user.name }}
- {{ user[name] }}
- {% for i in 1..12 %}{% endfor %}
-
-* Do not put any spaces before and after the parenthesis used for filter and
- function calls:
-
- .. code-block:: twig
-
- {{ foo|default('foo') }}
- {{ range(1..10) }}
-
-* Do not put any spaces before and after the opening and the closing of arrays
- and hashes:
-
- .. code-block:: twig
-
- {{ [1, 2, 3] }}
- {{ {'foo': 'bar'} }}
-
-* Use lower cased and underscored variable names:
-
- .. code-block:: twig
-
- {% set foo = 'foo' %}
- {% set foo_bar = 'foo' %}
-
-* Indent your code inside tags (use the same indentation as the one used for
- the target language of the rendered template):
-
- .. code-block:: twig
-
- {% block foo %}
- {% if true %}
- true
- {% endif %}
- {% endblock %}
diff --git a/system/backend/php/vendor/twig/twig/doc/deprecated.rst b/system/backend/php/vendor/twig/twig/doc/deprecated.rst
deleted file mode 100644
index d7a6145ed4d..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/deprecated.rst
+++ /dev/null
@@ -1,115 +0,0 @@
-Deprecated Features
-===================
-
-This document lists deprecated features in Twig 2.x. Deprecated features are
-kept for backward compatibility and removed in the next major release (a
-feature that was deprecated in Twig 2.x is removed in Twig 3.0).
-
-PSR-0
------
-
-* PSR-0 classes are deprecated in favor of namespaced ones since Twig 2.7.
-
-Inheritance
------------
-
-* Defining a "block" definition in a non-capturing block in a child template is
- deprecated since Twig 2.5.0. In Twig 3.0, it will throw a
- ``Twig\Error\SyntaxError`` exception. It does not work anyway, so most
- projects won't need to do anything to upgrade.
-
-Errors
-------
-
- * Passing a string as the ``$source`` argument on ``\Twig\Error\Error`` /
- ``Twig\Error\Error`` constructor is deprecated since Twig 2.6.1. Pass an
- instance of ``Twig\Source`` instead.
-
-Tags
-----
-
-* The ``spaceless`` tag is deprecated in Twig 2.7. Use the ``spaceless`` filter
- instead or ``{% apply spaceless %}`` (the ``Twig\Node\SpacelessNode`` and
- ``Twig\TokenParser\SpacelessTokenParser`` classes are also deprecated).
-
-* Using the ``spaceless`` tag at the root level of a child template is
- deprecated in Twig 2.5.0. This does not work as one would expect it to work
- anyway. In Twig 3.0, it will throw a ``Twig\Error\SyntaxError`` exception.
-
-* The ``filter`` tag is deprecated in Twig 2.9. Use the ``apply`` tag instead
- (the ``Twig\TokenParser\FilterTokenParser`` classes is also deprecated).
-
-* Adding an ``if`` condition on a ``for`` tag is deprecated in Twig 2.10. Use a
- ``filter`` filter or an "if" condition inside the "for" body instead (if your condition
- depends on a variable updated inside the loop)
-
-Final Classes
--------------
-
-The following classes are marked as ``@final`` in Twig 2 and will be final in
-3.0:
-
-* ``Twig\Node\ModuleNode``
-* ``Twig\TwigFilter``
-* ``Twig\TwigFunction``
-* ``Twig\TwigTest``
-* ``Twig\Profiler\Profile``
-
-Parser
-------
-
-* As of Twig 2.7, the ``\Twig\Parser::isReservedMacroName()`` / ``Twig\Parser``
- function is deprecated and will be removed in Twig 3.0. It always returns
- ``false`` anyway as Twig 2 does not have any reserved macro names.
-
-Environment
------------
-
-* As of Twig 2.7, the ``base_template_class`` option on ``Twig\Environment`` is
- deprecated and will be removed in Twig 3.0.
-
-* As of Twig 2.7, the ``Twig\Environment::getBaseTemplateClass()`` and
- ``Twig\Environment::setBaseTemplateClass()`` methods are deprecated and will
- be removed in Twig 3.0.
-
-* As of Twig 2.7, the ``Twig\Environment::getTemplateClass()`` is marked as
- being internal and should not be used.
-
-* As of Twig 2.7, passing a ``Twig\Template`` instance to the
- ``Twig\Environment::load()`` and ``Twig\Environment::resolveTemplate()`` is
- deprecated.
-
-* Depending on the input, ``Twig\Environment::resolveTemplate()`` can return
- a ``Twig\Template`` or a ``Twig\TemplateWrapper`` instance. In Twig 3.0, this
- method will **always** return a ``Twig\TemplateWrapper`` instance. You should
- only rely on the methods of this class if you want to be forward-compatible.
-
-Interfaces
-----------
-
-* As of Twig 2.7, the empty ``Twig\Loader\ExistsLoaderInterface`` interface is
- deprecated and will be removed in Twig 3.0.
-
-* As of Twig 2.7, the ``Twig\Extension\InitRuntimeInterface`` interface is
- deprecated and will be removed in Twig 3.0.
-
-Extensions
-----------
-
-* As of Twig 2.11, the ``Twig\Extension\CoreExtension::setEscaper()`` and
- ``Twig\Extension\CoreExtension::getEscapers()`` are deprecated. Use the same
- methods on ``Twig\Extension\EscaperExtension`` instead.
-
-Miscellaneous
--------------
-
-* As of Twig 2.7, the ``Twig_SimpleFilter``, ``Twig_SimpleFunction``, and
- ``Twig_SimpleTest`` empty classes are deprecated and will be removed in Twig
- 3.0. Use ``Twig\TwigFilter``, ``Twig\TwigFunction``, and ``Twig\TwigTest``
- respectively.
-
-* As of Twig 2.8.2, all usage of
- ``Twig\Loader\FilesystemLoader::findTemplate()`` check for a ``null`` return
- value (same meaning as returning ``false``). If you are overidding
- ``Twig\Loader\FilesystemLoader::findTemplate()``, you must return ``null`` instead of ``false``
- to be compatible with Twig 3.0.
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/abs.rst b/system/backend/php/vendor/twig/twig/doc/filters/abs.rst
deleted file mode 100644
index 77d5cf05495..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/abs.rst
+++ /dev/null
@@ -1,18 +0,0 @@
-``abs``
-=======
-
-The ``abs`` filter returns the absolute value.
-
-.. code-block:: twig
-
- {# number = -5 #}
-
- {{ number|abs }}
-
- {# outputs 5 #}
-
-.. note::
-
- Internally, Twig uses the PHP `abs`_ function.
-
-.. _`abs`: https://secure.php.net/abs
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/batch.rst b/system/backend/php/vendor/twig/twig/doc/filters/batch.rst
deleted file mode 100644
index 2f936c15e5e..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/batch.rst
+++ /dev/null
@@ -1,48 +0,0 @@
-``batch``
-=========
-
-The ``batch`` filter "batches" items by returning a list of lists with the
-given number of items. A second parameter can be provided and used to fill in
-missing items:
-
-.. code-block:: twig
-
- {% set items = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] %}
-
-
- {% for row in items|batch(3, 'No item') %}
-
- {% for column in row %}
-
{{ column }}
- {% endfor %}
-
- {% endfor %}
-
-
-The above example will be rendered as:
-
-.. code-block:: twig
-
-
-
-
a
-
b
-
c
-
-
-
d
-
e
-
f
-
-
-
g
-
No item
-
No item
-
-
-
-Arguments
----------
-
-* ``size``: The size of the batch; fractional numbers will be rounded up
-* ``fill``: Used to fill in missing items
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/capitalize.rst b/system/backend/php/vendor/twig/twig/doc/filters/capitalize.rst
deleted file mode 100644
index 2353658bf15..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/capitalize.rst
+++ /dev/null
@@ -1,11 +0,0 @@
-``capitalize``
-==============
-
-The ``capitalize`` filter capitalizes a value. The first character will be
-uppercase, all others lowercase:
-
-.. code-block:: twig
-
- {{ 'my first car'|capitalize }}
-
- {# outputs 'My first car' #}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/column.rst b/system/backend/php/vendor/twig/twig/doc/filters/column.rst
deleted file mode 100644
index 97a3037dce2..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/column.rst
+++ /dev/null
@@ -1,27 +0,0 @@
-``column``
-==========
-
-.. versionadded:: 2.8
- The ``column`` filter was added in Twig 2.8.
-
-The ``column`` filter returns the values from a single column in the input
-array.
-
-.. code-block:: twig
-
- {% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}
-
- {% set fruits = items|column('fruit') %}
-
- {# fruits now contains ['apple', 'orange'] #}
-
-.. note::
-
- Internally, Twig uses the PHP `array_column`_ function.
-
-Arguments
----------
-
-* ``name``: The column name to extract
-
-.. _`array_column`: https://secure.php.net/array_column
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/convert_encoding.rst b/system/backend/php/vendor/twig/twig/doc/filters/convert_encoding.rst
deleted file mode 100644
index d977c752c8e..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/convert_encoding.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-``convert_encoding``
-====================
-
-The ``convert_encoding`` filter converts a string from one encoding to
-another. The first argument is the expected output charset and the second one
-is the input charset:
-
-.. code-block:: twig
-
- {{ data|convert_encoding('UTF-8', 'iso-2022-jp') }}
-
-.. note::
-
- This filter relies on the `iconv`_ extension.
-
-Arguments
----------
-
-* ``to``: The output charset
-* ``from``: The input charset
-
-.. _`iconv`: https://secure.php.net/iconv
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/date.rst b/system/backend/php/vendor/twig/twig/doc/filters/date.rst
deleted file mode 100644
index 195e8523612..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/date.rst
+++ /dev/null
@@ -1,82 +0,0 @@
-``date``
-========
-
-The ``date`` filter formats a date to a given format:
-
-.. code-block:: twig
-
- {{ post.published_at|date("m/d/Y") }}
-
-The format specifier is the same as supported by `date`_,
-except when the filtered data is of type `DateInterval`_, when the format must conform to
-`DateInterval::format`_ instead.
-
-The ``date`` filter accepts strings (it must be in a format supported by the
-`strtotime`_ function), `DateTime`_ instances, or `DateInterval`_ instances. For
-instance, to display the current date, filter the word "now":
-
-.. code-block:: twig
-
- {{ "now"|date("m/d/Y") }}
-
-To escape words and characters in the date format use ``\\`` in front of each
-character:
-
-.. code-block:: twig
-
- {{ post.published_at|date("F jS \\a\\t g:ia") }}
-
-If the value passed to the ``date`` filter is ``null``, it will return the
-current date by default. If an empty string is desired instead of the current
-date, use a ternary operator:
-
-.. code-block:: twig
-
- {{ post.published_at is empty ? "" : post.published_at|date("m/d/Y") }}
-
-If no format is provided, Twig will use the default one: ``F j, Y H:i``. This
-default can be easily changed by calling the ``setDateFormat()`` method on the
-``core`` extension instance. The first argument is the default format for
-dates and the second one is the default format for date intervals:
-
-.. code-block:: php
-
- $twig = new \Twig\Environment($loader);
- $twig->getExtension(\Twig\Extension\CoreExtension::class)->setDateFormat('d/m/Y', '%d days');
-
-Timezone
---------
-
-By default, the date is displayed by applying the default timezone (the one
-specified in php.ini or declared in Twig -- see below), but you can override
-it by explicitly specifying a timezone:
-
-.. code-block:: twig
-
- {{ post.published_at|date("m/d/Y", "Europe/Paris") }}
-
-If the date is already a DateTime object, and if you want to keep its current
-timezone, pass ``false`` as the timezone value:
-
-.. code-block:: twig
-
- {{ post.published_at|date("m/d/Y", false) }}
-
-The default timezone can also be set globally by calling ``setTimezone()``:
-
-.. code-block:: php
-
- $twig = new \Twig\Environment($loader);
- $twig->getExtension(\Twig\Extension\CoreExtension::class)->setTimezone('Europe/Paris');
-
-Arguments
----------
-
-* ``format``: The date format
-* ``timezone``: The date timezone
-
-.. _`strtotime`: https://secure.php.net/strtotime
-.. _`DateTime`: https://secure.php.net/DateTime
-.. _`DateInterval`: https://secure.php.net/DateInterval
-.. _`date`: https://secure.php.net/date
-.. _`DateInterval::format`: https://secure.php.net/DateInterval.format
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/date_modify.rst b/system/backend/php/vendor/twig/twig/doc/filters/date_modify.rst
deleted file mode 100644
index 5668f9e0584..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/date_modify.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-``date_modify``
-===============
-
-The ``date_modify`` filter modifies a date with a given modifier string:
-
-.. code-block:: twig
-
- {{ post.published_at|date_modify("+1 day")|date("m/d/Y") }}
-
-The ``date_modify`` filter accepts strings (it must be in a format supported
-by the `strtotime`_ function) or `DateTime`_ instances. You can easily combine
-it with the :doc:`date` filter for formatting.
-
-Arguments
----------
-
-* ``modifier``: The modifier
-
-.. _`strtotime`: https://secure.php.net/strtotime
-.. _`DateTime`: https://secure.php.net/DateTime
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/default.rst b/system/backend/php/vendor/twig/twig/doc/filters/default.rst
deleted file mode 100644
index c4ccb56a500..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/default.rst
+++ /dev/null
@@ -1,33 +0,0 @@
-``default``
-===========
-
-The ``default`` filter returns the passed default value if the value is
-undefined or empty, otherwise the value of the variable:
-
-.. code-block:: twig
-
- {{ var|default('var is not defined') }}
-
- {{ var.foo|default('foo item on var is not defined') }}
-
- {{ var['foo']|default('foo item on var is not defined') }}
-
- {{ ''|default('passed var is empty') }}
-
-When using the ``default`` filter on an expression that uses variables in some
-method calls, be sure to use the ``default`` filter whenever a variable can be
-undefined:
-
-.. code-block:: twig
-
- {{ var.method(foo|default('foo'))|default('foo') }}
-
-.. note::
-
- Read the documentation for the :doc:`defined<../tests/defined>` and
- :doc:`empty<../tests/empty>` tests to learn more about their semantics.
-
-Arguments
----------
-
-* ``default``: The default value
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/escape.rst b/system/backend/php/vendor/twig/twig/doc/filters/escape.rst
deleted file mode 100644
index 7c654ab60a1..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/escape.rst
+++ /dev/null
@@ -1,119 +0,0 @@
-``escape``
-==========
-
-The ``escape`` filter escapes a string using strategies that depend on the
-context.
-
-By default, it uses the HTML escaping strategy:
-
-.. code-block:: html+twig
-
-
- {{ user.username|escape }}
-
-
-For convenience, the ``e`` filter is defined as an alias:
-
-.. code-block:: html+twig
-
-
- {{ user.username|e }}
-
-
-The ``escape`` filter can also be used in other contexts than HTML thanks to
-an optional argument which defines the escaping strategy to use:
-
-.. code-block:: twig
-
- {{ user.username|e }}
- {# is equivalent to #}
- {{ user.username|e('html') }}
-
-And here is how to escape variables included in JavaScript code:
-
-.. code-block:: twig
-
- {{ user.username|escape('js') }}
- {{ user.username|e('js') }}
-
-The ``escape`` filter supports the following escaping strategies for HTML
-documents:
-
-* ``html``: escapes a string for the **HTML body** context.
-
-* ``js``: escapes a string for the **JavaScript** context.
-
-* ``css``: escapes a string for the **CSS** context. CSS escaping can be
- applied to any string being inserted into CSS and escapes everything except
- alphanumerics.
-
-* ``url``: escapes a string for the **URI or parameter** contexts. This should
- not be used to escape an entire URI; only a subcomponent being inserted.
-
-* ``html_attr``: escapes a string for the **HTML attribute** context.
-
-Note that doing contextual escaping in HTML documents is hard and choosing the
-right escaping strategy depends on a lot of factors. Please, read related
-documentation like `the OWASP prevention cheat sheet
-`_
-to learn more about this topic.
-
-.. note::
-
- Internally, ``escape`` uses the PHP native `htmlspecialchars`_ function
- for the HTML escaping strategy.
-
-.. caution::
-
- When using automatic escaping, Twig tries to not double-escape a variable
- when the automatic escaping strategy is the same as the one applied by the
- escape filter; but that does not work when using a variable as the
- escaping strategy:
-
- .. code-block:: twig
-
- {% set strategy = 'html' %}
-
- {% autoescape 'html' %}
- {{ var|escape('html') }} {# won't be double-escaped #}
- {{ var|escape(strategy) }} {# will be double-escaped #}
- {% endautoescape %}
-
- When using a variable as the escaping strategy, you should disable
- automatic escaping:
-
- .. code-block:: twig
-
- {% set strategy = 'html' %}
-
- {% autoescape 'html' %}
- {{ var|escape(strategy)|raw }} {# won't be double-escaped #}
- {% endautoescape %}
-
-Custom Escapers
----------------
-
-You can define custom escapers by calling the ``setEscaper()`` method on the
-``core`` extension instance. The first argument is the escaper name (to be
-used in the ``escape`` call) and the second one must be a valid PHP callable:
-
-.. code-block:: php
-
- $twig = new \Twig\Environment($loader);
- $twig->getExtension(\Twig\Extension\CoreExtension::class)->setEscaper('csv', 'csv_escaper');
-
-When called by Twig, the callable receives the Twig environment instance, the
-string to escape, and the charset.
-
-.. note::
-
- Built-in escapers cannot be overridden mainly because they should be
- considered as the final implementation and also for better performance.
-
-Arguments
----------
-
-* ``strategy``: The escaping strategy
-* ``charset``: The string charset
-
-.. _`htmlspecialchars`: https://secure.php.net/htmlspecialchars
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/filter.rst b/system/backend/php/vendor/twig/twig/doc/filters/filter.rst
deleted file mode 100644
index 310e63a73e4..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/filter.rst
+++ /dev/null
@@ -1,58 +0,0 @@
-``filter``
-=========
-
-.. versionadded:: 1.41
- The ``filter`` filter was added in Twig 1.41 and 2.10.
-
-The ``filter`` filter filters elements of a sequence or a mapping using an arrow
-function. The arrow function receives the value of the sequence or mapping:
-
-.. code-block:: twig
-
- {% set sizes = [34, 36, 38, 40, 42] %}
-
- {{ sizes|filter(v => v > 38)|join(', ') }}
- {# output 40, 42 #}
-
-Combined with the ``for`` tag, it allows to filter the items to iterate over:
-
-.. code-block:: twig
-
- {% for v in sizes|filter(v => v > 38) -%}
- {{ v }}
- {% endfor %}
- {# output 40 42 #}
-
-It also works with mappings:
-
-.. code-block:: twig
-
- {% set sizes = {
- xs: 34,
- s: 36,
- m: 38,
- l: 40,
- xl: 42,
- } %}
-
- {% for k, v in sizes|filter(v => v > 38) -%}
- {{ k }} = {{ v }}
- {% endfor %}
- {# output l = 40 xl = 42 #}
-
-The arrow function also receives the key as a second argument:
-
-.. code-block:: twig
-
- {% for k, v in sizes|filter((v, k) => v > 38 and k != "xl") -%}
- {{ k }} = {{ v }}
- {% endfor %}
- {# output l = 40 #}
-
-Note that the arrow function has access to the current context.
-
-Arguments
----------
-
-* ``array``: The sequence or mapping
-* ``arrow``: The arrow function
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/first.rst b/system/backend/php/vendor/twig/twig/doc/filters/first.rst
deleted file mode 100644
index 8d7081a53f1..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/first.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-``first``
-=========
-
-The ``first`` filter returns the first "element" of a sequence, a mapping, or
-a string:
-
-.. code-block:: twig
-
- {{ [1, 2, 3, 4]|first }}
- {# outputs 1 #}
-
- {{ { a: 1, b: 2, c: 3, d: 4 }|first }}
- {# outputs 1 #}
-
- {{ '1234'|first }}
- {# outputs 1 #}
-
-.. note::
-
- It also works with objects implementing the `Traversable`_ interface.
-
-.. _`Traversable`: https://secure.php.net/manual/en/class.traversable.php
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/format.rst b/system/backend/php/vendor/twig/twig/doc/filters/format.rst
deleted file mode 100644
index c0c96ee3f54..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/format.rst
+++ /dev/null
@@ -1,16 +0,0 @@
-``format``
-==========
-
-The ``format`` filter formats a given string by replacing the placeholders
-(placeholders follows the `sprintf`_ notation):
-
-.. code-block:: twig
-
- {{ "I like %s and %s."|format(foo, "bar") }}
-
- {# outputs I like foo and bar
- if the foo parameter equals to the foo string. #}
-
-.. _`sprintf`: https://secure.php.net/sprintf
-
-.. seealso:: :doc:`replace`
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/index.rst b/system/backend/php/vendor/twig/twig/doc/filters/index.rst
deleted file mode 100644
index f3468f683c9..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/index.rst
+++ /dev/null
@@ -1,42 +0,0 @@
-Filters
-=======
-
-.. toctree::
- :maxdepth: 1
-
- abs
- batch
- capitalize
- column
- convert_encoding
- date
- date_modify
- default
- escape
- filter
- first
- format
- join
- json_encode
- keys
- last
- length
- lower
- map
- merge
- nl2br
- number_format
- raw
- reduce
- replace
- reverse
- round
- slice
- sort
- spaceless
- split
- striptags
- title
- trim
- upper
- url_encode
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/join.rst b/system/backend/php/vendor/twig/twig/doc/filters/join.rst
deleted file mode 100644
index a9ea147e404..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/join.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-``join``
-========
-
-.. versionadded:: 2.6.1
- The ``and`` argument was added in Twig 2.6.1.
-
-The ``join`` filter returns a string which is the concatenation of the items
-of a sequence:
-
-.. code-block:: twig
-
- {{ [1, 2, 3]|join }}
- {# returns 123 #}
-
-The separator between elements is an empty string per default, but you can
-define it with the optional first parameter:
-
-.. code-block:: twig
-
- {{ [1, 2, 3]|join('|') }}
- {# outputs 1|2|3 #}
-
-A second parameter can also be provided that will be the separator used between
-the last two items of the sequence:
-
-.. code-block:: twig
-
- {{ [1, 2, 3]|join(', ', ' and ') }}
- {# outputs 1, 2 and 3 #}
-
-Arguments
----------
-
-* ``glue``: The separator
-* ``and``: The separator for the last pair of input items
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/json_encode.rst b/system/backend/php/vendor/twig/twig/doc/filters/json_encode.rst
deleted file mode 100644
index 434e2f17832..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/json_encode.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-``json_encode``
-===============
-
-The ``json_encode`` filter returns the JSON representation of a value:
-
-.. code-block:: twig
-
- {{ data|json_encode() }}
-
-.. note::
-
- Internally, Twig uses the PHP `json_encode`_ function.
-
-Arguments
----------
-
-* ``options``: A bitmask of `json_encode options`_: ``{{
- data|json_encode(constant('JSON_PRETTY_PRINT')) }}``.
- Combine constants using :ref:`bitwise operators`:
- ``{{ data|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_HEX_QUOT')) }}``
-
-.. _`json_encode`: https://secure.php.net/json_encode
-.. _`json_encode options`: https://secure.php.net/manual/en/json.constants.php
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/keys.rst b/system/backend/php/vendor/twig/twig/doc/filters/keys.rst
deleted file mode 100644
index 58609471720..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/keys.rst
+++ /dev/null
@@ -1,11 +0,0 @@
-``keys``
-========
-
-The ``keys`` filter returns the keys of an array. It is useful when you want to
-iterate over the keys of an array:
-
-.. code-block:: twig
-
- {% for key in array|keys %}
- ...
- {% endfor %}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/last.rst b/system/backend/php/vendor/twig/twig/doc/filters/last.rst
deleted file mode 100644
index 2b7c45bd167..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/last.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-``last``
-========
-
-The ``last`` filter returns the last "element" of a sequence, a mapping, or
-a string:
-
-.. code-block:: twig
-
- {{ [1, 2, 3, 4]|last }}
- {# outputs 4 #}
-
- {{ { a: 1, b: 2, c: 3, d: 4 }|last }}
- {# outputs 4 #}
-
- {{ '1234'|last }}
- {# outputs 4 #}
-
-.. note::
-
- It also works with objects implementing the `Traversable`_ interface.
-
-.. _`Traversable`: https://secure.php.net/manual/en/class.traversable.php
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/length.rst b/system/backend/php/vendor/twig/twig/doc/filters/length.rst
deleted file mode 100644
index 3ea6d1a65d3..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/length.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-``length``
-==========
-
-.. versionadded:: 2.3
-
- Support for the ``__toString()`` magic method has been added in Twig 2.3.
-
-The ``length`` filter returns the number of items of a sequence or mapping, or
-the length of a string.
-
-For objects that implement the ``Countable`` interface, ``length`` will use the
-return value of the ``count()`` method.
-
-For objects that implement the ``__toString()`` magic method (and not ``Countable``),
-it will return the length of the string provided by that method.
-
-For objects that implement the ``IteratorAggregate`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
-
-.. code-block:: twig
-
- {% if users|length > 10 %}
- ...
- {% endif %}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/lower.rst b/system/backend/php/vendor/twig/twig/doc/filters/lower.rst
deleted file mode 100644
index c0a0e0cddf4..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/lower.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-``lower``
-=========
-
-The ``lower`` filter converts a value to lowercase:
-
-.. code-block:: twig
-
- {{ 'WELCOME'|lower }}
-
- {# outputs 'welcome' #}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/map.rst b/system/backend/php/vendor/twig/twig/doc/filters/map.rst
deleted file mode 100644
index 777b05a7c34..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/map.rst
+++ /dev/null
@@ -1,38 +0,0 @@
-``map``
-=======
-
-.. versionadded:: 1.41
- The ``map`` filter was added in Twig 1.41 and 2.10.
-
-The ``map`` filter applies an arrow function to the elements of a sequence or a
-mapping. The arrow function receives the value of the sequence or mapping:
-
-.. code-block:: twig
-
- {% set people = [
- {first: "Bob", last: "Smith"},
- {first: "Alice", last: "Dupond"},
- ] %}
-
- {{ people|map(p => "#{p.first} #{p.last}")|join(', ') }}
- {# outputs Bob Smith, Alice Dupond #}
-
-The arrow function also receives the key as a second argument:
-
-.. code-block:: twig
-
- {% set people = {
- "Bob": "Smith",
- "Alice": "Dupond",
- } %}
-
- {{ people|map((first, last) => "#{first} #{last}")|join(', ') }}
- {# outputs Bob Smith, Alice Dupond #}
-
-Note that the arrow function has access to the current context.
-
-Arguments
----------
-
-* ``array``: The sequence or mapping
-* ``arrow``: The arrow function
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/merge.rst b/system/backend/php/vendor/twig/twig/doc/filters/merge.rst
deleted file mode 100644
index e26e51c242b..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/merge.rst
+++ /dev/null
@@ -1,48 +0,0 @@
-``merge``
-=========
-
-The ``merge`` filter merges an array with another array:
-
-.. code-block:: twig
-
- {% set values = [1, 2] %}
-
- {% set values = values|merge(['apple', 'orange']) %}
-
- {# values now contains [1, 2, 'apple', 'orange'] #}
-
-New values are added at the end of the existing ones.
-
-The ``merge`` filter also works on hashes:
-
-.. code-block:: twig
-
- {% set items = { 'apple': 'fruit', 'orange': 'fruit', 'peugeot': 'unknown' } %}
-
- {% set items = items|merge({ 'peugeot': 'car', 'renault': 'car' }) %}
-
- {# items now contains { 'apple': 'fruit', 'orange': 'fruit', 'peugeot': 'car', 'renault': 'car' } #}
-
-For hashes, the merging process occurs on the keys: if the key does not
-already exist, it is added but if the key already exists, its value is
-overridden.
-
-.. tip::
-
- If you want to ensure that some values are defined in an array (by given
- default values), reverse the two elements in the call:
-
- .. code-block:: twig
-
- {% set items = { 'apple': 'fruit', 'orange': 'fruit' } %}
-
- {% set items = { 'apple': 'unknown' }|merge(items) %}
-
- {# items now contains { 'apple': 'fruit', 'orange': 'fruit' } #}
-
-.. note::
-
- Internally, Twig uses the PHP `array_merge`_ function. It supports
- Traversable objects by transforming those to arrays.
-
-.. _`array_merge`: https://secure.php.net/array_merge
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/nl2br.rst b/system/backend/php/vendor/twig/twig/doc/filters/nl2br.rst
deleted file mode 100644
index 1eefb04aa0c..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/nl2br.rst
+++ /dev/null
@@ -1,19 +0,0 @@
-``nl2br``
-=========
-
-The ``nl2br`` filter inserts HTML line breaks before all newlines in a string:
-
-.. code-block:: twig
-
- {{ "I like Twig.\nYou will like it too."|nl2br }}
- {# outputs
-
- I like Twig.
- You will like it too.
-
- #}
-
-.. note::
-
- The ``nl2br`` filter pre-escapes the input before applying the
- transformation.
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/number_format.rst b/system/backend/php/vendor/twig/twig/doc/filters/number_format.rst
deleted file mode 100644
index 77b613b9717..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/number_format.rst
+++ /dev/null
@@ -1,50 +0,0 @@
-``number_format``
-=================
-
-The ``number_format`` filter formats numbers. It is a wrapper around PHP's
-`number_format`_ function:
-
-.. code-block:: twig
-
- {{ 200.35|number_format }}
-
-You can control the number of decimal places, decimal point, and thousands
-separator using the additional arguments:
-
-.. code-block:: twig
-
- {{ 9800.333|number_format(2, '.', ',') }}
-
-To format negative numbers, wrap the number with parentheses (needed because of
-Twig's :ref:`precedence of operators `:
-
-.. code-block:: twig
-
- {{ -9800.333|number_format(2, '.', ',') }} {# outputs : -9 #}
- {{ (-9800.333)|number_format(2, '.', ',') }} {# outputs : -9,800.33 #}
-
-If no formatting options are provided then Twig will use the default formatting
-options of:
-
-* 0 decimal places.
-* ``.`` as the decimal point.
-* ``,`` as the thousands separator.
-
-These defaults can be easily changed through the core extension:
-
-.. code-block:: php
-
- $twig = new \Twig\Environment($loader);
- $twig->getExtension(\Twig\Extension\CoreExtension::class)->setNumberFormat(3, '.', ',');
-
-The defaults set for ``number_format`` can be over-ridden upon each call using the
-additional parameters.
-
-Arguments
----------
-
-* ``decimal``: The number of decimal points to display
-* ``decimal_point``: The character(s) to use for the decimal point
-* ``thousand_sep``: The character(s) to use for the thousands separator
-
-.. _`number_format`: https://secure.php.net/number_format
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/raw.rst b/system/backend/php/vendor/twig/twig/doc/filters/raw.rst
deleted file mode 100644
index ad74a52aee1..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/raw.rst
+++ /dev/null
@@ -1,38 +0,0 @@
-``raw``
-=======
-
-The ``raw`` filter marks the value as being "safe", which means that in an
-environment with automatic escaping enabled this variable will not be escaped
-if ``raw`` is the last filter applied to it:
-
-.. code-block:: twig
-
- {% autoescape %}
- {{ var|raw }} {# var won't be escaped #}
- {% endautoescape %}
-
-.. note::
-
- **This note only applies to Twig before versions 1.39 and 2.8**.
-
- Be careful when using the ``raw`` filter inside expressions:
-
- .. code-block:: twig
-
- {% autoescape %}
- {% set hello = 'Hello' %}
- {% set hola = 'Hola' %}
-
- {{ false ? 'Hola' : hello|raw }}
- does not render the same as
- {{ false ? hola : hello|raw }}
- but renders the same as
- {{ (false ? hola : hello)|raw }}
- {% endautoescape %}
-
- The first ternary statement is not escaped: ``hello`` is marked as being
- safe and Twig does not escape static values (see
- :doc:`escape<../tags/autoescape>`). In the second ternary statement, even
- if ``hello`` is marked as safe, ``hola`` remains unsafe and so is the whole
- expression. The third ternary statement is marked as safe and the result is
- not escaped.
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/reduce.rst b/system/backend/php/vendor/twig/twig/doc/filters/reduce.rst
deleted file mode 100644
index 7d04d6c7b08..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/reduce.rst
+++ /dev/null
@@ -1,33 +0,0 @@
-``reduce``
-=========
-
-.. versionadded:: 1.41
- The ``reduce`` filter was added in Twig 1.41 and 2.10.
-
-The ``reduce`` filter iteratively reduces a sequence or a mapping to a single
-value using an arrow function, so as to reduce it to a single value. The arrow
-function receives the return value of the previous iteration and the current
-value of the sequence or mapping:
-
-.. code-block:: twig
-
- {% set numbers = [1, 2, 3] %}
-
- {{ numbers|reduce((carry, v) => carry + v) }}
- {# output 6 #}
-
-The ``reduce`` filter takes an ``initial`` value as a second argument:
-
-.. code-block:: twig
-
- {{ numbers|reduce((carry, v) => carry + v, 10) }}
- {# output 16 #}
-
-Note that the arrow function has access to the current context.
-
-Arguments
----------
-
-* ``array``: The sequence or mapping
-* ``arrow``: The arrow function
-* ``initial``: The initial value
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/replace.rst b/system/backend/php/vendor/twig/twig/doc/filters/replace.rst
deleted file mode 100644
index ceb6c009715..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/replace.rst
+++ /dev/null
@@ -1,25 +0,0 @@
-``replace``
-===========
-
-The ``replace`` filter formats a given string by replacing the placeholders
-(placeholders are free-form):
-
-.. code-block:: twig
-
- {{ "I like %this% and %that%."|replace({'%this%': foo, '%that%': "bar"}) }}
-
- {# outputs I like foo and bar
- if the foo parameter equals to the foo string. #}
-
- {# using % as a delimiter is purely conventional and optional #}
-
- {{ "I like this and --that--."|replace({'this': foo, '--that--': "bar"}) }}
-
- {# outputs I like foo and bar #}
-
-Arguments
----------
-
-* ``from``: The placeholder values
-
-.. seealso:: :doc:`format`
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/reverse.rst b/system/backend/php/vendor/twig/twig/doc/filters/reverse.rst
deleted file mode 100644
index c5ceb7d0508..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/reverse.rst
+++ /dev/null
@@ -1,44 +0,0 @@
-``reverse``
-===========
-
-The ``reverse`` filter reverses a sequence, a mapping, or a string:
-
-.. code-block:: twig
-
- {% for user in users|reverse %}
- ...
- {% endfor %}
-
- {{ '1234'|reverse }}
-
- {# outputs 4321 #}
-
-.. tip::
-
- For sequences and mappings, numeric keys are not preserved. To reverse
- them as well, pass ``true`` as an argument to the ``reverse`` filter:
-
- .. code-block:: twig
-
- {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse %}
- {{ key }}: {{ value }}
- {%- endfor %}
-
- {# output: 0: c 1: b 2: a #}
-
- {% for key, value in {1: "a", 2: "b", 3: "c"}|reverse(true) %}
- {{ key }}: {{ value }}
- {%- endfor %}
-
- {# output: 3: c 2: b 1: a #}
-
-.. note::
-
- It also works with objects implementing the `Traversable`_ interface.
-
-Arguments
----------
-
-* ``preserve_keys``: Preserve keys when reversing a mapping or a sequence.
-
-.. _`Traversable`: https://secure.php.net/Traversable
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/round.rst b/system/backend/php/vendor/twig/twig/doc/filters/round.rst
deleted file mode 100644
index 2c970b7f9e1..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/round.rst
+++ /dev/null
@@ -1,34 +0,0 @@
-``round``
-=========
-
-The ``round`` filter rounds a number to a given precision:
-
-.. code-block:: twig
-
- {{ 42.55|round }}
- {# outputs 43 #}
-
- {{ 42.55|round(1, 'floor') }}
- {# outputs 42.5 #}
-
-The ``round`` filter takes two optional arguments; the first one specifies the
-precision (default is ``0``) and the second the rounding method (default is
-``common``):
-
-* ``common`` rounds either up or down (rounds the value up to precision decimal
- places away from zero, when it is half way there -- making 1.5 into 2 and
- -1.5 into -2);
-
-* ``ceil`` always rounds up;
-
-* ``floor`` always rounds down.
-
-.. note::
-
- The ``//`` operator is equivalent to ``|round(0, 'floor')``.
-
-Arguments
----------
-
-* ``precision``: The rounding precision
-* ``method``: The rounding method
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/slice.rst b/system/backend/php/vendor/twig/twig/doc/filters/slice.rst
deleted file mode 100644
index 9cc0ca4e814..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/slice.rst
+++ /dev/null
@@ -1,68 +0,0 @@
-``slice``
-===========
-
-The ``slice`` filter extracts a slice of a sequence, a mapping, or a string:
-
-.. code-block:: twig
-
- {% for i in [1, 2, 3, 4, 5]|slice(1, 2) %}
- {# will iterate over 2 and 3 #}
- {% endfor %}
-
- {{ '12345'|slice(1, 2) }}
-
- {# outputs 23 #}
-
-You can use any valid expression for both the start and the length:
-
-.. code-block:: twig
-
- {% for i in [1, 2, 3, 4, 5]|slice(start, length) %}
- {# ... #}
- {% endfor %}
-
-As syntactic sugar, you can also use the ``[]`` notation:
-
-.. code-block:: twig
-
- {% for i in [1, 2, 3, 4, 5][start:length] %}
- {# ... #}
- {% endfor %}
-
- {{ '12345'[1:2] }} {# will display "23" #}
-
- {# you can omit the first argument -- which is the same as 0 #}
- {{ '12345'[:2] }} {# will display "12" #}
-
- {# you can omit the last argument -- which will select everything till the end #}
- {{ '12345'[2:] }} {# will display "345" #}
-
-The ``slice`` filter works as the `array_slice`_ PHP function for arrays and
-`mb_substr`_ for strings with a fallback to `substr`_.
-
-If the start is non-negative, the sequence will start at that start in the
-variable. If start is negative, the sequence will start that far from the end
-of the variable.
-
-If length is given and is positive, then the sequence will have up to that
-many elements in it. If the variable is shorter than the length, then only the
-available variable elements will be present. If length is given and is
-negative then the sequence will stop that many elements from the end of the
-variable. If it is omitted, then the sequence will have everything from offset
-up until the end of the variable.
-
-.. note::
-
- It also works with objects implementing the `Traversable`_ interface.
-
-Arguments
----------
-
-* ``start``: The start of the slice
-* ``length``: The size of the slice
-* ``preserve_keys``: Whether to preserve key or not (when the input is an array)
-
-.. _`Traversable`: https://secure.php.net/manual/en/class.traversable.php
-.. _`array_slice`: https://secure.php.net/array_slice
-.. _`mb_substr` : https://secure.php.net/mb-substr
-.. _`substr`: https://secure.php.net/substr
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/sort.rst b/system/backend/php/vendor/twig/twig/doc/filters/sort.rst
deleted file mode 100644
index f7c0329fe23..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/sort.rst
+++ /dev/null
@@ -1,18 +0,0 @@
-``sort``
-========
-
-The ``sort`` filter sorts an array:
-
-.. code-block:: twig
-
- {% for user in users|sort %}
- ...
- {% endfor %}
-
-.. note::
-
- Internally, Twig uses the PHP `asort`_ function to maintain index
- association. It supports Traversable objects by transforming
- those to arrays.
-
-.. _`asort`: https://secure.php.net/asort
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/spaceless.rst b/system/backend/php/vendor/twig/twig/doc/filters/spaceless.rst
deleted file mode 100644
index 17966a81971..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/spaceless.rst
+++ /dev/null
@@ -1,65 +0,0 @@
-``spaceless``
-=============
-
-.. versionadded:: 1.38
-
- The ``spaceless`` filter was added in Twig 1.38.
-
-Use the ``spaceless`` filter to remove whitespace *between HTML tags*, not
-whitespace within HTML tags or whitespace in plain text:
-
-.. code-block:: twig
-
- {{
- "
- foo
-
- "|spaceless }}
-
- {# output will be
foo
#}
-
-You can combine ``spaceless`` with the ``apply`` tag to apply the transformation
-on large amounts of HTML:
-
-.. code-block:: twig
-
- {% apply spaceless %}
-
- foo
-
- {% endapply %}
-
- {# output will be
foo
#}
-
-.. note::
-
- The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
- previous versions.
-
-This tag is not meant to "optimize" the size of the generated HTML content but
-merely to avoid extra whitespace between HTML tags to avoid browser rendering
-quirks under some circumstances.
-
-.. caution::
-
- As the filter uses a regular expression behind the scenes, its performance
- is directly related to the text size you are working on (remember that
- filters are executed at runtime).
-
-.. tip::
-
- If you want to optimize the size of the generated HTML content, gzip
- compress the output instead.
-
-.. tip::
-
- If you want to create a tag that actually removes all extra whitespace in
- an HTML string, be warned that this is not as easy as it seems to be
- (think of ``textarea`` or ``pre`` tags for instance). Using a third-party
- library like Tidy is probably a better idea.
-
-.. tip::
-
- For more information on whitespace control, read the
- :ref:`dedicated section ` of the documentation and learn how
- you can also use the whitespace control modifier on your tags.
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/split.rst b/system/backend/php/vendor/twig/twig/doc/filters/split.rst
deleted file mode 100644
index 38c4b7df04d..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/split.rst
+++ /dev/null
@@ -1,50 +0,0 @@
-``split``
-=========
-
-The ``split`` filter splits a string by the given delimiter and returns a list
-of strings:
-
-.. code-block:: twig
-
- {% set foo = "one,two,three"|split(',') %}
- {# foo contains ['one', 'two', 'three'] #}
-
-You can also pass a ``limit`` argument:
-
-* If ``limit`` is positive, the returned array will contain a maximum of
- limit elements with the last element containing the rest of string;
-
-* If ``limit`` is negative, all components except the last -limit are
- returned;
-
-* If ``limit`` is zero, then this is treated as 1.
-
-.. code-block:: twig
-
- {% set foo = "one,two,three,four,five"|split(',', 3) %}
- {# foo contains ['one', 'two', 'three,four,five'] #}
-
-If the ``delimiter`` is an empty string, then value will be split by equal
-chunks. Length is set by the ``limit`` argument (one character by default).
-
-.. code-block:: twig
-
- {% set foo = "123"|split('') %}
- {# foo contains ['1', '2', '3'] #}
-
- {% set bar = "aabbcc"|split('', 2) %}
- {# bar contains ['aa', 'bb', 'cc'] #}
-
-.. note::
-
- Internally, Twig uses the PHP `explode`_ or `str_split`_ (if delimiter is
- empty) functions for string splitting.
-
-Arguments
----------
-
-* ``delimiter``: The delimiter
-* ``limit``: The limit argument
-
-.. _`explode`: https://secure.php.net/explode
-.. _`str_split`: https://secure.php.net/str_split
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/striptags.rst b/system/backend/php/vendor/twig/twig/doc/filters/striptags.rst
deleted file mode 100644
index 62b2a7b3c13..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/striptags.rst
+++ /dev/null
@@ -1,29 +0,0 @@
-``striptags``
-=============
-
-The ``striptags`` filter strips SGML/XML tags and replace adjacent whitespace
-by one space:
-
-.. code-block:: twig
-
- {{ some_html|striptags }}
-
-You can also provide tags which should not be stripped:
-
-.. code-block:: twig
-
- {{ some_html|striptags('
') }}
-
-In this example, the `` ``, `` ``, ``
``, and ``
`` tags won't be
-removed from the string.
-
-.. note::
-
- Internally, Twig uses the PHP `strip_tags`_ function.
-
-Arguments
----------
-
-* ``allowable_tags``: Tags which should not be stripped
-
-.. _`strip_tags`: https://secure.php.net/strip_tags
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/title.rst b/system/backend/php/vendor/twig/twig/doc/filters/title.rst
deleted file mode 100644
index dd0311ca3dc..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/title.rst
+++ /dev/null
@@ -1,11 +0,0 @@
-``title``
-=========
-
-The ``title`` filter returns a titlecased version of the value. Words will
-start with uppercase letters, all remaining characters are lowercase:
-
-.. code-block:: twig
-
- {{ 'my first car'|title }}
-
- {# outputs 'My First Car' #}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/trim.rst b/system/backend/php/vendor/twig/twig/doc/filters/trim.rst
deleted file mode 100644
index 81d5e041511..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/trim.rst
+++ /dev/null
@@ -1,39 +0,0 @@
-``trim``
-========
-
-The ``trim`` filter strips whitespace (or other characters) from the beginning
-and end of a string:
-
-.. code-block:: twig
-
- {{ ' I like Twig. '|trim }}
-
- {# outputs 'I like Twig.' #}
-
- {{ ' I like Twig.'|trim('.') }}
-
- {# outputs ' I like Twig' #}
-
- {{ ' I like Twig. '|trim(side='left') }}
-
- {# outputs 'I like Twig. ' #}
-
- {{ ' I like Twig. '|trim(' ', 'right') }}
-
- {# outputs ' I like Twig.' #}
-
-.. note::
-
- Internally, Twig uses the PHP `trim`_, `ltrim`_, and `rtrim`_ functions.
-
-Arguments
----------
-
-* ``character_mask``: The characters to strip
-
-* ``side``: The default is to strip from the left and the right (`both`) sides, but `left`
- and `right` will strip from either the left side or right side only
-
-.. _`trim`: https://secure.php.net/trim
-.. _`ltrim`: https://secure.php.net/ltrim
-.. _`rtrim`: https://secure.php.net/rtrim
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/upper.rst b/system/backend/php/vendor/twig/twig/doc/filters/upper.rst
deleted file mode 100644
index 01c9fbb0b53..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/upper.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-``upper``
-=========
-
-The ``upper`` filter converts a value to uppercase:
-
-.. code-block:: twig
-
- {{ 'welcome'|upper }}
-
- {# outputs 'WELCOME' #}
diff --git a/system/backend/php/vendor/twig/twig/doc/filters/url_encode.rst b/system/backend/php/vendor/twig/twig/doc/filters/url_encode.rst
deleted file mode 100644
index 50a44e5d672..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/filters/url_encode.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-``url_encode``
-==============
-
-The ``url_encode`` filter percent encodes a given string as URL segment
-or an array as query string:
-
-.. code-block:: twig
-
- {{ "path-seg*ment"|url_encode }}
- {# outputs "path-seg%2Ament" #}
-
- {{ "string with spaces"|url_encode }}
- {# outputs "string%20with%20spaces" #}
-
- {{ {'param': 'value', 'foo': 'bar'}|url_encode }}
- {# outputs "param=value&foo=bar" #}
-
-.. note::
-
- Internally, Twig uses the PHP ``rawurlencode``.
-
-.. _`rawurlencode`: https://secure.php.net/rawurlencode
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/attribute.rst b/system/backend/php/vendor/twig/twig/doc/functions/attribute.rst
deleted file mode 100644
index e9d9a842ef3..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/attribute.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-``attribute``
-=============
-
-The ``attribute`` function can be used to access a "dynamic" attribute of a
-variable:
-
-.. code-block:: twig
-
- {{ attribute(object, method) }}
- {{ attribute(object, method, arguments) }}
- {{ attribute(array, item) }}
-
-In addition, the ``defined`` test can check for the existence of a dynamic
-attribute:
-
-.. code-block:: twig
-
- {{ attribute(object, method) is defined ? 'Method exists' : 'Method does not exist' }}
-
-.. note::
-
- The resolution algorithm is the same as the one used for the ``.``
- notation, except that the item can be any valid expression.
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/block.rst b/system/backend/php/vendor/twig/twig/doc/functions/block.rst
deleted file mode 100644
index 01184320347..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/block.rst
+++ /dev/null
@@ -1,35 +0,0 @@
-``block``
-=========
-
-When a template uses inheritance and if you want to print a block multiple
-times, use the ``block`` function:
-
-.. code-block:: twig
-
- {% block title %}{% endblock %}
-
-
{{ block('title') }}
-
- {% block body %}{% endblock %}
-
-The ``block`` function can also be used to display one block from another
-template:
-
-.. code-block:: twig
-
- {{ block("title", "common_blocks.twig") }}
-
-Use the ``defined`` test to check if a block exists in the context of the
-current template:
-
-.. code-block:: twig
-
- {% if block("footer") is defined %}
- ...
- {% endif %}
-
- {% if block("footer", "common_blocks.twig") is defined %}
- ...
- {% endif %}
-
-.. seealso:: :doc:`extends<../tags/extends>`, :doc:`parent<../functions/parent>`
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/constant.rst b/system/backend/php/vendor/twig/twig/doc/functions/constant.rst
deleted file mode 100644
index 660bf870c0b..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/constant.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-``constant``
-============
-
-``constant`` returns the constant value for a given string:
-
-.. code-block:: twig
-
- {{ some_date|date(constant('DATE_W3C')) }}
- {{ constant('Namespace\\Classname::CONSTANT_NAME') }}
-
-You can read constants from object instances as well:
-
-.. code-block:: twig
-
- {{ constant('RSS', date) }}
-
-Use the ``defined`` test to check if a constant is defined:
-
-.. code-block:: twig
-
- {% if constant('SOME_CONST') is defined %}
- ...
- {% endif %}
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/cycle.rst b/system/backend/php/vendor/twig/twig/doc/functions/cycle.rst
deleted file mode 100644
index 84cff6a1d5a..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/cycle.rst
+++ /dev/null
@@ -1,28 +0,0 @@
-``cycle``
-=========
-
-The ``cycle`` function cycles on an array of values:
-
-.. code-block:: twig
-
- {% set start_year = date() | date('Y') %}
- {% set end_year = start_year + 5 %}
-
- {% for year in start_year..end_year %}
- {{ cycle(['odd', 'even'], loop.index0) }}
- {% endfor %}
-
-The array can contain any number of values:
-
-.. code-block:: twig
-
- {% set fruits = ['apple', 'orange', 'citrus'] %}
-
- {% for i in 0..10 %}
- {{ cycle(fruits, i) }}
- {% endfor %}
-
-Arguments
----------
-
-* ``position``: The cycle position
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/date.rst b/system/backend/php/vendor/twig/twig/doc/functions/date.rst
deleted file mode 100644
index ee80a4e0314..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/date.rst
+++ /dev/null
@@ -1,46 +0,0 @@
-``date``
-========
-
-Converts an argument to a date to allow date comparison:
-
-.. code-block:: twig
-
- {% if date(user.created_at) < date('-2days') %}
- {# do something #}
- {% endif %}
-
-The argument must be in one of PHP’s supported `date and time formats`_.
-
-You can pass a timezone as the second argument:
-
-.. code-block:: twig
-
- {% if date(user.created_at) < date('-2days', 'Europe/Paris') %}
- {# do something #}
- {% endif %}
-
-If no argument is passed, the function returns the current date:
-
-.. code-block:: twig
-
- {% if date(user.created_at) < date() %}
- {# always! #}
- {% endif %}
-
-.. note::
-
- You can set the default timezone globally by calling ``setTimezone()`` on
- the ``core`` extension instance:
-
- .. code-block:: php
-
- $twig = new \Twig\Environment($loader);
- $twig->getExtension(\Twig\Extension\CoreExtension::class)->setTimezone('Europe/Paris');
-
-Arguments
----------
-
-* ``date``: The date
-* ``timezone``: The timezone
-
-.. _`date and time formats`: https://secure.php.net/manual/en/datetime.formats.php
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/dump.rst b/system/backend/php/vendor/twig/twig/doc/functions/dump.rst
deleted file mode 100644
index b295b875a61..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/dump.rst
+++ /dev/null
@@ -1,66 +0,0 @@
-``dump``
-========
-
-The ``dump`` function dumps information about a template variable. This is
-mostly useful to debug a template that does not behave as expected by
-introspecting its variables:
-
-.. code-block:: twig
-
- {{ dump(user) }}
-
-.. note::
-
- The ``dump`` function is not available by default. You must add the
- ``\Twig\Extension\DebugExtension`` extension explicitly when creating your Twig
- environment::
-
- $twig = new \Twig\Environment($loader, [
- 'debug' => true,
- // ...
- ]);
- $twig->addExtension(new \Twig\Extension\DebugExtension());
-
- Even when enabled, the ``dump`` function won't display anything if the
- ``debug`` option on the environment is not enabled (to avoid leaking debug
- information on a production server).
-
-In an HTML context, wrap the output with a ``pre`` tag to make it easier to
-read:
-
-.. code-block:: twig
-
-
- {{ dump(user) }}
-
-
-.. tip::
-
- Using a ``pre`` tag is not needed when `XDebug`_ is enabled and
- ``html_errors`` is ``on``; as a bonus, the output is also nicer with
- XDebug enabled.
-
-You can debug several variables by passing them as additional arguments:
-
-.. code-block:: twig
-
- {{ dump(user, categories) }}
-
-If you don't pass any value, all variables from the current context are
-dumped:
-
-.. code-block:: twig
-
- {{ dump() }}
-
-.. note::
-
- Internally, Twig uses the PHP `var_dump`_ function.
-
-Arguments
----------
-
-* ``context``: The context to dump
-
-.. _`XDebug`: https://xdebug.org/docs/display
-.. _`var_dump`: https://secure.php.net/var_dump
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/include.rst b/system/backend/php/vendor/twig/twig/doc/functions/include.rst
deleted file mode 100644
index f49971a8fed..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/include.rst
+++ /dev/null
@@ -1,77 +0,0 @@
-``include``
-===========
-
-The ``include`` function returns the rendered content of a template:
-
-.. code-block:: twig
-
- {{ include('template.html') }}
- {{ include(some_var) }}
-
-Included templates have access to the variables of the active context.
-
-If you are using the filesystem loader, the templates are looked for in the
-paths defined by it.
-
-The context is passed by default to the template but you can also pass
-additional variables:
-
-.. code-block:: twig
-
- {# template.html will have access to the variables from the current context and the additional ones provided #}
- {{ include('template.html', {foo: 'bar'}) }}
-
-You can disable access to the context by setting ``with_context`` to
-``false``:
-
-.. code-block:: twig
-
- {# only the foo variable will be accessible #}
- {{ include('template.html', {foo: 'bar'}, with_context = false) }}
-
-.. code-block:: twig
-
- {# no variables will be accessible #}
- {{ include('template.html', with_context = false) }}
-
-And if the expression evaluates to a ``\Twig\Template`` or a
-``\Twig\TemplateWrapper`` instance, Twig will use it directly::
-
- // {{ include(template) }}
-
- $template = $twig->load('some_template.twig');
-
- $twig->display('template.twig', ['template' => $template]);
-
-When you set the ``ignore_missing`` flag, Twig will return an empty string if
-the template does not exist:
-
-.. code-block:: twig
-
- {{ include('sidebar.html', ignore_missing = true) }}
-
-You can also provide a list of templates that are checked for existence before
-inclusion. The first template that exists will be rendered:
-
-.. code-block:: twig
-
- {{ include(['page_detailed.html', 'page.html']) }}
-
-If ``ignore_missing`` is set, it will fall back to rendering nothing if none
-of the templates exist, otherwise it will throw an exception.
-
-When including a template created by an end user, you should consider
-sandboxing it:
-
-.. code-block:: twig
-
- {{ include('page.html', sandboxed = true) }}
-
-Arguments
----------
-
-* ``template``: The template to render
-* ``variables``: The variables to pass to the template
-* ``with_context``: Whether to pass the current context variables or not
-* ``ignore_missing``: Whether to ignore missing templates or not
-* ``sandboxed``: Whether to sandbox the template or not
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/index.rst b/system/backend/php/vendor/twig/twig/doc/functions/index.rst
deleted file mode 100644
index 07214a76c18..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/index.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-Functions
-=========
-
-.. toctree::
- :maxdepth: 1
-
- attribute
- block
- constant
- cycle
- date
- dump
- include
- max
- min
- parent
- random
- range
- source
- template_from_string
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/max.rst b/system/backend/php/vendor/twig/twig/doc/functions/max.rst
deleted file mode 100644
index 230b3c8f013..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/max.rst
+++ /dev/null
@@ -1,17 +0,0 @@
-``max``
-=======
-
-``max`` returns the biggest value of a sequence or a set of values:
-
-.. code-block:: twig
-
- {{ max(1, 3, 2) }}
- {{ max([1, 3, 2]) }}
-
-When called with a mapping, max ignores keys and only compares values:
-
-.. code-block:: twig
-
- {{ max({2: "e", 1: "a", 3: "b", 5: "d", 4: "c"}) }}
- {# returns "e" #}
-
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/min.rst b/system/backend/php/vendor/twig/twig/doc/functions/min.rst
deleted file mode 100644
index 65318580a0c..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/min.rst
+++ /dev/null
@@ -1,17 +0,0 @@
-``min``
-=======
-
-``min`` returns the lowest value of a sequence or a set of values:
-
-.. code-block:: twig
-
- {{ min(1, 3, 2) }}
- {{ min([1, 3, 2]) }}
-
-When called with a mapping, min ignores keys and only compares values:
-
-.. code-block:: twig
-
- {{ min({2: "e", 3: "a", 1: "b", 5: "d", 4: "c"}) }}
- {# returns "a" #}
-
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/parent.rst b/system/backend/php/vendor/twig/twig/doc/functions/parent.rst
deleted file mode 100644
index 9beb5d21cf9..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/parent.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-``parent``
-==========
-
-When a template uses inheritance, it's possible to render the contents of the
-parent block when overriding a block by using the ``parent`` function:
-
-.. code-block:: twig
-
- {% extends "base.html" %}
-
- {% block sidebar %}
-
Table Of Contents
- ...
- {{ parent() }}
- {% endblock %}
-
-The ``parent()`` call will return the content of the ``sidebar`` block as
-defined in the ``base.html`` template.
-
-.. seealso:: :doc:`extends<../tags/extends>`, :doc:`block<../functions/block>`, :doc:`block<../tags/block>`
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/random.rst b/system/backend/php/vendor/twig/twig/doc/functions/random.rst
deleted file mode 100644
index baaaf962955..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/random.rst
+++ /dev/null
@@ -1,30 +0,0 @@
-``random``
-==========
-
-.. versionadded:: 2.7
- The "max" argument was added in Twig 2.7.
-
-The ``random`` function returns a random value depending on the supplied
-parameter type:
-
-* a random item from a sequence;
-* a random character from a string;
-* a random integer between 0 and the integer parameter (inclusive).
-* a random integer between the integer parameter (when negative) and 0 (inclusive).
-* a random integer between the first integer and the second integer parameter (inclusive).
-
-.. code-block:: twig
-
- {{ random(['apple', 'orange', 'citrus']) }} {# example output: orange #}
- {{ random('ABC') }} {# example output: C #}
- {{ random() }} {# example output: 15386094 (works as the native PHP mt_rand function) #}
- {{ random(5) }} {# example output: 3 #}
- {{ random(50, 100) }} {# example output: 63 #}
-
-Arguments
----------
-
-* ``values``: The values
-* ``max``: The max value when values is an integer
-
-.. _`mt_rand`: https://secure.php.net/mt_rand
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/range.rst b/system/backend/php/vendor/twig/twig/doc/functions/range.rst
deleted file mode 100644
index a1f0e7c097d..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/range.rst
+++ /dev/null
@@ -1,58 +0,0 @@
-``range``
-=========
-
-Returns a list containing an arithmetic progression of integers:
-
-.. code-block:: twig
-
- {% for i in range(0, 3) %}
- {{ i }},
- {% endfor %}
-
- {# outputs 0, 1, 2, 3, #}
-
-When step is given (as the third parameter), it specifies the increment (or
-decrement for negative values):
-
-.. code-block:: twig
-
- {% for i in range(0, 6, 2) %}
- {{ i }},
- {% endfor %}
-
- {# outputs 0, 2, 4, 6, #}
-
-.. note::
-
- Note that if the start is greater than the end, ``range`` assumes a step of
- ``-1``:
-
- .. code-block:: twig
-
- {% for i in range(3, 0) %}
- {{ i }},
- {% endfor %}
-
- {# outputs 3, 2, 1, 0, #}
-
-The Twig built-in ``..`` operator is just syntactic sugar for the ``range``
-function (with a step of ``1``, or ``-1`` if the start is greater than the end):
-
-.. code-block:: twig
-
- {% for i in 0..3 %}
- {{ i }},
- {% endfor %}
-
-.. tip::
-
- The ``range`` function works as the native PHP `range`_ function.
-
-Arguments
----------
-
-* ``low``: The first value of the sequence.
-* ``high``: The highest possible value of the sequence.
-* ``step``: The increment between elements of the sequence.
-
-.. _`range`: https://secure.php.net/range
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/source.rst b/system/backend/php/vendor/twig/twig/doc/functions/source.rst
deleted file mode 100644
index 080e2befe57..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/source.rst
+++ /dev/null
@@ -1,26 +0,0 @@
-``source``
-==========
-
-The ``source`` function returns the content of a template without rendering it:
-
-.. code-block:: twig
-
- {{ source('template.html') }}
- {{ source(some_var) }}
-
-When you set the ``ignore_missing`` flag, Twig will return an empty string if
-the template does not exist:
-
-.. code-block:: twig
-
- {{ source('template.html', ignore_missing = true) }}
-
-The function uses the same template loaders as the ones used to include
-templates. So, if you are using the filesystem loader, the templates are looked
-for in the paths defined by it.
-
-Arguments
----------
-
-* ``name``: The name of the template to read
-* ``ignore_missing``: Whether to ignore missing templates or not
diff --git a/system/backend/php/vendor/twig/twig/doc/functions/template_from_string.rst b/system/backend/php/vendor/twig/twig/doc/functions/template_from_string.rst
deleted file mode 100644
index fd61871c1cd..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/functions/template_from_string.rst
+++ /dev/null
@@ -1,40 +0,0 @@
-``template_from_string``
-========================
-
-.. versionadded:: 2.8
- The name argument was added in Twig 2.8.
-
-The ``template_from_string`` function loads a template from a string:
-
-.. code-block:: twig
-
- {{ include(template_from_string("Hello {{ name }}")) }}
- {{ include(template_from_string(page.template)) }}
-
-To ease debugging, you can also give the template a name that will be part of
-any related error message:
-
-.. code-block:: twig
-
- {{ include(template_from_string(page.template, "template for page " ~ page.name)) }}
-
-.. note::
-
- The ``template_from_string`` function is not available by default. You
- must add the ``\Twig\Extension\StringLoaderExtension`` extension explicitly when
- creating your Twig environment::
-
- $twig = new \Twig\Environment(...);
- $twig->addExtension(new \Twig\Extension\StringLoaderExtension());
-
-.. note::
-
- Even if you will probably always use the ``template_from_string`` function
- with the ``include`` function, you can use it with any tag or function that
- takes a template as an argument (like the ``embed`` or ``extends`` tags).
-
-Arguments
----------
-
-* ``template``: The template
-* ``name``: A name for the template
diff --git a/system/backend/php/vendor/twig/twig/doc/index.rst b/system/backend/php/vendor/twig/twig/doc/index.rst
deleted file mode 100644
index 358bd738ed0..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/index.rst
+++ /dev/null
@@ -1,19 +0,0 @@
-Twig
-====
-
-.. toctree::
- :maxdepth: 2
-
- intro
- installation
- templates
- api
- advanced
- internals
- deprecated
- recipes
- coding_standards
- tags/index
- filters/index
- functions/index
- tests/index
diff --git a/system/backend/php/vendor/twig/twig/doc/installation.rst b/system/backend/php/vendor/twig/twig/doc/installation.rst
deleted file mode 100644
index d6bd29acacd..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/installation.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-Installation
-============
-
-Install `Composer`_ and run the following command to get the latest version:
-
-.. code-block:: bash
-
- composer require "twig/twig:^2.0"
-
-.. _`Composer`: https://getcomposer.org/download/
diff --git a/system/backend/php/vendor/twig/twig/doc/internals.rst b/system/backend/php/vendor/twig/twig/doc/internals.rst
deleted file mode 100644
index 1a3c60848fe..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/internals.rst
+++ /dev/null
@@ -1,140 +0,0 @@
-Twig Internals
-==============
-
-Twig is very extensible and you can easily hack it. Keep in mind that you
-should probably try to create an extension before hacking the core, as most
-features and enhancements can be handled with extensions. This chapter is also
-useful for people who want to understand how Twig works under the hood.
-
-How does Twig work?
--------------------
-
-The rendering of a Twig template can be summarized into four key steps:
-
-* **Load** the template: If the template is already compiled, load it and go
- to the *evaluation* step, otherwise:
-
- * First, the **lexer** tokenizes the template source code into small pieces
- for easier processing;
-
- * Then, the **parser** converts the token stream into a meaningful tree
- of nodes (the Abstract Syntax Tree);
-
- * Finally, the *compiler* transforms the AST into PHP code.
-
-* **Evaluate** the template: It means calling the ``display()``
- method of the compiled template and passing it the context.
-
-The Lexer
----------
-
-The lexer tokenizes a template source code into a token stream (each token is
-an instance of ``\Twig\Token``, and the stream is an instance of
-``\Twig\TokenStream``). The default lexer recognizes 13 different token types:
-
-* ``\Twig\Token::BLOCK_START_TYPE``, ``\Twig\Token::BLOCK_END_TYPE``: Delimiters for blocks (``{% %}``)
-* ``\Twig\Token::VAR_START_TYPE``, ``\Twig\Token::VAR_END_TYPE``: Delimiters for variables (``{{ }}``)
-* ``\Twig\Token::TEXT_TYPE``: A text outside an expression;
-* ``\Twig\Token::NAME_TYPE``: A name in an expression;
-* ``\Twig\Token::NUMBER_TYPE``: A number in an expression;
-* ``\Twig\Token::STRING_TYPE``: A string in an expression;
-* ``\Twig\Token::OPERATOR_TYPE``: An operator;
-* ``\Twig\Token::PUNCTUATION_TYPE``: A punctuation sign;
-* ``\Twig\Token::INTERPOLATION_START_TYPE``, ``\Twig\Token::INTERPOLATION_END_TYPE``: Delimiters for string interpolation;
-* ``\Twig\Token::EOF_TYPE``: Ends of template.
-
-You can manually convert a source code into a token stream by calling the
-``tokenize()`` method of an environment::
-
- $stream = $twig->tokenize(new \Twig\Source($source, $identifier));
-
-As the stream has a ``__toString()`` method, you can have a textual
-representation of it by echoing the object::
-
- echo $stream."\n";
-
-Here is the output for the ``Hello {{ name }}`` template:
-
-.. code-block:: text
-
- TEXT_TYPE(Hello )
- VAR_START_TYPE()
- NAME_TYPE(name)
- VAR_END_TYPE()
- EOF_TYPE()
-
-.. note::
-
- The default lexer (``\Twig\Lexer``) can be changed by calling
- the ``setLexer()`` method::
-
- $twig->setLexer($lexer);
-
-The Parser
-----------
-
-The parser converts the token stream into an AST (Abstract Syntax Tree), or a
-node tree (an instance of ``\Twig\Node\ModuleNode``). The core extension defines
-the basic nodes like: ``for``, ``if``, ... and the expression nodes.
-
-You can manually convert a token stream into a node tree by calling the
-``parse()`` method of an environment::
-
- $nodes = $twig->parse($stream);
-
-Echoing the node object gives you a nice representation of the tree::
-
- echo $nodes."\n";
-
-Here is the output for the ``Hello {{ name }}`` template:
-
-.. code-block:: text
-
- \Twig\Node\ModuleNode(
- \Twig\Node\TextNode(Hello )
- \Twig\Node\PrintNode(
- \Twig\Node\Expression\NameExpression(name)
- )
- )
-
-.. note::
-
- The default parser (``\Twig\TokenParser\AbstractTokenParser``) can be changed by calling the
- ``setParser()`` method::
-
- $twig->setParser($parser);
-
-The Compiler
-------------
-
-The last step is done by the compiler. It takes a node tree as an input and
-generates PHP code usable for runtime execution of the template.
-
-You can manually compile a node tree to PHP code with the ``compile()`` method
-of an environment::
-
- $php = $twig->compile($nodes);
-
-The generated template for a ``Hello {{ name }}`` template reads as follows
-(the actual output can differ depending on the version of Twig you are
-using)::
-
- /* Hello {{ name }} */
- class __TwigTemplate_1121b6f109fe93ebe8c6e22e3712bceb extends \Twig\Template
- {
- protected function doDisplay(array $context, array $blocks = [])
- {
- // line 1
- echo "Hello ";
- echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : null), "html", null, true);
- }
-
- // some more code
- }
-
-.. note::
-
- The default compiler (``\Twig\Compiler``) can be changed by calling the
- ``setCompiler()`` method::
-
- $twig->setCompiler($compiler);
diff --git a/system/backend/php/vendor/twig/twig/doc/intro.rst b/system/backend/php/vendor/twig/twig/doc/intro.rst
deleted file mode 100644
index c477c78380a..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/intro.rst
+++ /dev/null
@@ -1,70 +0,0 @@
-Introduction
-============
-
-Welcome to the documentation for Twig, the flexible, fast, and secure template
-engine for PHP.
-
-Twig is both designer and developer friendly by sticking to PHP's principles and
-adding functionality useful for templating environments.
-
-The key-features are...
-
-* *Fast*: Twig compiles templates down to plain optimized PHP code. The
- overhead compared to regular PHP code was reduced to the very minimum.
-
-* *Secure*: Twig has a sandbox mode to evaluate untrusted template code. This
- allows Twig to be used as a template language for applications where users
- may modify the template design.
-
-* *Flexible*: Twig is powered by a flexible lexer and parser. This allows the
- developer to define their own custom tags and filters, and to create their own DSL.
-
-Twig is used by many Open-Source projects like Symfony, Drupal8, eZPublish,
-phpBB, Matomo, OroCRM; and many frameworks have support for it as well like
-Slim, Yii, Laravel, and Codeigniter — just to name a few.
-
-Prerequisites
--------------
-
-Twig needs at least **PHP 7.0.0** to run.
-
-Installation
-------------
-
-The recommended way to install Twig is via Composer:
-
-.. code-block:: bash
-
- composer require "twig/twig:^2.0"
-
-Basic API Usage
----------------
-
-This section gives you a brief introduction to the PHP API for Twig.
-
-.. code-block:: php
-
- require_once '/path/to/vendor/autoload.php';
-
- $loader = new \Twig\Loader\ArrayLoader([
- 'index' => 'Hello {{ name }}!',
- ]);
- $twig = new \Twig\Environment($loader);
-
- echo $twig->render('index', ['name' => 'Fabien']);
-
-Twig uses a loader (``\Twig\Loader\ArrayLoader``) to locate templates, and an
-environment (``\Twig\Environment``) to store its configuration.
-
-The ``render()`` method loads the template passed as a first argument and
-renders it with the variables passed as a second argument.
-
-As templates are generally stored on the filesystem, Twig also comes with a
-filesystem loader::
-
- $loader = new \Twig\Loader\FilesystemLoader('/path/to/templates');
- $twig = new \Twig\Environment($loader, [
- 'cache' => '/path/to/compilation_cache',
- ]);
-
- echo $twig->render('index.html', ['name' => 'Fabien']);
diff --git a/system/backend/php/vendor/twig/twig/doc/recipes.rst b/system/backend/php/vendor/twig/twig/doc/recipes.rst
deleted file mode 100644
index 41e759e3ce8..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/recipes.rst
+++ /dev/null
@@ -1,527 +0,0 @@
-Recipes
-=======
-
-.. _deprecation-notices:
-
-Displaying Deprecation Notices
-------------------------------
-
-Deprecated features generate deprecation notices (via a call to the
-``trigger_error()`` PHP function). By default, they are silenced and never
-displayed nor logged.
-
-To remove all deprecated feature usages from your templates, write and run a
-script along the lines of the following::
-
- require_once __DIR__.'/vendor/autoload.php';
-
- $twig = create_your_twig_env();
-
- $deprecations = new \Twig\Util\DeprecationCollector($twig);
-
- print_r($deprecations->collectDir(__DIR__.'/templates'));
-
-The ``collectDir()`` method compiles all templates found in a directory,
-catches deprecation notices, and return them.
-
-.. tip::
-
- If your templates are not stored on the filesystem, use the ``collect()``
- method instead. ``collect()`` takes a ``Traversable`` which must return
- template names as keys and template contents as values (as done by
- ``\Twig\Util\TemplateDirIterator``).
-
-However, this code won't find all deprecations (like using deprecated some Twig
-classes). To catch all notices, register a custom error handler like the one
-below::
-
- $deprecations = [];
- set_error_handler(function ($type, $msg) use (&$deprecations) {
- if (E_USER_DEPRECATED === $type) {
- $deprecations[] = $msg;
- }
- });
-
- // run your application
-
- print_r($deprecations);
-
-Note that most deprecation notices are triggered during **compilation**, so
-they won't be generated when templates are already cached.
-
-.. tip::
-
- If you want to manage the deprecation notices from your PHPUnit tests, have
- a look at the `symfony/phpunit-bridge
- `_ package, which eases the
- process.
-
-Making a Layout conditional
----------------------------
-
-Working with Ajax means that the same content is sometimes displayed as is,
-and sometimes decorated with a layout. As Twig layout template names can be
-any valid expression, you can pass a variable that evaluates to ``true`` when
-the request is made via Ajax and choose the layout accordingly:
-
-.. code-block:: twig
-
- {% extends request.ajax ? "base_ajax.html" : "base.html" %}
-
- {% block content %}
- This is the content to be displayed.
- {% endblock %}
-
-Making an Include dynamic
--------------------------
-
-When including a template, its name does not need to be a string. For
-instance, the name can depend on the value of a variable:
-
-.. code-block:: twig
-
- {% include var ~ '_foo.html' %}
-
-If ``var`` evaluates to ``index``, the ``index_foo.html`` template will be
-rendered.
-
-As a matter of fact, the template name can be any valid expression, such as
-the following:
-
-.. code-block:: twig
-
- {% include var|default('index') ~ '_foo.html' %}
-
-Overriding a Template that also extends itself
-----------------------------------------------
-
-A template can be customized in two different ways:
-
-* *Inheritance*: A template *extends* a parent template and overrides some
- blocks;
-
-* *Replacement*: If you use the filesystem loader, Twig loads the first
- template it finds in a list of configured directories; a template found in a
- directory *replaces* another one from a directory further in the list.
-
-But how do you combine both: *replace* a template that also extends itself
-(aka a template in a directory further in the list)?
-
-Let's say that your templates are loaded from both ``.../templates/mysite``
-and ``.../templates/default`` in this order. The ``page.twig`` template,
-stored in ``.../templates/default`` reads as follows:
-
-.. code-block:: twig
-
- {# page.twig #}
- {% extends "layout.twig" %}
-
- {% block content %}
- {% endblock %}
-
-You can replace this template by putting a file with the same name in
-``.../templates/mysite``. And if you want to extend the original template, you
-might be tempted to write the following:
-
-.. code-block:: twig
-
- {# page.twig in .../templates/mysite #}
- {% extends "page.twig" %} {# from .../templates/default #}
-
-Of course, this will not work as Twig will always load the template from
-``.../templates/mysite``.
-
-It turns out it is possible to get this to work, by adding a directory right
-at the end of your template directories, which is the parent of all of the
-other directories: ``.../templates`` in our case. This has the effect of
-making every template file within our system uniquely addressable. Most of the
-time you will use the "normal" paths, but in the special case of wanting to
-extend a template with an overriding version of itself we can reference its
-parent's full, unambiguous template path in the extends tag:
-
-.. code-block:: twig
-
- {# page.twig in .../templates/mysite #}
- {% extends "default/page.twig" %} {# from .../templates #}
-
-.. note::
-
- This recipe was inspired by the following Django wiki page:
- https://code.djangoproject.com/wiki/ExtendingTemplates
-
-Customizing the Syntax
-----------------------
-
-Twig allows some syntax customization for the block delimiters. It's **not**
-recommended to use this feature as templates will be tied with your custom
-syntax. But for specific projects, it can make sense to change the defaults.
-
-To change the block delimiters, you need to create your own lexer object::
-
- $twig = new \Twig\Environment(...);
-
- $lexer = new \Twig\Lexer($twig, [
- 'tag_comment' => ['{#', '#}'],
- 'tag_block' => ['{%', '%}'],
- 'tag_variable' => ['{{', '}}'],
- 'interpolation' => ['#{', '}'],
- ]);
- $twig->setLexer($lexer);
-
-Here are some configuration example that simulates some other template engines
-syntax::
-
- // Ruby erb syntax
- $lexer = new \Twig\Lexer($twig, [
- 'tag_comment' => ['<%#', '%>'],
- 'tag_block' => ['<%', '%>'],
- 'tag_variable' => ['<%=', '%>'],
- ]);
-
- // SGML Comment Syntax
- $lexer = new \Twig\Lexer($twig, [
- 'tag_comment' => [''],
- 'tag_block' => [''],
- 'tag_variable' => ['${', '}'],
- ]);
-
- // Smarty like
- $lexer = new \Twig\Lexer($twig, [
- 'tag_comment' => ['{*', '*}'],
- 'tag_block' => ['{', '}'],
- 'tag_variable' => ['{$', '}'],
- ]);
-
-Using dynamic Object Properties
--------------------------------
-
-When Twig encounters a variable like ``article.title``, it tries to find a
-``title`` public property in the ``article`` object.
-
-It also works if the property does not exist but is rather defined dynamically
-thanks to the magic ``__get()`` method; you need to also implement the
-``__isset()`` magic method like shown in the following snippet of code::
-
- class Article
- {
- public function __get($name)
- {
- if ('title' == $name) {
- return 'The title';
- }
-
- // throw some kind of error
- }
-
- public function __isset($name)
- {
- if ('title' == $name) {
- return true;
- }
-
- return false;
- }
- }
-
-Accessing the parent Context in Nested Loops
---------------------------------------------
-
-Sometimes, when using nested loops, you need to access the parent context. The
-parent context is always accessible via the ``loop.parent`` variable. For
-instance, if you have the following template data::
-
- $data = [
- 'topics' => [
- 'topic1' => ['Message 1 of topic 1', 'Message 2 of topic 1'],
- 'topic2' => ['Message 1 of topic 2', 'Message 2 of topic 2'],
- ],
- ];
-
-And the following template to display all messages in all topics:
-
-.. code-block:: twig
-
- {% for topic, messages in topics %}
- * {{ loop.index }}: {{ topic }}
- {% for message in messages %}
- - {{ loop.parent.loop.index }}.{{ loop.index }}: {{ message }}
- {% endfor %}
- {% endfor %}
-
-The output will be similar to:
-
-.. code-block:: text
-
- * 1: topic1
- - 1.1: The message 1 of topic 1
- - 1.2: The message 2 of topic 1
- * 2: topic2
- - 2.1: The message 1 of topic 2
- - 2.2: The message 2 of topic 2
-
-In the inner loop, the ``loop.parent`` variable is used to access the outer
-context. So, the index of the current ``topic`` defined in the outer for loop
-is accessible via the ``loop.parent.loop.index`` variable.
-
-Defining undefined Functions and Filters on the Fly
----------------------------------------------------
-
-When a function (or a filter) is not defined, Twig defaults to throw a
-``\Twig\Error\SyntaxError`` exception. However, it can also call a `callback`_ (any
-valid PHP callable) which should return a function (or a filter).
-
-For filters, register callbacks with ``registerUndefinedFilterCallback()``.
-For functions, use ``registerUndefinedFunctionCallback()``::
-
- // auto-register all native PHP functions as Twig functions
- // don't try this at home as it's not secure at all!
- $twig->registerUndefinedFunctionCallback(function ($name) {
- if (function_exists($name)) {
- return new \Twig\TwigFunction($name, $name);
- }
-
- return false;
- });
-
-If the callable is not able to return a valid function (or filter), it must
-return ``false``.
-
-If you register more than one callback, Twig will call them in turn until one
-does not return ``false``.
-
-.. tip::
-
- As the resolution of functions and filters is done during compilation,
- there is no overhead when registering these callbacks.
-
-Validating the Template Syntax
-------------------------------
-
-When template code is provided by a third-party (through a web interface for
-instance), it might be interesting to validate the template syntax before
-saving it. If the template code is stored in a `$template` variable, here is
-how you can do it::
-
- try {
- $twig->parse($twig->tokenize(new \Twig\Source($template)));
-
- // the $template is valid
- } catch (\Twig\Error\SyntaxError $e) {
- // $template contains one or more syntax errors
- }
-
-If you iterate over a set of files, you can pass the filename to the
-``tokenize()`` method to get the filename in the exception message::
-
- foreach ($files as $file) {
- try {
- $twig->parse($twig->tokenize(new \Twig\Source($template, $file->getFilename(), $file)));
-
- // the $template is valid
- } catch (\Twig\Error\SyntaxError $e) {
- // $template contains one or more syntax errors
- }
- }
-
-.. note::
-
- This method won't catch any sandbox policy violations because the policy
- is enforced during template rendering (as Twig needs the context for some
- checks like allowed methods on objects).
-
-Refreshing modified Templates when OPcache or APC is enabled
-------------------------------------------------------------
-
-When using OPcache with ``opcache.validate_timestamps`` set to ``0`` or APC
-with ``apc.stat`` set to ``0`` and Twig cache enabled, clearing the template
-cache won't update the cache.
-
-To get around this, force Twig to invalidate the bytecode cache::
-
- $twig = new \Twig\Environment($loader, [
- 'cache' => new \Twig\Cache\FilesystemCache('/some/cache/path', \Twig\Cache\FilesystemCache::FORCE_BYTECODE_INVALIDATION),
- // ...
- ]);
-
-Reusing a stateful Node Visitor
--------------------------------
-
-When attaching a visitor to a ``\Twig\Environment`` instance, Twig uses it to
-visit *all* templates it compiles. If you need to keep some state information
-around, you probably want to reset it when visiting a new template.
-
-This can be easily achieved with the following code::
-
- protected $someTemplateState = [];
-
- public function enterNode(\Twig\Node\Node $node, \Twig\Environment $env)
- {
- if ($node instanceof \Twig\Node\ModuleNode) {
- // reset the state as we are entering a new template
- $this->someTemplateState = [];
- }
-
- // ...
-
- return $node;
- }
-
-Using a Database to store Templates
------------------------------------
-
-If you are developing a CMS, templates are usually stored in a database. This
-recipe gives you a simple PDO template loader you can use as a starting point
-for your own.
-
-First, let's create a temporary in-memory SQLite3 database to work with::
-
- $dbh = new PDO('sqlite::memory:');
- $dbh->exec('CREATE TABLE templates (name STRING, source STRING, last_modified INTEGER)');
- $base = '{% block content %}{% endblock %}';
- $index = '
- {% extends "base.twig" %}
- {% block content %}Hello {{ name }}{% endblock %}
- ';
- $now = time();
- $dbh->prepare('INSERT INTO templates (name, source, last_modified) VALUES (?, ?, ?)')->execute(['base.twig', $base, $now]);
- $dbh->prepare('INSERT INTO templates (name, source, last_modified) VALUES (?, ?, ?)')->execute(['index.twig', $index, $now]);
-
-We have created a simple ``templates`` table that hosts two templates:
-``base.twig`` and ``index.twig``.
-
-Now, let's define a loader able to use this database::
-
- class DatabaseTwigLoader implements \Twig\Loader\LoaderInterface
- {
- protected $dbh;
-
- public function __construct(PDO $dbh)
- {
- $this->dbh = $dbh;
- }
-
- public function getSourceContext($name)
- {
- if (false === $source = $this->getValue('source', $name)) {
- throw new \Twig\Error\LoaderError(sprintf('Template "%s" does not exist.', $name));
- }
-
- return new \Twig\Source($source, $name);
- }
-
- public function exists($name)
- {
- return $name === $this->getValue('name', $name);
- }
-
- public function getCacheKey($name)
- {
- return $name;
- }
-
- public function isFresh($name, $time)
- {
- if (false === $lastModified = $this->getValue('last_modified', $name)) {
- return false;
- }
-
- return $lastModified <= $time;
- }
-
- protected function getValue($column, $name)
- {
- $sth = $this->dbh->prepare('SELECT '.$column.' FROM templates WHERE name = :name');
- $sth->execute([':name' => (string) $name]);
-
- return $sth->fetchColumn();
- }
- }
-
-Finally, here is an example on how you can use it::
-
- $loader = new DatabaseTwigLoader($dbh);
- $twig = new \Twig\Environment($loader);
-
- echo $twig->render('index.twig', ['name' => 'Fabien']);
-
-Using different Template Sources
---------------------------------
-
-This recipe is the continuation of the previous one. Even if you store the
-contributed templates in a database, you might want to keep the original/base
-templates on the filesystem. When templates can be loaded from different
-sources, you need to use the ``\Twig\Loader\ChainLoader`` loader.
-
-As you can see in the previous recipe, we reference the template in the exact
-same way as we would have done it with a regular filesystem loader. This is
-the key to be able to mix and match templates coming from the database, the
-filesystem, or any other loader for that matter: the template name should be a
-logical name, and not the path from the filesystem::
-
- $loader1 = new DatabaseTwigLoader($dbh);
- $loader2 = new \Twig\Loader\ArrayLoader([
- 'base.twig' => '{% block content %}{% endblock %}',
- ]);
- $loader = new \Twig\Loader\ChainLoader([$loader1, $loader2]);
-
- $twig = new \Twig\Environment($loader);
-
- echo $twig->render('index.twig', ['name' => 'Fabien']);
-
-Now that the ``base.twig`` templates is defined in an array loader, you can
-remove it from the database, and everything else will still work as before.
-
-Loading a Template from a String
---------------------------------
-
-From a template, you can easily load a template stored in a string via the
-``template_from_string`` function (via the ``\Twig\Extension\StringLoaderExtension``
-extension):
-
-.. code-block:: twig
-
- {{ include(template_from_string("Hello {{ name }}")) }}
-
-From PHP, it's also possible to load a template stored in a string via
-``\Twig\Environment::createTemplate()``::
-
- $template = $twig->createTemplate('hello {{ name }}');
- echo $template->render(['name' => 'Fabien']);
-
-Using Twig and AngularJS in the same Templates
-----------------------------------------------
-
-Mixing different template syntaxes in the same file is not a recommended
-practice as both AngularJS and Twig use the same delimiters in their syntax:
-``{{`` and ``}}``.
-
-Still, if you want to use AngularJS and Twig in the same template, there are
-two ways to make it work depending on the amount of AngularJS you need to
-include in your templates:
-
-* Escaping the AngularJS delimiters by wrapping AngularJS sections with the
- ``{% verbatim %}`` tag or by escaping each delimiter via ``{{ '{{' }}`` and
- ``{{ '}}' }}``;
-
-* Changing the delimiters of one of the template engines (depending on which
- engine you introduced last):
-
- * For AngularJS, change the interpolation tags using the
- ``interpolateProvider`` service, for instance at the module initialization
- time:
-
- .. code-block:: javascript
-
- angular.module('myApp', []).config(function($interpolateProvider) {
- $interpolateProvider.startSymbol('{[').endSymbol(']}');
- });
-
- * For Twig, change the delimiters via the ``tag_variable`` Lexer option:
-
- .. code-block:: php
-
- $env->setLexer(new \Twig\Lexer($env, [
- 'tag_variable' => ['{[', ']}'],
- ]));
-
-.. _callback: https://secure.php.net/manual/en/function.is-callable.php
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/apply.rst b/system/backend/php/vendor/twig/twig/doc/tags/apply.rst
deleted file mode 100644
index 2c3b00c0860..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/apply.rst
+++ /dev/null
@@ -1,23 +0,0 @@
-``apply``
-=========
-
-.. versionadded:: 2.9
- The ``apply`` tag was added in Twig 2.9.
-
-The ``apply`` tag allows you to apply Twig filters on a block of template data:
-
-.. code-block:: twig
-
- {% apply upper %}
- This text becomes uppercase
- {% endapply %}
-
-You can also chain filters and pass arguments to them:
-
-.. code-block:: twig
-
- {% apply lower|escape('html') %}
- SOME TEXT
- {% endapply %}
-
- {# outputs "<strong>some text</strong>" #}
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/autoescape.rst b/system/backend/php/vendor/twig/twig/doc/tags/autoescape.rst
deleted file mode 100644
index 520d779d0e1..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/autoescape.rst
+++ /dev/null
@@ -1,61 +0,0 @@
-``autoescape``
-==============
-
-Whether automatic escaping is enabled or not, you can mark a section of a
-template to be escaped or not by using the ``autoescape`` tag:
-
-.. code-block:: twig
-
- {% autoescape %}
- Everything will be automatically escaped in this block
- using the HTML strategy
- {% endautoescape %}
-
- {% autoescape 'html' %}
- Everything will be automatically escaped in this block
- using the HTML strategy
- {% endautoescape %}
-
- {% autoescape 'js' %}
- Everything will be automatically escaped in this block
- using the js escaping strategy
- {% endautoescape %}
-
- {% autoescape false %}
- Everything will be outputted as is in this block
- {% endautoescape %}
-
-When automatic escaping is enabled everything is escaped by default except for
-values explicitly marked as safe. Those can be marked in the template by using
-the :doc:`raw<../filters/raw>` filter:
-
-.. code-block:: twig
-
- {% autoescape %}
- {{ safe_value|raw }}
- {% endautoescape %}
-
-Functions returning template data (like :doc:`macros` and
-:doc:`parent<../functions/parent>`) always return safe markup.
-
-.. note::
-
- Twig is smart enough to not escape an already escaped value by the
- :doc:`escape<../filters/escape>` filter.
-
-.. note::
-
- Twig does not escape static expressions:
-
- .. code-block:: twig
-
- {% set hello = "Hello" %}
- {{ hello }}
- {{ "world" }}
-
- Will be rendered "Hello **world**".
-
-.. note::
-
- The chapter :doc:`Twig for Developers<../api>` gives more information
- about when and how automatic escaping is applied.
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/block.rst b/system/backend/php/vendor/twig/twig/doc/tags/block.rst
deleted file mode 100644
index e3804823250..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/block.rst
+++ /dev/null
@@ -1,11 +0,0 @@
-``block``
-=========
-
-Blocks are used for inheritance and act as placeholders and replacements at
-the same time. They are documented in detail in the documentation for the
-:doc:`extends<../tags/extends>` tag.
-
-Block names should consist of alphanumeric characters, and underscores. Dashes
-are not permitted.
-
-.. seealso:: :doc:`block<../functions/block>`, :doc:`parent<../functions/parent>`, :doc:`use<../tags/use>`, :doc:`extends<../tags/extends>`
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/deprecated.rst b/system/backend/php/vendor/twig/twig/doc/tags/deprecated.rst
deleted file mode 100644
index 70b81f81130..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/deprecated.rst
+++ /dev/null
@@ -1,30 +0,0 @@
-``deprecated``
-==============
-
-.. versionadded:: 2.6
- The ``deprecated`` tag was added in Twig 2.6.
-
-Twig generates a deprecation notice (via a call to the ``trigger_error()``
-PHP function) where the ``deprecated`` tag is used in a template:
-
-.. code-block:: twig
-
- {# base.twig #}
- {% deprecated 'The "base.twig" template is deprecated, use "layout.twig" instead.' %}
- {% extends 'layout.twig' %}
-
-Also you can deprecate a block in the following way:
-
-.. code-block:: twig
-
- {% block hey %}
- {% deprecated 'The "hey" block is deprecated, use "greet" instead.' %}
- {{ block('greet') }}
- {% endblock %}
-
- {% block greet %}
- Hey you!
- {% endblock %}
-
-Note that by default, the deprecation notices are silenced and never displayed nor logged.
-See :ref:`deprecation-notices` to learn how to handle them.
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/do.rst b/system/backend/php/vendor/twig/twig/doc/tags/do.rst
deleted file mode 100644
index b8fe9f08b66..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/do.rst
+++ /dev/null
@@ -1,9 +0,0 @@
-``do``
-======
-
-The ``do`` tag works exactly like the regular variable expression (``{{ ...
-}}``) just that it doesn't print anything:
-
-.. code-block:: twig
-
- {% do 1 + 2 %}
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/embed.rst b/system/backend/php/vendor/twig/twig/doc/tags/embed.rst
deleted file mode 100644
index 3ee166698be..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/embed.rst
+++ /dev/null
@@ -1,175 +0,0 @@
-``embed``
-=========
-
-The ``embed`` tag combines the behaviour of :doc:`include` and
-:doc:`extends`.
-It allows you to include another template's contents, just like ``include``
-does. But it also allows you to override any block defined inside the
-included template, like when extending a template.
-
-Think of an embedded template as a "micro layout skeleton".
-
-.. code-block:: twig
-
- {% embed "teasers_skeleton.twig" %}
- {# These blocks are defined in "teasers_skeleton.twig" #}
- {# and we override them right here: #}
- {% block left_teaser %}
- Some content for the left teaser box
- {% endblock %}
- {% block right_teaser %}
- Some content for the right teaser box
- {% endblock %}
- {% endembed %}
-
-The ``embed`` tag takes the idea of template inheritance to the level of
-content fragments. While template inheritance allows for "document skeletons",
-which are filled with life by child templates, the ``embed`` tag allows you to
-create "skeletons" for smaller units of content and re-use and fill them
-anywhere you like.
-
-Since the use case may not be obvious, let's look at a simplified example.
-Imagine a base template shared by multiple HTML pages, defining a single block
-named "content":
-
-.. code-block:: text
-
- ┌─── page layout ─────────────────────┐
- │ │
- │ ┌── block "content" ──┐ │
- │ │ │ │
- │ │ │ │
- │ │ (child template to │ │
- │ │ put content here) │ │
- │ │ │ │
- │ │ │ │
- │ └─────────────────────┘ │
- │ │
- └─────────────────────────────────────┘
-
-Some pages ("foo" and "bar") share the same content structure -
-two vertically stacked boxes:
-
-.. code-block:: text
-
- ┌─── page layout ─────────────────────┐
- │ │
- │ ┌── block "content" ──┐ │
- │ │ ┌─ block "top" ───┐ │ │
- │ │ │ │ │ │
- │ │ └─────────────────┘ │ │
- │ │ ┌─ block "bottom" ┐ │ │
- │ │ │ │ │ │
- │ │ └─────────────────┘ │ │
- │ └─────────────────────┘ │
- │ │
- └─────────────────────────────────────┘
-
-While other pages ("boom" and "baz") share a different content structure -
-two boxes side by side:
-
-.. code-block:: text
-
- ┌─── page layout ─────────────────────┐
- │ │
- │ ┌── block "content" ──┐ │
- │ │ │ │
- │ │ ┌ block ┐ ┌ block ┐ │ │
- │ │ │"left" │ │"right"│ │ │
- │ │ │ │ │ │ │ │
- │ │ │ │ │ │ │ │
- │ │ └───────┘ └───────┘ │ │
- │ └─────────────────────┘ │
- │ │
- └─────────────────────────────────────┘
-
-Without the ``embed`` tag, you have two ways to design your templates:
-
-* Create two "intermediate" base templates that extend the master layout
- template: one with vertically stacked boxes to be used by the "foo" and
- "bar" pages and another one with side-by-side boxes for the "boom" and
- "baz" pages.
-
-* Embed the markup for the top/bottom and left/right boxes into each page
- template directly.
-
-These two solutions do not scale well because they each have a major drawback:
-
-* The first solution may indeed work for this simplified example. But imagine
- we add a sidebar, which may again contain different, recurring structures
- of content. Now we would need to create intermediate base templates for
- all occurring combinations of content structure and sidebar structure...
- and so on.
-
-* The second solution involves duplication of common code with all its negative
- consequences: any change involves finding and editing all affected copies
- of the structure, correctness has to be verified for each copy, copies may
- go out of sync by careless modifications etc.
-
-In such a situation, the ``embed`` tag comes in handy. The common layout
-code can live in a single base template, and the two different content structures,
-let's call them "micro layouts" go into separate templates which are embedded
-as necessary:
-
-Page template ``foo.twig``:
-
-.. code-block:: twig
-
- {% extends "layout_skeleton.twig" %}
-
- {% block content %}
- {% embed "vertical_boxes_skeleton.twig" %}
- {% block top %}
- Some content for the top box
- {% endblock %}
-
- {% block bottom %}
- Some content for the bottom box
- {% endblock %}
- {% endembed %}
- {% endblock %}
-
-And here is the code for ``vertical_boxes_skeleton.twig``:
-
-.. code-block:: html+twig
-
-
- {% block top %}
- Top box default content
- {% endblock %}
-
-
-The goal of the ``vertical_boxes_skeleton.twig`` template being to factor
-out the HTML markup for the boxes.
-
-The ``embed`` tag takes the exact same arguments as the ``include`` tag:
-
-.. code-block:: twig
-
- {% embed "base" with {'foo': 'bar'} %}
- ...
- {% endembed %}
-
- {% embed "base" with {'foo': 'bar'} only %}
- ...
- {% endembed %}
-
- {% embed "base" ignore missing %}
- ...
- {% endembed %}
-
-.. warning::
-
- As embedded templates do not have "names", auto-escaping strategies based
- on the template name won't work as expected if you change the context (for
- instance, if you embed a CSS/JavaScript template into an HTML one). In that
- case, explicitly set the default auto-escaping strategy with the
- ``autoescape`` tag.
-
-.. seealso:: :doc:`include<../tags/include>`
diff --git a/system/backend/php/vendor/twig/twig/doc/tags/extends.rst b/system/backend/php/vendor/twig/twig/doc/tags/extends.rst
deleted file mode 100644
index e0f401d143b..00000000000
--- a/system/backend/php/vendor/twig/twig/doc/tags/extends.rst
+++ /dev/null
@@ -1,265 +0,0 @@
-``extends``
-===========
-
-The ``extends`` tag can be used to extend a template from another one.
-
-.. note::
-
- Like PHP, Twig does not support multiple inheritance. So you can only have
- one extends tag called per rendering. However, Twig supports horizontal
- :doc:`reuse
diff --git a/system/backend/php/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/spaceless/simple.test b/system/backend/php/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/spaceless/simple.test
deleted file mode 100644
index 8dbe660e5d0..00000000000
--- a/system/backend/php/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/spaceless/simple.test
+++ /dev/null
@@ -1,14 +0,0 @@
---TEST--
-"spaceless" tag removes whites between HTML tags
---DEPRECATION--
-The spaceless tag in "index.twig" at line 2 is deprecated since Twig 2.7, use the spaceless filter instead.
---TEMPLATE--
-{% spaceless %}
-
-