PHP Class PhilippBaschke\ACFProInstaller\RemoteFilesystem

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

Protected Properties

Свойство Type Description
$acfFileUrl string The file url that should be used instead of the given file url in copy

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat boolean true

Property Details

$acfFileUrl protected_oe property

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