mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
1e239fe3ed1ab70f6d33df08c4adf941b8140729
This PR was squashed before being merged into the 3.x branch. Discussion ---------- Register the missing extra callables in MissingExtensionSuggestor `Extensions.php` mirrors what each `twig/*-extra` package declares, so `MissingExtensionSuggestor` can answer an unknown name with `try running "composer require twig/string-extra"` rather than a bare `Unknown "slug" filter`. This PR adds the twelve callables missing from it: * `html-extra`: `html_attr_merge` and `html_attr_type` filters, `html_cva` and `html_attr` functions * `intl-extra`: `format_list` filter, `language_names`, `script_names`, `country_names`, `locale_names`, `currency_names` and `timezone_names` functions * `string-extra`: `slug`, `plural` and `singular` filters `ExtensionsTest` checks the catalog both ways: * every listed name resolves on an `Environment` holding the extension, * every declared filter, function and tag is listed Commits -------4212ac1303Test extra extension catalog against local sourcesdba79330dbRegister the missing extra callables in MissingExtensionSuggestor
…
…
Twig, the flexible, fast, and secure template language for PHP
==============================================================
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
<a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
<img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
</a>
More Information
----------------
Read the `documentation`_ for more information.
.. _documentation: https://twig.symfony.com/documentation
Description
Languages
PHP
99.9%