使用forked Git存储库

时间:2015-12-13 14:06:43

标签: php github composer-php

我做了什么:

  1. 我已经分叉this GitHub存储库并添加了一些小功能。
  2. 我已根据this回复更新了我的composer.json
  3. 我已经composer update
  4. 我收到了错误:Class 'Thujohn\Pdf\PdfServiceProvider' not found in ~/my-project/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
  5. 我必须做些什么才能避免错误?有什么建议吗?提前谢谢。

    UPD1

    composer.json:

       {
            "name": "laravel/laravel",
            "description": "The Laravel Framework.",
            "keywords": ["framework", "laravel"],
            "license": "MIT",
            "repositories": [{
                "type":"package",
                "package": {
                    "name": "mineroot/pdf-l4",
                    "version":"master",
                    "source": {
                        "url": "https://github.com/mineroot/pdf-l4",
                        "type": "git",
                        "reference":"master"
                    }
                }
            }],
            "require": {
                "laravel/framework": "4.2.*",
                "mineroot/pdf-l4": "master"
            },
            "autoload": {
                "classmap": [
                    "app/commands",
                    "app/controllers",
                    "app/models",
                    "app/database/migrations",
                    "app/database/seeds",
                    "app/tests/TestCase.php"
                ]
            },
            "scripts": {
                "post-install-cmd": [
                    "php artisan clear-compiled",
                    "php artisan optimize"
                ],
                "post-update-cmd": [
                    "php artisan clear-compiled",
                    "php artisan optimize"
                ],
                "post-create-project-cmd": [
                    "php artisan key:generate"
                ]
            },
            "config": {
                "preferred-install": "dist"
            },
            "minimum-stability": "dev"
        }
    

    UPD2

    现在在composer.json中

    我的repositories数组:

    "repositories": [
        {
            "url": "https://github.com/mineroot/pdf-l4",
            "type": "git"
        }
    ]
    

0 个答案:

没有答案