0
當我在我的symfony項目中安裝sonata-admin軟件包時。我已經配置我的YML文件如下:無法在symfony2中安裝sonata-admin軟件包
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:
和我的hve DEPS文件如下:
[SonataAdminBundle]
git=git://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
version=origin/2.0
我收到以下錯誤
安裝/更新SonataAdminBundle a25d8c0e084ed4a175b89a93e93bdea2cf5563ab 致命的:無法查找github.com(端口9418)(沒有這樣的主機是已知的。)
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "C:\wamp\www\Symfony\app/config\config.yml" from "C:\wa
mp\www\Symfony\app/config/config_dev.yml".
[InvalidArgumentException]
There is no extension able to load the configuration for "sonata_block" (in C:
\wamp\www\Symfony\app/config\config.yml). Looked for namespace "sonata_block", f
ound "framework", "security", "twig", "monolog", "swiftmailer", "doctrine", "ass
etic", "sensio_framework_extra", "jms_security_extra", "acme_hello", "acme_task"
, "ensl_jobeet", "acme_demo", "web_profiler", "sensio_distribution"
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "C:\wamp\www\Symfony\app/config\config.yml" from "C:\wa
mp\www\Symfony\app/config/config_dev.yml".
[InvalidArgumentException]
There is no extension able to load the configuration for "sonata_block" (in C:
\wamp\www\Symfony\app/config\config.yml). Looked for namespace "sonata_block", f
ound "framework", "security", "twig", "monolog", "swiftmailer", "doctrine", "ass
etic", "sensio_framework_extra", "jms_security_extra", "acme_hello", "acme_task"
, "ensl_jobeet", "acme_demo", "web_profiler", "sensio_distribution"
我應該在這種情況下做