Skip to content

Commit

Permalink
Merge pull request #127 from humanmade/backport-126-to-v6-branch
Browse files Browse the repository at this point in the history
[Backport v6-branch] Rename installer class to prevent using the old instance
  • Loading branch information
roborourke authored Feb 2, 2021
2 parents 492bfe6 + 87ec1eb commit 4c997d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Altis Core Composer Installer.
*/
class Installer extends BaseInstaller {
class Override_Installer extends BaseInstaller {
/**
* Overridden packages.
*
Expand Down
4 changes: 2 additions & 2 deletions inc/composer/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function activate( Composer $composer, IOInterface $io ) {
$this->composer = $composer;
$this->io = $io;

$this->installer = new Installer( $this->io, $this->composer );
$this->installer = new Override_Installer( $this->io, $this->composer );
$this->composer->getInstallationManager()->addInstaller( $this->installer );
}

Expand Down Expand Up @@ -65,7 +65,7 @@ public static function getSubscribedEvents() {
* in addition to the $this->activate() method.
*/
public function init() {
$this->installer = new Installer( $this->io, $this->composer );
$this->installer = new Override_Installer( $this->io, $this->composer );
$this->composer->getInstallationManager()->addInstaller( $this->installer );
}

Expand Down

0 comments on commit 4c997d9

Please sign in to comment.