Skip to content

Commit f4380b5

Browse files
authored
Update Installer.php
1 parent 0a4d814 commit f4380b5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Installer.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,26 @@ public function supports($packageType)
3131
{
3232
return 'devbr-pack' === $packageType;
3333
}
34+
35+
36+
/**
37+
* {@inheritDoc}
38+
*/
39+
public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
40+
{
41+
$this->initializeVendorDir();
42+
$downloadPath = $this->getInstallPath($package);
43+
// remove the binaries if it appears the package files are missing
44+
if (!is_readable($downloadPath) && $repo->hasPackage($package)) {
45+
$this->binaryInstaller->removeBinaries($package);
46+
}
47+
$this->installCode($package);
48+
$this->binaryInstaller->installBinaries($package, $this->getInstallPath($package));
49+
if (!$repo->hasPackage($package)) {
50+
$repo->addPackage(clone $package);
51+
}
52+
53+
//ME Code ----
54+
if(file_exists($downloadPath.'/Config') && is_read...
55+
}
3456
}

0 commit comments

Comments
 (0)