如何解决Slim4 Sapphirecat错误

问题描述 投票:0回答:1

致命错误:sapphirecat

的类型

FATAL错误:Sapphirecat的类型\ Slim4HttpInteropadapter \ Guzzlepsr7v1Factory :: $ ResponseFactoryClass必须是字符串(如Class Slim \ factory \ PSR17 \ psr17 \ psr17factory)操作适配器\ src \ guzzlepsr7v1factory.php在第14行上

我已经重新安装了纤细的要求,但是我又有相同的错误

当您等待供应商的修复程序,

tempolaly

编辑文件guzzlepsr7v1 -factory.php from

/** @var string */ protected static $responseFactoryClass = 'Http\Factory\Guzzle\ResponseFactory'; /** @var string */ protected static $streamFactoryClass = 'Http\Factory\Guzzle\StreamFactory'; /** @var string */ protected static $serverRequestCreatorClass = 'GuzzleHttp\Psr7\ServerRequest'; /** @var string */ protected static $serverRequestCreatorMethod = 'fromGlobals';

php html xampp composer-php slim-4
1个回答
-2
投票

/** @var string */ protected static string $responseFactoryClass = 'Http\Factory\Guzzle\ResponseFactory'; /** @var string */ protected static string $streamFactoryClass = 'Http\Factory\Guzzle\StreamFactory'; /** @var string */ protected static string $serverRequestCreatorClass = 'GuzzleHttp\Psr7\ServerRequest'; /** @var string */ protected static string $serverRequestCreatorMethod = 'fromGlobals'; I.E。添加每个班级成员之后。


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.