Skip to content

Commit a696ebf

Browse files
committed
docs(config): add warn about invalid characters in env name
1 parent 922fa71 commit a696ebf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configuration.rst

+7
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,13 @@ going to production:
594594
use `symbolic links`_ between ``config/packages/<environment-name>/``
595595
directories to reuse the same configuration.
596596

597+
.. warning::
598+
599+
Some characters are not allowed in environment name, e.g. the
600+
``-`` character. If you try to use it, it will throw this exception:
601+
The environment "%s" contains invalid characters, it can only contain
602+
characters allowed in PHP class names.
603+
597604
Instead of creating new environments, you can use environment variables as
598605
explained in the following section. This way you can use the same application
599606
and environment (e.g. ``prod``) but change its behavior thanks to the

0 commit comments

Comments
 (0)