1
我有不合逻辑的问题。试图从命名空间“vCoin OpenBundle”加载类“OpenBundle”
我用命令
PHP斌/控制台产生:束
在我的项目产生新的捆绑,但symfony的告诉我这个错误。
ClassNotFoundException in AppKernel.php line 19:
Attempted to load class "OpenBundle" from namespace "vCoin\OpenBundle".
Did you forget a "use" statement for another namespace?
这是我AppKernel.php
$bundles = [
//...
new vCoin\OpenBundle\OpenBundle(),
];
,这是捆绑类
namespace vCoin\OpenBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class OpenBundle extends Bundle
{
}
我不看哪里出了问题..
的版本我使用的symfony是3.2.11,这是我的文件结构。
|-src
|---vCoin
|------OpenBundle