Laravel 5.6作曲家不会安装我的软件包的依赖项

时间:2018-05-10 08:28:24

标签: laravel composer-php bitbucket

当我使用"作曲家需要x / y"我的自定义包中的命令全部完成。完美地获取所有依赖关系。

但是当我尝试从bitbucket存储库添加到laravel项目时,只安装我的包而没有所有依赖项。

我将私有存储库设置为laravel composer.json文件

"repositories": {
    "hooks": {
        "type":"package",
        "package": {
            "name": "x/y",
            "version":"1.0.2",
            "source": {
                "url": "https://{username}@bitbucket.org/x/y.git",
                "type": "git",
                "reference": "master"
            }
        }
    }
}

我的自定义存储库composer.json

{
        "name": "x/y",
        "description": "Base Api System",
        "license": "MIT",
        "require": {
            "php": "^7.2",
            "tcg/voyager": "^1.1",
            "predis/predis": "1.1",
            "monarobase/country-list": "^2.0"
        },
        "require-dev": {
        },
        "autoload": {
            "psr-4": {
                "X\\Y\\": "src/"
            }
        },
        "minimum-stability": "dev",
        "extra": {
            "laravel": {
                "providers": [
                    "X\\Y\\XYServiceProvider"
                ]
            }
        }
    }

Composer需要输出

Using version ^1.0 for x/y
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing x/y (1.0.2): Cloning master from cache
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nunomaduro/collision
Package manifest generated successfully.

0 个答案:

没有答案