Composer API
Class

Composer\Repository\Vcs\VcsDriver

abstract class VcsDriver implements VcsDriverInterface

A driver implementation for driver with authentication interaction.

Methods

__construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)

Constructor.

array getComposerInformation(string $identifier)

Return the composer.json file information

bool hasComposerFile(string $identifier)

Return true if the repository has a composer file for a given identifier, false otherwise.

cleanup()

Performs any cleanup necessary as the driver is not longer needed

Details

at line 60
final public __construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)

Constructor.

Parameters

array $repoConfig The repository configuration
IOInterface $io The IO instance
Config $config The composer configuration
ProcessExecutor $process Process instance, injectable for mocking
RemoteFilesystem $remoteFilesystem Remote Filesystem, injectable for mocking

at line 89
public array getComposerInformation(string $identifier)

Return the composer.json file information

Parameters

string $identifier Any identifier to a specific branch/tag/commit

Return Value

array containing all infos from the composer.json file

at line 128
public bool hasComposerFile(string $identifier)

Return true if the repository has a composer file for a given identifier, false otherwise.

Parameters

string $identifier Any identifier to a specific branch/tag/commit

Return Value

bool Whether the repository has a composer file for a given identifier.

at line 171
public cleanup()

Performs any cleanup necessary as the driver is not longer needed