|
@@ -35,6 +35,7 @@ use Composer\IO\IOInterface;
|
|
|
use Composer\Package\AliasPackage;
|
|
|
use Composer\Package\BasePackage;
|
|
|
use Composer\Package\CompletePackage;
|
|
|
+use Composer\Package\CompletePackageInterface;
|
|
|
use Composer\Package\Link;
|
|
|
use Composer\Package\Loader\ArrayLoader;
|
|
|
use Composer\Package\Dumper\ArrayDumper;
|
|
@@ -313,6 +314,24 @@ class Installer
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $fundingCount = 0;
|
|
|
+ foreach ($localRepo->getPackages() as $package) {
|
|
|
+ if ($package instanceof CompletePackageInterface && !empty($package->getFunding())) {
|
|
|
+ $fundingCount++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($fundingCount) {
|
|
|
+ $this->io->writeError(array(
|
|
|
+ sprintf(
|
|
|
+ "<info>%d package%s you are using %s looking for funding.</info>",
|
|
|
+ $fundingCount,
|
|
|
+ 1 === $fundingCount ? '' : 's',
|
|
|
+ 1 === $fundingCount ? 'is' : 'are'
|
|
|
+ ),
|
|
|
+ '<info>Use the composer fund command to find out more!</info>',
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
if ($this->runScripts) {
|
|
|
// dispatch post event
|
|
|
$eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
|