Skip to content

Commit 120e9be

Browse files
committed
Minor tweaks
1 parent c7b05f7 commit 120e9be

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

templating/twig_extension.rst

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ your code faster.
1919
from having a look at the `Twig Bridge`_ which contains most of
2020
the extensions provided by the Symfony Framework.
2121

22+
.. tip::
23+
2224
We also have :doc:`a short article </templating/twig_extension_repository>`
2325
on how to use extensions from the `Twig official extension repository`_.
2426

templating/twig_extension_repository.rst

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.. index::
22
single: Using the Twig Extensions Repository
33

4-
How to Use the Twig Extension Repository
4+
How to Use the Twig Extensions Repository
55
========================================
66

77
The `Twig official extension repository`_ contains (as of writing) some
88
helpful Twig extensions that are not part of the Twig core. They add
9-
useful functions for internationalization, working with Arrays and
9+
useful functions for internationalization, working with arrays and
1010
dates. To learn more about these extensions, have a look at their
1111
`documentation`_.
1212

@@ -40,7 +40,7 @@ Then, define the extension class as a service and tag it with the
4040
4141
# app/config/services.yml
4242
services:
43-
twig_extension.intl:
43+
twig_extensions.intl:
4444
class: Twig_Extensions_Extension_Intl
4545
tags:
4646
- { name: twig.extension }
@@ -55,7 +55,7 @@ Then, define the extension class as a service and tag it with the
5555
http://symfony.com/schema/dic/services/services-1.0.xsd">
5656
5757
<services>
58-
<service id="twig_extension.intl"
58+
<service id="twig_extensions.intl"
5959
class="Twig_Extensions_Extension_Intl">
6060
<tag name="twig.extension" />
6161
</service>
@@ -68,7 +68,7 @@ Then, define the extension class as a service and tag it with the
6868
use \Twig_Extensions_Extension_Intl;
6969
7070
$container
71-
->register('twig_extension.intl', Twig_Extensions_Extension_Intl::class)
71+
->register('twig_extensions.intl', Twig_Extensions_Extension_Intl::class)
7272
->addTag('twig.extension');
7373
7474
And that's it! For example, you should now be able to use the
@@ -84,10 +84,9 @@ Learning further
8484

8585
In the :doc:`reference section </reference/twig_reference>`, you can
8686
find all the extra Twig functions, filters, tags and tests that are
87-
added by the Symfony Framework.
87+
already added by the Symfony Framework.
8888

89-
When that does not meet your particular needs, we also have
90-
documentation on :doc:`how to write your own Twig extension </templating/twig_extension>`.
89+
We also have documentation on :doc:`how to write your own Twig extension </templating/twig_extension>`.
9190

9291
.. _`Twig official extension repository`: https://github.com/twigphp/Twig-extensions
9392
.. _`documentation`: http://twig-extensions.readthedocs.io/

0 commit comments

Comments
 (0)