Skip to content

Commit 20f2616

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Adding default PHP format Adding link to Kernel configuration add precision for stopwatch getEvent function
2 parents 627bae1 + 653f0ff commit 20f2616

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

configuration.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ to change these files after package installation
5252
:doc:`Symfony Configuration Reference </reference/index>` or run the
5353
``config:dump-reference`` command.
5454

55+
.. _configuration-formats:
56+
5557
Configuration Formats
5658
~~~~~~~~~~~~~~~~~~~~~
5759

performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ information about the current event, even while it's still running. This
278278
object can be converted to a string for a quick summary::
279279

280280
// ...
281-
dump((string) $this->stopwatch->getEvent()); // dumps e.g. '4.50 MiB - 26 ms'
281+
dump((string) $this->stopwatch->getEvent('export-data')); // dumps e.g. '4.50 MiB - 26 ms'
282282

283283
You can also profile your template code with the :ref:`stopwatch Twig tag <reference-twig-tag-stopwatch>`:
284284

routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ the ``BlogController``:
159159
160160
.. note::
161161

162-
By default Symfony only loads the routes defined in YAML format. If you
163-
define routes in XML and/or PHP formats, update the ``src/Kernel.php`` file
164-
to add support for the ``.xml`` and ``.php`` file extensions.
162+
By default Symfony only loads the routes defined in YAML and PHP format.
163+
If you define routes in XML, you need to
164+
:ref:`update the ``src/Kernel.php`` file <configuration-formats>`.
165165

166166
.. _routing-matching-http-methods:
167167

0 commit comments

Comments
 (0)