在installation instructions之后,我添加了
#depts
[SonataAdminBundle]
git=git://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
version=origin/2.0和
#app/config/config.yml
sonata_block:
default_contexts: [cms]
blocks:
sonata.admin.block.admin_list:
contexts: [admin]
sonata.block.service.text:
sonata.block.service.action:
sonata.block.service.rss:已启动更新
$ php bin/vendors install所有供应商捆绑包都已更新/安装,但在SonataAdminBundle之后编写
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "/var/www/Symfony/app/config/config.yml" from "/var/
www/Symfony/app/config/config_dev.yml".
[InvalidArgumentException]
There is no extension able to load the configuration for "sonata_block" (in
/var/www/Symfony/app/config/config.yml). Looked for namespace "sonata_bloc
k", found "framework", "security", "twig", "monolog", "swiftmailer", "doctr
ine", "assetic", "sensio_framework_extra", "jms_security_extra", "glide_rep
ort", "fos_user", "glide_user", "acme_demo", "web_profiler", "sensio_distri
bution"
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "/var/www/Symfony/app/config/config.yml" from "/var/
www/Symfony/app/config/config_dev.yml".
[InvalidArgumentException]
There is no extension able to load the configuration for "sonata_block" (in
/var/www/Symfony/app/config/config.yml). Looked for namespace "sonata_bloc
k", found "framework", "security", "twig", "monolog", "swiftmailer", "doctr
ine", "assetic", "sensio_framework_extra", "jms_security_extra", "glide_rep
ort", "fos_user", "glide_user", "acme_demo", "web_profiler", "sensio_distri
bution" 可能的原因是什么?
发布于 2012-06-18 22:51:13
SonataAdminBundle有许多依赖项,正如您引用的说明中所写的那样。它们是:
SonataCacheBundle
SonataBlockBundle
SonatajQueryBundle
KnpMenuBundle (Version 1.1.*)
Exporter您可能错过了SonataBlockBundle (至少这个错误表明您没有从config.yml加载sonata_block的扩展)
https://stackoverflow.com/questions/11084858
复制相似问题