Last active
October 27, 2017 11:55
-
-
Save svenmuennich/6b52079c157d78e7545f685bf51698c8 to your computer and use it in GitHub Desktop.
Shopware (5.2+) dev config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'db' => [ | |
'username' => '<USERNAME>', | |
'password' => '<PASSWORD>', | |
'dbname' => 'shopware', | |
'host' => 'localhost', | |
'port' => '3306' | |
], | |
// Disable backend cache | |
'template' => [ | |
'forceCompile' => true | |
], | |
'model' => [ | |
'cacheProvider' => 'Array' | |
], | |
'cache' => [ | |
'backend' => 'Black-Hole', | |
'backendOptions' => [], | |
'frontendOptions' => [ | |
'write_control' => false | |
], | |
], | |
// Disable CSRF protection in backend | |
// WARNING: You should only use this in very specific cases, e.g. when playing around with certain actions! | |
// In general, use the CSRFWhitelistAware interface to exclude actions from the CSRF protection. | |
// 'csrfProtection' => [ | |
// 'frontend' => true, | |
// 'backend' => false | |
// ], | |
// Don't swallow exceptions in the shop frontend (make sure to comment this out to catch exceptions in | |
// the API, if necessary, since these parameters somehow change both the frontend and the API) | |
'front' => [ | |
// 'noErrorHandler' => true, | |
// 'throwExceptions' => true, | |
// 'showException' => true | |
], | |
// Make sure PHP errors are displayed, since starting from Shopware 5.2 they are hidden by default | |
'phpsettings' => [ | |
'display_errors' => 1 | |
], | |
'template_security' => [ | |
// @deprecated with 5.3, config switch will be removed with 5.4 | |
'enabled' => true, | |
// Add symlinked directories here | |
'secure_dir' => [ | |
'<PATH_TO_MY_SYMLINKED_PLUGINS>' | |
], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment