我从奏鸣曲捆绑开始,我需要安装但我不能:无论我遵循官方教程,我尝试访问 localhost 还是输入php app/console sonata:easy-extends:generate SonataUserBundle --dest=src
它告诉我:
[InvalidArgumentException]
Bundle "ApplicationSonataUserBundle" does not exist or it is not enabled.
或者我按照这个(fr),当我尝试更新作曲家时,它显示:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for sonata-project/doctrine-extensions dev-master -> satisfiable by sonata-project/doctrine-extensions[dev-master].
- sonata-project/media-bundle dev-master requires sonata-project/doctrine-extensions 1.* -> satisfiable by sonata-project/doctrine-extensions[1.0.0, 1.0.1].
- Can only install one of: sonata-project/doctrine-extensions[dev-master, 1.0.0].
- Can only install one of: sonata-project/doctrine-extensions[dev-master, 1.0.1].
- Installation request for sonata-project/media-bundle dev-master -> satisfiable by sonata-project/media-bundle[dev-master].
这是我第二期的 composer.json :
{
"name" : "symfony/framework-standard-edition",
"description" : "The \"Symfony Standard Edition\" distribution",
"type" : "project",
"license" : [
"MIT"
],
"require" : {
"sonata-project/admin-bundle" : "dev-master",
"symfony/swiftmailer-bundle" : "2.3.*",
"sonata-project/cache-bundle" : "dev-master",
"doctrine/orm" : ">=2.2.3,<2.4-dev",
"doctrine/data-fixtures" : "@dev",
"sonata-project/notification-bundle" : "dev-master",
"twig/extensions" : "1.0.*",
"sonata-project/doctrine-extensions" : "dev-master",
"php" : ">=5.3.3",
"sonata-project/jquery-bundle" : "dev-master",
"knplabs/gaufrette" : "dev-master",
"symfony/monolog-bundle" : "2.3.*",
"sensio/distribution-bundle" : "2.3.*",
"leafo/lessphp" : "dev-master",
"symfony/symfony" : "2.3.*",
"sonata-project/easy-extends-bundle" : "dev-master",
"sonata-project/doctrine-orm-admin-bundle" : "dev-master",
"sonata-project/media-bundle" : "dev-master",
"symfony/assetic-bundle" : "2.3.*",
"incenteev/composer-parameter-handler" : "~2.0",
"sonata-project/exporter" : "dev-master",
"simplethings/entity-audit-bundle" : "dev-master",
"sensio/generator-bundle" : "2.3.*",
"sonata-project/block-bundle" : "dev-master",
"doctrine/doctrine-bundle" : "1.2.*"
},
"autoload" : {
"psr-0" : {
"" : "src/"
}
},
"minimum-stability" : "stable",
"config" : {
"bin-dir" : "bin"
},
"extra" : {
"branch-alias" : {
"dev-master" : "2.3-dev"
},
"symfony-web-dir" : "web",
"symfony-app-dir" : "app",
"incenteev-parameters" : {
"file" : "app/config/parameters.yml"
}
}
}
拜托,我被屏蔽了!这些捆绑包应该可以节省时间,但编写它们会更快!