gpt4 book ai didi

php - Laravel app boostraps 在测试环境的早期

转载 作者:行者123 更新时间:2023-11-28 20:52:22 24 4
gpt4 key购买 nike

正常情况下,申请是bootstrapped after请求 created .但是在测试环境中它发生了before创建请求。

这导致 socialiteproviders/manager 隐式创建 request here ,认为它已经存在。此请求未被使用,并且 the other one是在那之后创建的。

因此,我无法使用 withSession helper 伪造 session 数据.因为它改变了为后面的请求创建的 session 。 SocialiteProviders 的提供者总是得到空 session 。

如果我禁用引导它 here ,我得到的第一个错误是 at this line ,因为应用程序尚未启动。

谁的错?以及如何解决?同时您能想到任何解决方法吗?

附言更多详情 here .

最佳答案

好吧,如果我必须回答谁有错,我会说是 socialiteproviders/manager,因为它假定在引导应用程序时已经创建了请求。这是the solution我的看法。

要使用它你添加

{
"type": "vcs",
"url": "https://github.com/x-yuri/Manager"
}

composer.jsonrepositories 参数。做

$ composer require 'socialiteproviders/manager=dev-testing-boot as 2.2.1'

不过请注意,使用额外的存储库会减慢 composer 的速度。

关于php - Laravel app boostraps 在测试环境的早期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41271826/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com