S
S
Sergey delphinpro2015-04-21 12:07:46
git
Sergey delphinpro, 2015-04-21 12:07:46

What is the correct way to describe dependencies?

I use Slim + Slim/Extras + Twig in the project.
The error Strict Standard takes off. I found a solution to the problem in the list of pull requests, but at the moment the pull request has not been accepted. https://github.com/codeguy/Slim-Extras/pull/87
What is the right way to make Composer install the code corrected in this pull request using the install command? Is it even possible? If not, how to be?
So far, in order not to slow down development, I have corrected the code in the vendor folder, but this is absolutely the wrong approach.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
padlyuck, 2015-04-30
@delphinpro

In this case, I fork the package in which I need to make changes, make the necessary changes in the new branch, and add an additional repository to composer.json. Looks like this

{
    "require": {
        "original-vendor/original-package-name": "dev-my-branch-name"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/my-nickname/my-fork-url.git"
        }
   ]
}

where my-branch-name is the name of the branch in my repository

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question