8000 Merge branch '4.2' · symfony/symfony-docs@796126b · GitHub
[go: up one dir, main page]

Skip to content

Commit 796126b

Browse files
committed
Merge branch '4.2'
* 4.2: [reference] [constraints] fixes small typo in `Time` validation constraint documentation. Made the explanation more concise Rephrase paragraph for clarification. Fixes typo with reassigning env vars.
2 parents 711a1bf + b400a65 commit 796126b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

reference/constraints/Time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Validator :class:`Symfony\\Component\\Validator\\Constraints\\TimeValidator`
1616
Basic Usage
1717
-----------
1818

19-
Suppose you have an Event class, with a ``startAt`` field that is the time
19+
Suppose you have an Event class, with a ``startsAt`` field that is the time
2020
of the day when the event starts:
2121

2222
.. configuration-block::

setup/symfony_server.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,16 +283,16 @@ autoconfigured):
283283
# RABBITMQ_DSN
284284
rabbitmq: ...
285285
286-
If you can't or don't want to update the service names, you must remap the env
287-
vars so Symfony can find them. For example, if you want to keep a service called
288-
``mysql`` instead of renaming it to ``database``, the env var will be called
289-
``MYSQL_URL`` instead of the ``DATABASE_URL`` env var used in the Symfony
290-
application, so you add the following to the ``.env.local`` file:
286+
If your ``docker-compose.yaml`` file doesn't use the environment variable names
287+
expected by Symfony (e.g. you use ``MYSQL_URL`` instead of ``DATABASE_URL``)
288+
then you need to rename all occurrences of those environment variables in your
289+
Symfony application. A simpler alternative is to use the ``.env.local`` file to
290+
reassign the environment variables:
291291

292292
.. code-block:: bash
293293
294294
# .env.local
295-
MYSQL_URL=${DATABASE_URL}
295+
DATABASE_URL=${MYSQL_URL}
296296
# ...
297297
298298
Now you can start the containers and all their services will be exposed. Browse

0 commit comments

Comments
 (0)
0