GitClient
in package
implements
GitClientInterface
Public facade to programmatically use git
Tags
Interfaces, Classes, Traits and Enums
- GitClientInterface
- Public facade interface to programmatically use git
Table of Contents
- $config : GitClientConfig
- $logger : LoggerInterface
- __construct() : mixed
- Constructor.
- cloneRemoteRepository() : mixed
- selectLocalRepository() : void
- Configure a local repository to use in further commands
Properties
$config
private
GitClientConfig
$config
$logger
private
LoggerInterface
$logger
= new NullLogger()
Methods
__construct()
Constructor.
public
__construct(GitClientConfig $config[, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
- $config : GitClientConfig
-
Settings for the client
- $logger : LoggerInterface = new NullLogger()
-
PSR-3 Logger, defaults to null logger
Return values
mixed —cloneRemoteRepository()
public
cloneRemoteRepository(string $remoteUri) : mixed
Parameters
- $remoteUri : string
Return values
mixed —selectLocalRepository()
Configure a local repository to use in further commands
public
selectLocalRepository(string $localRepository) : void
Parameters
- $localRepository : string