首页 文章

Symfony 2.3通过composer安装SonataAdminBundle

提问于
浏览
1

我正在尝试通过composer安装sonataAdminBundle,就像在文档中一样

php composer.phar require sonata-project/doctrine-orm-admin-bundle

然后输入版本 - dev-master

Please provide a version constraint for the sonata-project/doctrine-orm-admin-bundle requirement: dev-master

它会......

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing sonata-project/block-bundle (2.2.7)
    Downloading: 100%         

  - Installing sonata-project/exporter (1.3.2)
    Downloading: 100%         

  - Installing sonata-project/jquery-bundle (1.8.3)
    Downloading: 100%         

  - Installing knplabs/knp-menu (v1.1.2)
    Downloading: 100%         

  - Installing knplabs/knp-menu-bundle (v1.1.2)
    Downloading: 100%         

  - Installing sonata-project/admin-bundle (2.2.7)
    Downloading: 100%         

  - Installing sonata-project/doctrine-orm-admin-bundle (dev-master 84aa85c)
    Cloning 84aa85cdb53dbab7204ece9510541f713102d297



  [RuntimeException]                                                                                                  
  Failed to clone https://github.com/sonata-project/SonataDoctrineORMAdminBundle.git, git was not found, check that   
  it is installed and in your PATH env.                                                                               

  sh: 1: git: not found                                                                                               




require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN]

有错误,它没有找到..我看到/ vendors /中有sonata-project文件夹,其中包含admin-bundle,block-bundle,doctrine-orm-admin-bundle,exporter,jquery bundle文件夹..

一切都好吗?但他没有找到SonataDoctrineORMAdminBundle . 我怎样才能解决这个问题?

谢谢

Composer.json

{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "sonata-project/doctrine-orm-admin-bundle": "dev-master"
    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "minimum-stability": "stable",
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.3-dev"
        }
    }
}

1 回答

  • 2

    Git可执行文件不存在,请安装它...

相关问题