$io
$io :
__construct(\Composer\IO\IOInterface $io, \Composer\Config $config = null, array $options = array(), boolean $disableTls = false)
Constructor.
\Composer\IO\IOInterface | $io | The IO instance |
\Composer\Config | $config | The config |
array | $options | The options |
boolean | $disableTls |
copy(string $originUrl, string $fileUrl, string $fileName, boolean $progress = true, array $options = array()) : boolean
Copy the remote file in local.
string | $originUrl | The origin URL |
string | $fileUrl | The file URL |
string | $fileName | the local filename |
boolean | $progress | Display the progression |
array | $options | Additional context options |
true
getContents(string $originUrl, string $fileUrl, boolean $progress = true, array $options = array()) : boolean|string
Get the content.
string | $originUrl | The origin URL |
string | $fileUrl | The file URL |
boolean | $progress | Display the progression |
array | $options | Additional context options |
The content
get(string $originUrl, string $fileUrl, array $additionalOptions = array(), string $fileName = null, boolean $progress = true) : boolean|string
Get file content or copy action.
string | $originUrl | The origin URL |
string | $fileUrl | The file URL |
array | $additionalOptions | context options |
string | $fileName | the local filename |
boolean | $progress | Display the progression |
When the file could not be downloaded
getRemoteContents(string $originUrl, string $fileUrl, resource $context, array $responseHeaders = null) : string|false
Get contents of remote URL.
string | $originUrl | The origin URL |
string | $fileUrl | The file URL |
resource | $context | The stream context |
array | $responseHeaders |
The response contents or false on failure
callbackGet(integer $notificationCode, integer $severity, string $message, integer $messageCode, integer $bytesTransferred, integer $bytesMax)
Get notification action.
integer | $notificationCode | The notification code |
integer | $severity | The severity level |
string | $message | The message |
integer | $messageCode | The message code |
integer | $bytesTransferred | The loaded size |
integer | $bytesMax | The total size |