[Docs] Add warning about restricting Symfony version before Sylius installation

This commit is contained in:
Kevin Kaniaburka 2022-10-24 14:56:08 +02:00
parent cf824f52a3
commit 70d2229d85
No known key found for this signature in database
GPG key ID: 8DB4C54474F3FD72
2 changed files with 22 additions and 0 deletions

View file

@ -47,6 +47,17 @@ the contents of that new file should look like the following snippet:
DATABASE_URL=mysql://username:password@host/my_custom_sylius_database
.. warning::
Specific Sylius versions may support various Symfony versions. To make sure the correct Symfony version will be
installed (Symfony 6.0 for example) use:
.. code-block:: bash
composer config extra.symfony.require "^6.0"
composer update
Otherwise, you may face the problem of having Symfony components of the wrong version installed.
After everything is in place, run the following command to install Sylius:
.. code-block:: bash

View file

@ -37,6 +37,17 @@ It will create a ``MyFirstShop`` directory with a brand new Sylius application i
Beware! The next step includes the database setup. It will set your database credentials
(username, password, and database name) in the file with environment variables (``.env`` is the most basic one).
.. warning::
Specific Sylius versions may support various Symfony versions. To make sure the correct Symfony version will be
installed (Symfony 6.0 for example) use:
.. code-block:: bash
composer config extra.symfony.require "^6.0"
composer update
Otherwise, you may face the problem of having Symfony components of the wrong version installed.
To launch a Sylius application initial data has to be set up: an administrator account and base locale.
Run the Sylius installation command to do that.