PHP Class PhilippBaschke\ACFProInstaller\RemoteFilesystem

Makes it possible to copy files from a modified file url
Inheritance: extends Composer\Util\RemoteFilesystem
Show file Open project: philippbaschke/acf-pro-installer Class Usage Examples

Protected Properties

Property Type Description
$acfFileUrl string The file url that should be used instead of the given file url in copy

Public Methods

Method Description
__construct ( string $acfFileUrl, Composer\IO\IOInterface $io, Composer\Config $config = null, array $options = [], boolean $disableTls = false ) Constructor
copy ( string $originUrl, string $fileUrl, string $fileName, boolean $progress = true, array $options = [] ) : boolean Copy the remote file in local

Method Details

__construct() public method

Constructor
public __construct ( string $acfFileUrl, Composer\IO\IOInterface $io, Composer\Config $config = null, array $options = [], boolean $disableTls = false )
$acfFileUrl string The url that should be used instead of fileurl
$io Composer\IO\IOInterface The IO instance
$config Composer\Config The config
$options array The options
$disableTls boolean

copy() public method

Use $acfFileUrl instead of the provided $fileUrl
public copy ( string $originUrl, string $fileUrl, string $fileName, boolean $progress = true, array $options = [] ) : boolean
$originUrl string The origin URL
$fileUrl string The file URL (ignored)
$fileName string the local filename
$progress boolean Display the progression
$options array Additional context options
return boolean true

Property Details

$acfFileUrl protected property

The file url that should be used instead of the given file url in copy
protected string $acfFileUrl
return string