Skip to content

Commit 0f832cc

Browse files
committed
Merge branch '5.1' into 5.x
* 5.1: Minor: Use Twig code block some minor tweaks
2 parents b08f100 + b8fa740 commit 0f832cc

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

routing.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,8 +2767,11 @@ generating the route::
27672767

27682768
$this->generateUrl('blog_show', ['slug' => 'slug-value']);
27692769

2770-
// or, in Twig
2771-
// {{ path('blog_show', {slug: 'slug-value'}) }}
2770+
or, in Twig:
2771+
2772+
.. code-block:: twig
2773+
2774+
{{ path('blog_show', {slug: 'slug-value'}) }}
27722775
27732776
Learn more about Routing
27742777
------------------------

setup/symfony_server.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,12 @@ its location, same as for ``docker-compose``:
380380

381381
.. caution::
382382

383-
When using Symfony binary with ``php bin/console`` (``symfony console ...``)
384-
the binay will **always** use environment variables detected via Docker and will
383+
When using the Symfony binary with ``php bin/console`` (``symfony console ...``),
384+
the binary will **always** use environment variables detected via Docker and will
385385
ignore local environment variables.
386386
For example if you set up a different database name in your ``.env.test`` file
387387
(``DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/test``) and if you run
388-
``symfony console doctrine:database:drop --force --env=test`` the command will drop the database
388+
``symfony console doctrine:database:drop --force --env=test``, the command will drop the database
389389
defined in your Docker configuration and not the "test" one.
390390

391391
SymfonyCloud Integration

0 commit comments

Comments
 (0)