ModuleInstall/PackageManager/PackageManagerDownloader.php
Constants
\PackageManagerDownloader
Package:
Methods

download(
\session_id $session_id, \file_name $file_name, \save_dir $save_dir
=
'', \download_sever $download_server
=
''
)
:
\theUsing curl we will download the file from the depot server
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $session_id | \session_id | the session_id this file is queued for |
| $file_name | \file_name | the file_name to download |
| $save_dir | \save_dir | (optional) if specified it will direct where to save the file once downloaded |
| $download_server | \download_sever | (optional) if specified it will direct the url for the download |
| Type | Description |
|---|---|
| \the | full path of the saved file |