Skip to content

Commit 19a8fae

Browse files
committed
reflected new features in doc
1 parent b5c65a3 commit 19a8fae

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

languages/php/index.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Templates
1616
1717
based on ``BundleInterface``, ``addPath`` of container and custom path of settings
1818

19+
* ``goto`` - Template file
20+
* ``complete`` - Template names
21+
* ``annotator`` - Mark missing template and provides twig template create action
22+
1923
.. code-block:: php
2024
2125
/**
@@ -32,7 +36,7 @@ based on ``BundleInterface``, ``addPath`` of container and custom path of settin
3236
3337
* ``goto`` - Template on click of ``@Template``
3438
* ``complete`` - Template names
35-
* ``annotator`` - Mark missign template and provides twig template create action
39+
* ``annotator`` - Mark missing template and provides twig template create action
3640

3741
.. code-block:: php
3842

languages/twig/index.rst

+15-2
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ Functions / Macros
6565
{% set var_name = 'Foo' %}
6666
{{ <var_name> }}
6767

68+
Extension
69+
-------------------------
70+
6871
.. code-block:: html+jinja
6972

7073
{{ <Twig_Function_Method()> }}
7174
{{ <Twig_Function_Node()> }}
7275
{{ <Twig_SimpleFunction()> }}
73-
7476

75-
based on ``Twig_ExtensionInterface`` and simple regular expression
77+
based on ``Twig_ExtensionInterface`` and simple regular expression
78+
79+
* ``goto`` - Php function or method
80+
* ``complete`` - twig extension name
7681

7782
Filter
7883
-------------------------
@@ -125,6 +130,14 @@ Translation
125130
126131
* ``goto`` - Yaml Key-Value of Domain, default ``messages`` or ``trans_default_domain`` of current file
127132
* ``complete`` - All known translation key filtered by domain name
133+
134+
.. code-block:: html+jinja
135+
136+
{% trans_default_domain <Domain> %}
137+
138+
* ``goto`` - Translation domain file
139+
* ``complete`` - Registered translation domains
140+
128141

129142
Routing
130143
-------------------------

languages/yaml/index.rst

+10
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ based on container and local file parser
5757
- [ <setContainer>, ... ]
5858
5959
* ``complete`` - Public methods of service class
60+
61+
.. code-block:: yaml
62+
63+
services:
64+
mopa_bootstrap.menu:
65+
class: Knp\Menu\MenuItem
66+
factory_service: annotation_reader
67+
factory_method: createFoo
68+
69+
* ``complete`` - factory_method and factory_service
6070

6171
Routing
6272
-------------------------

0 commit comments

Comments
 (0)