

This is important to understand, because some errors need to be caught by the Shopware error handler for self-healing processes e.g. In contrast, the option throwExceptions skips the Shopware error handler and outputs the pure PHP exception. The option showException keeps the Shopware error handler enabled, catches the PHP exception and prints the message instead of showing the generic "Oops! An error has occurred!" message.

The difference between throwExceptions and showException is how an exception will be handled. The default value of error_reporting should be sufficient for developing. These PHP settings override the defaults of your php.ini.ĭisplay_errors is the only important option to change for debugging. 'error_reporting' => E_ALL & ~E_USER_DEPRECATED, For more information take a look at the complete guide: CSRF Protection PHP runtime settings 'phpsettings' => [ Deactivating them is for example necessary if you want to run mink tests With these options you can activate/deactivate the CSRF attack protection. With enabled locking ajax requests are processed one after another. This prevents unsuspected failures when concurrent ajax requests work with the same session variables. The environment-specific config file is preferred over the normal one.īlog post with a more advanced use case: Configuring multiple Shopware environments Session lockingĪs of Shopware 5.2.13 session locking is enabled by default. ENVIRONMENT should be replaced with the environment the kernel gets initialized and defaults to production, e.g. To be able to set different configs for different environments, you can place a file called config_ENVIRONMENT.php in the Shopware root directory. Need to specify options in your config.php if you want to override the defaults.īut keep in mind that most of these options should only be used for debugging and testingĪnd should be removed for your live system. Which holds all possible configuration options and their default values. Installation process and filled with your database credentials.ĭuring this guide you will get to know some important options of the configuration.įor a complete list of options you can look at the engine/Shopware/Configs/Default.php file

This file is in the root folder of a shopware installation. In this guide we will take a closer look at the configuration file config.php. Register a cookie to the cookie consent managerĬreate custom digital publishing elements
