Configuration
Basic configuration file to run the application.
All important application settings are located inside .env file in the project root directory. This file is not bundled and you are required to create it. You can find template env_template in a root directory which you can rename to .env.
When configuring the the database connection you have to provide URI which consists from several parts. You can read about them in Doctrine's documentation. Application was tested with MariaDB and MySQL and everything was working without any issues. In the example above you can see more complex URI specifying a lot of options to showcase using MariaDB at the certain version. Sometimes it is important to specify exact version so the Doctrine will know how to run the queries against the DB because different DB versions supports miscellaneous features.
Last updated