mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
Merge branch '2.x' into 3.x
* 2.x: fixed markup in docs fixed markup in docs fixed typo fixed CS fixed typo
This commit is contained in:
@@ -28,7 +28,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ with a given timezone:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||
|
||||
$ composer req twig/html-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Html\HtmlExtension;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
``filter``
|
||||
=========
|
||||
==========
|
||||
|
||||
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:
|
||||
|
||||
@@ -59,7 +59,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ the ``format_datetime`` filter, but without the time.
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ the ``format_timetime`` filter, but without the date.
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ You can also use the filter on an included file:
|
||||
|
||||
$ composer req twig/markdown-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Markdown\MarkdownMarkdownExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ You can also use the filter on an included file:
|
||||
|
||||
$ composer req twig/markdown-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Markdown\MarkdownMarkdownExtension;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
``reduce``
|
||||
=========
|
||||
==========
|
||||
|
||||
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
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ names together:
|
||||
|
||||
$ composer req twig/html-extra
|
||||
|
||||
Then, add it on the Twig environment::
|
||||
Then, add it on the Twig environment::
|
||||
|
||||
use Twig\Extra\Html\HtmlExtension;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "twig/extra-bundle",
|
||||
"type": "symfony-bundle",
|
||||
"description": "A Symfony bundle for extra Twig extension",
|
||||
"description": "A Symfony bundle for extra Twig extensions",
|
||||
"keywords": ["twig", "extra", "bundle"],
|
||||
"homepage": "https://twig.symfony.com",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<services>
|
||||
<defaults public="false" />
|
||||
|
||||
<service id="twig.extension.intl" class="Twig\Extra\Html\IntlExtension">
|
||||
<service id="twig.extension.intl" class="Twig\Extra\Intl\IntlExtension">
|
||||
<tag name="twig.extension" />
|
||||
</service>
|
||||
</services>
|
||||
|
||||
@@ -1542,7 +1542,7 @@ function twig_get_attribute(Environment $env, Source $source, $object, $item, ar
|
||||
*
|
||||
* @param array|Traversable $array An array
|
||||
* @param mixed $name The column name
|
||||
* @param mixed $index The column to use as the index/keys for the returned array
|
||||
* @param mixed $index The column to use as the index/keys for the returned array
|
||||
*
|
||||
* @return array The array of values
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user