Installer.php
public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {
		parent::install($repo, $initial, $target);

		$strPackageName = $target->getName();
		if (self::startsWith($strPackageName, 'qcubed/plugin')) {
			$this->composerPluginInstall($target);
		}
		elseif (self::startsWith($strPackageName, 'qcubed/qcubed')) {
			// updating the framework
			$this->composerFrameworkUpdate($target);
		}

	}
public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {
		parent::install($repo, $initial, $target);

		$strPackageName = $target->getName();
		if (self::startsWith($strPackageName, 'qcubed/plugin')) {
			$this->composerPluginInstall($target);
		}
		elseif (self::startsWith($strPackageName, 'qcubed/qcubed')) {
			// updating the framework
			$this->composerFrameworkUpdate($target);
		}

	}
Respond to an update command.

@param InstalledRepositoryInterface $repo
@param PackageInterface $initial
@param PackageInterface $target