Skip to content

Commit 659dba0

Browse files
committed
minor #12739 Remove references to the Twig extensions repo (fabpot)
This PR was merged into the 3.4 branch. Discussion ---------- Remove references to the Twig extensions repo The Twig extensions repo is deprecated now. Almost all features have been moved to Twig extra extensions, which are documented in the Twig docs directly (including how to use them from a Symfony app). Commits ------- fcfe1ca Remove references to the Twig extensions repo
2 parents a9cfb3a + fcfe1ca commit 659dba0

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

reference/dic_tags.rst

-37
Original file line numberDiff line numberDiff line change
@@ -1288,42 +1288,6 @@ For information on how to create the actual Twig Extension class, see
12881288
`Twig's documentation`_ on the topic or read the
12891289
:doc:`/templating/twig_extension` article.
12901290

1291-
Before writing your own extensions, have a look at the
1292-
`Twig official extension repository`_ which already includes several
1293-
useful extensions. For example ``Intl`` and its ``localizeddate`` filter
1294-
that formats a date according to user's locale. These official Twig extensions
1295-
also have to be added as regular services:
1296-
1297-
.. configuration-block::
1298-
1299-
.. code-block:: yaml
1300-
1301-
services:
1302-
Twig\Extensions\IntlExtension:
1303-
tags: [twig.extension]
1304-
1305-
.. code-block:: xml
1306-
1307-
<?xml version="1.0" encoding="UTF-8" ?>
1308-
<container xmlns="http://symfony.com/schema/dic/services"
1309-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1310-
xsi:schemaLocation="http://symfony.com/schema/dic/services
1311-
https://symfony.com/schema/dic/services/services-1.0.xsd">
1312-
1313-
<services>
1314-
<service id="Twig\Extensions\IntlExtension">
1315-
<tag name="twig.extension"/>
1316-
</service>
1317-
</services>
1318-
</container>
1319-
1320-
.. code-block:: php
1321-
1322-
$container
1323-
->register('Twig\Extensions\IntlExtension')
1324-
->addTag('twig.extension')
1325-
;
1326-
13271291
twig.loader
13281292
-----------
13291293

@@ -1404,6 +1368,5 @@ For an example, see the ``DoctrineInitializer`` class inside the Doctrine
14041368
Bridge.
14051369

14061370
.. _`Twig's documentation`: https://twig.symfony.com/doc/2.x/advanced.html#creating-an-extension
1407-
.. _`Twig official extension repository`: https://github.com/fabpot/Twig-extensions
14081371
.. _`SwiftMailer's Plugin Documentation`: http://swiftmailer.org/docs/plugins.html
14091372
.. _`Twig Loader`: https://twig.symfony.com/doc/2.x/api.html#loaders

reference/twig_reference.rst

-8
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ describe these extra features.
2828
framework. You are probably using some other bundles as well, and
2929
those might come with their own extensions not covered here.
3030

31-
.. tip::
32-
33-
The `Twig Extensions repository`_ contains some additional Twig extensions
34-
that do not belong to the Twig core, so you might want to have a look at
35-
the `Twig Extensions documentation`_.
36-
3731
.. _reference-twig-functions:
3832

3933
Functions
@@ -771,6 +765,4 @@ The available attributes are:
771765
* ``app.flashes``, returns flash messages from the session
772766

773767
.. _`Twig Reference`: https://twig.symfony.com/doc/2.x/#reference
774-
.. _`Twig Extensions repository`: https://github.com/twigphp/Twig-extensions
775-
.. _`Twig Extensions documentation`: http://twig-extensions.readthedocs.io/en/latest/
776768
.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig/Extension

0 commit comments

Comments
 (0)