问题
After installation wizard is finished I get this error.
Slim Application Error The application could not run because of the following error:
Details
Type: RuntimeException
Message: Identifier DB not initialized yet
File: /.../recovery/install/src/ContainerProvider.php
Line: 162
Is there is some configuration file where I can set DB params? I had insert all params via installation wizard.
回答1:
In file recovery/install/src/ContainerProvider.php Add 2 strings:
- In use-section
use Shopware\Recovery\Update\Utils;
2.
$container['db'] = function ($c) {
$conn = Utils::getConnection(SW_PATH);
return $conn;
};
来源:https://stackoverflow.com/questions/45637033/shopware-installation-error-identifier-db-not-initialized-yet