Skip to content

Commit 2b17e1b

Browse files
committed
Merge pull request symfony#1978 from WouterJ/add_phpmethod_links
[Waiting code merge] Tweaked links to become phpmethod roles
2 parents b874bce + a46cb2f commit 2b17e1b

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

contributing/documentation/format.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ and to the PHP documentation:
157157
158158
:phpclass:`SimpleXMLElement`
159159
160-
`DateTime::createFromFormat`_
160+
:phpmethod:`DateTime::createFromFormat`
161161
162162
:phpfunction:`iterator_to_array`
163163
@@ -215,4 +215,3 @@ Installing the Sphinx extensions
215215
.. _Pygments website: http://pygments.org/languages/
216216
.. _source: https://github.com/fabpot/sphinx-php
217217
.. _Sphinx quick setup: http://sphinx-doc.org/tutorial.html#setting-up-the-documentation-sources
218-
.. _`DateTime::createFromFormat`: http://php.net/manual/en/datetime.createfromformat.php

reference/forms/types/country.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The "value" for each country is the two-letter country code.
1212

1313
.. note::
1414

15-
The locale of your user is guessed using `Locale::getDefault()`_
15+
The locale of your user is guessed using :phpmethod:`Locale::getDefault`
1616

1717
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
1818
``choice_list`` option as the field type automatically uses all of the countries
@@ -58,5 +58,3 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5858
.. include:: /reference/forms/types/options/label.rst.inc
5959

6060
.. include:: /reference/forms/types/options/read_only.rst.inc
61-
62-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php

reference/forms/types/language.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The "value" for each language is the *Unicode language identifier*
1313

1414
.. note::
1515

16-
The locale of your user is guessed using `Locale::getDefault()`_
16+
The locale of your user is guessed using :phpmethod:`Locale::getDefault`
1717

1818
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
1919
``choice_list`` option as the field type automatically uses a large list
@@ -59,5 +59,3 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5959
.. include:: /reference/forms/types/options/label.rst.inc
6060

6161
.. include:: /reference/forms/types/options/read_only.rst.inc
62-
63-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php

reference/forms/types/locale.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the ISO3166 *country* code (e.g. ``fr_FR`` for French/France).
1414

1515
.. note::
1616

17-
The locale of your user is guessed using `Locale::getDefault()`_
17+
The locale of your user is guessed using :phpmethod:`Locale::getDefault`
1818

1919
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
2020
``choice_list`` option as the field type automatically uses a large list
@@ -60,5 +60,3 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
6060
.. include:: /reference/forms/types/options/label.rst.inc
6161

6262
.. include:: /reference/forms/types/options/read_only.rst.inc
63-
64-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php

0 commit comments

Comments
 (0)