gpt4 book ai didi

symfony - 尝试从命名空间 "DoctrineCacheBundle"加载类 "Doctrine\Bundle\DoctrineCacheBundle"

转载 作者:行者123 更新时间:2023-12-03 18:25:12 28 4
gpt4 key购买 nike

任何人都可以帮助我吗,伙计们?每次运行命令 php bin/console server:run发生此错误:

PHP Fatal error: UncaughtSymfony\Component\Debug\Exception\ClassNotFoundException: Attempted toload class "DoctrineCacheBundle" from namespace"Doctrine\Bundle\DoctrineCacheBundle". Did you forget a "use"statement for another namespace? in C:\Users\XX-2\Desktop\ReactProjects\test_project\src\Kernel.php:23

最佳答案

这可能是因为更新原则包。删除此行 Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],来自 bundles.php , 这个对我有用。

关于symfony - 尝试从命名空间 "DoctrineCacheBundle"加载类 "Doctrine\Bundle\DoctrineCacheBundle",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59497753/

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