PHP Class Knp\Bundle\KnpBundlesBundle\Git\RepoManager

Afficher le fichier Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Свойство Type Description
$dir string Repositories base directory
$filesystem Symfony\Component\Filesystem\Filesystem
$gitExecutable string

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

cloneRepo() protected méthode

protected cloneRepo ( string $repoUrl, string $targetDir ) : PHPGit_Repository
$repoUrl string
$targetDir string
Résultat PHPGit_Repository

createGitRepo() protected méthode

protected createGitRepo ( Bundle $bundle ) : PHPGit_Repository
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat PHPGit_Repository

getDir() public méthode

Get dir
public getDir ( ) : string
Résultat string

getRepo() public méthode

public getRepo ( Bundle $bundle ) : Repo
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat Repo

getRepoDir() protected méthode

protected getRepoDir ( Bundle $repo ) : string
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat string

hasRepo() public méthode

public hasRepo ( Bundle $repo ) : boolean
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat boolean

setDir() public méthode

Set dir
public setDir ( $dir ) : null
Résultat null

Property Details

$dir protected_oe property

Repositories base directory
protected string $dir
Résultat string

$filesystem protected_oe property

protected Filesystem,Symfony\Component\Filesystem $filesystem
Résultat Symfony\Component\Filesystem\Filesystem

$gitExecutable protected_oe property

protected string $gitExecutable
Résultat string