Skip to content

Custom Installer and moving (temporary?) files from vcs repositories within vendor/ #11365

Discussion options

You must be logged in to vote

OK, so I had to take a deep dive into promises. I found my mistake.

I implemented the install/update methods like this:

    public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
    {
        $return = parent::update($repo, $initial, $target);
        return $this->unpackage($repo, $target, $return);
    }

    public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        $return = parent::install($repo, $package);
        return $this->unpackage($repo, $package, $return);
    }

which is pretty wrong of course; my unpackage() method passed on the $return value of the parent method, but it se…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garvinhicking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant