Skip to content

Commit

Permalink
Merge pull request #10 from bluzphp/develop
Browse files Browse the repository at this point in the history
Hotfix vendor path
  • Loading branch information
Anton authored Sep 22, 2017
2 parents 3f6b850 + 16f5b14 commit 0091e9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Installers/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class Plugin implements PluginInterface, EventSubscriberInterface
*/
protected $installer;

/**
* @var string
*/
protected $vendorPath;

/**
* @var string
*/
Expand Down Expand Up @@ -72,6 +77,7 @@ public function __construct()
public function activate(Composer $composer, IOInterface $io)
{
$this->installer = new Installer($io, $composer);
$this->vendorPath = $composer->getConfig()->get('vendor-dir');
$composer->getInstallationManager()->addInstaller($this->installer);
}

Expand Down Expand Up @@ -205,7 +211,7 @@ protected function copyExtras($files)
{
foreach ($files as $source => $target) {
$this->copy(
dirname($this->installer->getVendorPath(), 2) . DS . $source,
$this->vendorPath . DS . $source,
PATH_ROOT . DS . $target
);
}
Expand Down

0 comments on commit 0091e9c

Please sign in to comment.