File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2376,8 +2376,11 @@ generating the route::
2376
2376
2377
2377
$this->generateUrl('blog_show', ['slug' => 'slug-value']);
2378
2378
2379
- // or, in Twig
2380
- // {{ path('blog_show', {slug: 'slug-value'}) }}
2379
+ or, in Twig:
2380
+
2381
+ .. code-block :: twig
2382
+
2383
+ {{ path('blog_show', {slug: 'slug-value'}) }}
2381
2384
2382
2385
Learn more about Routing
2383
2386
------------------------
Original file line number Diff line number Diff line change @@ -380,12 +380,12 @@ its location, same as for ``docker-compose``:
380
380
381
381
.. caution ::
382
382
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
385
385
ignore local environment variables.
386
386
For example if you set up a different database name in your ``.env.test `` file
387
387
(``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
389
389
defined in your Docker configuration and not the "test" one.
390
390
391
391
SymfonyCloud Integration
You can’t perform that action at this time.
0 commit comments