Symfony 2:在AppKernel中找不到LiipDoctrineCacheBundle

Symfony 2:在AppKernel中找不到LiipDoctrineCacheBundle,symfony,bundle,Symfony,Bundle,我已在网站的vendor\bundles\文件夹中安装了此捆绑包 然后,像往常一样,我在autoload.php中在数组名称空间中添加了一个新条目: 'Liip'=>\uuuuu DIR\uuuuu./../vendor/bundles', 我在包的AppKernel.php数组中注册了这个新包: new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(), 但奇怪的是,我得到了这个错误信息: 致命错误:在第26行的C:\workspace\LH

我已在网站的vendor\bundles\文件夹中安装了此捆绑包

然后,像往常一样,我在autoload.php中在数组名称空间中添加了一个新条目:

'Liip'=>\uuuuu DIR\uuuuu./../vendor/bundles',

我在包的AppKernel.php数组中注册了这个新包:

new Liip\DoctrineCacheBundle\LiipDoctrineCacheBundle(),

但奇怪的是,我得到了这个错误信息:

致命错误:在第26行的C:\workspace\LHN\app\AppKernel.php中找不到类“liip\DoctrineCacheBundle\LiipDoctrineCacheBundle”

这就像Symfony无法检索命名空间中的包一样

因此,我尝试更改bundle键的大小写:
'Liip'
==>
'Liip'

我还尝试了完全路径位置:
\uuuu DIR\uuuu.'/../vendor/bundles'
==>
C:\workspace\mySite\vendor\bundles

有什么想法吗

Thks

Symfony:2.0.9
Liip bundle:master

您可能对bundle类使用了错误的名称。 我想应该是这样

new Liip\LiipDoctrineCacheBundle\LiipDoctrineCacheBundle()


不确定第一个“L”在您的供应商/捆绑包/来源中是否为大写。

感谢Laurynas的评论,我理解了我的问题:源捆绑包路径错误
vendor\bundles\liip\LiipDoctrineCacheBundle

而不是

vendor\bundles\Liip\DoctrineCacheBundle

这个问题的根源是我在deps文件(其中定义了git位置、版本和目标目录)中犯了一个错误,将target属性设置为/bundles/liip/LiipDoctrineCacheBundle,而不是/bundles/liip/DoctrineCacheBundle

我的坏…;-)

正确的dep块:

[LiipDoctrineCacheBundle]
 git=https://github.com/liip/LiipDoctrineCacheBundle.git
 target=/bundles/Liip/DoctrineCacheBundle
 version=master
[LiipDoctrineCacheBundle]
 git=https://github.com/liip/LiipDoctrineCacheBundle.git
 target=/bundles/Liip/DoctrineCacheBundle
 version=master