function PostFileDownloadEvent::getContext
Returns the context of this download, if any.
If this download is of type package, the package object is returned. If this download is of type metadata, an array{response: Response, repository: RepositoryInterface} is returned.
Return value
mixed
1 call to PostFileDownloadEvent::getContext()
- PostFileDownloadEvent::getPackage in vendor/
composer/ composer/ src/ Composer/ Plugin/ PostFileDownloadEvent.php - Get the package.
File
-
vendor/
composer/ composer/ src/ Composer/ Plugin/ PostFileDownloadEvent.php, line 111
Class
- PostFileDownloadEvent
- The post file download event.
Namespace
Composer\PluginCode
public function getContext() {
return $this->context;
}