private function saveVendorDirPath(Composer $composer)
{
$magentoDir = $this->installer->getTargetDir();
$vendorDirPath = $this->filesystem->findShortestPath($magentoDir, realpath($composer->getConfig()->get('vendor-dir')), true);
$vendorPathFile = $magentoDir . '/app/etc/vendor_path.php';
$content = <<<AUTOLOAD
<?php
/**
* Path to Composer vendor directory
*/
return '{$vendorDirPath}';
AUTOLOAD;
file_put_contents($vendorPathFile, $content);
}