6

安装向导完成后,我收到此错误。

Slim 应用程序错误由于以下错误,应用程序无法运行:

细节

Type: RuntimeException
Message: Identifier DB not initialized yet
File: /.../recovery/install/src/ContainerProvider.php
Line: 162

是否有一些配置文件可以设置数据库参数?我已经通过安装向导插入了所有参数。

4

1 回答 1

9

在文件 recovery/install/src/ContainerProvider.php 添加 2 个字符串:

  1. 在使用部分

use Shopware\Recovery\Update\Utils;

2.注册函数内部:

$container['db'] = function ($c) {
            $conn = Utils::getConnection(SW_PATH);

            return $conn;
        };
于 2019-01-10T11:00:13.437 回答