Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into bitrix_bugfix
Browse files Browse the repository at this point in the history
Conflicts:
	src/Composer/Installers/BitrixInstaller.php
  • Loading branch information
niksamokhvalov committed Jun 13, 2015
2 parents c02bf99 + 9e5aafc commit c3604cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/Composer/Installers/BaseInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ abstract class BaseInstaller
* @param Composer $composer
* @param IOInterface $io
*/
public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io)
public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)
{
$this->composer = $composer;
$this->package = $package;

if (!is_null($this->package)) {
$this->io = $io;
}
$this->io = $io;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Installers/BitrixInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function checkDuplicates($templatePath, array $vars = array())
return;
}

if ($oldLocation !== $templatePath && file_exists($oldLocation)) {
if ($oldLocation !== $templatePath && file_exists($oldLocation) && $this->io && $this->io->isInteractive()) {

$this->io->writeError(' <error>Duplication of packages:</error>');
$this->io->writeError(' <info>Package ' . $oldLocation . ' will be called instead package ' . $templatePath . '</info>');
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Installers/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function getLocationPattern($frameworkType)
*
* @return IOInterface
*/
public function getIO()
private function getIO()
{
return $this->io;
}
Expand Down

0 comments on commit c3604cb

Please sign in to comment.