@@ -63,24 +63,10 @@ is automatically configured to use it.
63
63
You can jump directly to the next section.
64
64
65
65
If you use the :doc: `Symfony Local Web Server </setup/symfony_server >`,
66
- the easiest way to install a Mercure hub is to leverage its :ref: `Docker integration <symfony-server-docker>.
66
+ a Mercure hub will be automatically available as a Docker service thanks to its :ref: `Docker integration <symfony-server-docker>.
67
67
68
- First, be sure that recent versions of Docker and Docker Compose are properly installed on your computer.
69
- Then, create ``docker-compose.yml`` and ``docker-compose.override.yml `` files in your project root directory
70
- if they don't already exists:
71
-
72
- .. code-block :: terminal
73
-
74
- $ echo 'version: "3.8"' > docker-compose.yml
75
- $ echo 'version: "3.8"' > docker-compose.override.yml
76
-
77
- Then, enable the Docker support of Symfony Flex:
78
-
79
- .. code-block :: terminal
80
-
81
- $ composer config --json extra.symfony.docker 'true'
82
-
83
- Finally, be sure to start the Symfony Local Web Server with the ``--no-tls `` option:
68
+ Be sure that recent versions of Docker and Docker Compose are properly installed on your computer
69
+ and to start the Symfony Local Web Server with the ``--no-tls`` option:
84
70
85
71
.. code-block :: terminal
86
72
@@ -89,15 +75,14 @@ Finally, be sure to start the Symfony Local Web Server with the ``--no-tls`` opt
89
75
Installing the Symfony Bundle
90
76
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
77
92
- In applications using :ref: `Symfony Flex <symfony-flex >`, run this command to
93
- install the Mercure support before using it:
78
+ Run this command to install the Mercure support before using it:
94
79
95
80
.. code-block :: terminal
96
81
97
82
$ composer require mercure
98
83
99
- If you previously enabled the Docker support of Symfony Flex, your Docker Compose
100
- definition has been updated to include a Mercure service.
84
+ :ref: ` Symfony Flex < symfony-flex >` has automatically installed and configured MercureBundle.
85
+ It also created (if needed) and configured a Docker Compose definition that provides a Mercure service.
101
86
Run ``docker-compose up `` to start it.
102
87
103
88
Configuration
0 commit comments