PHP Class Knp\Bundle\KnpBundlesBundle\Git\RepoManager

Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Property Type Description
$dir string Repositories base directory
$filesystem Symfony\Component\Filesystem\Filesystem
$gitExecutable string

Public Methods

Method Description
__construct ( Symfony\Component\Filesystem\Filesystem $filesystem, $dir, $gitExecutable )
getDir ( ) : string Get dir
getRepo ( Bundle $bundle ) : Repo
hasRepo ( Bundle $repo ) : boolean
setDir ( $dir ) : null Set dir

Protected Methods

Method Description
cloneRepo ( string $repoUrl, string $targetDir ) : PHPGit_Repository
createGitRepo ( Bundle $bundle ) : PHPGit_Repository
getRepoDir ( Bundle $repo ) : string

Method Details

__construct() public method

public __construct ( Symfony\Component\Filesystem\Filesystem $filesystem, $dir, $gitExecutable )
$filesystem Symfony\Component\Filesystem\Filesystem

cloneRepo() protected method

protected cloneRepo ( string $repoUrl, string $targetDir ) : PHPGit_Repository
$repoUrl string
$targetDir string
return PHPGit_Repository

createGitRepo() protected method

protected createGitRepo ( Bundle $bundle ) : PHPGit_Repository
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return PHPGit_Repository

getDir() public method

Get dir
public getDir ( ) : string
return string

getRepo() public method

public getRepo ( Bundle $bundle ) : Repo
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return Repo

getRepoDir() protected method

protected getRepoDir ( Bundle $repo ) : string
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return string

hasRepo() public method

public hasRepo ( Bundle $repo ) : boolean
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return boolean

setDir() public method

Set dir
public setDir ( $dir ) : null
return null

Property Details

$dir protected property

Repositories base directory
protected string $dir
return string

$filesystem protected property

protected Filesystem,Symfony\Component\Filesystem $filesystem
return Symfony\Component\Filesystem\Filesystem

$gitExecutable protected property

protected string $gitExecutable
return string