PHP Класс Knp\Bundle\KnpBundlesBundle\Git\RepoManager

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dir string Repositories base directory
$filesystem Symfony\Component\Filesystem\Filesystem
$gitExecutable string

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
cloneRepo ( string $repoUrl, string $targetDir ) : PHPGit_Repository
createGitRepo ( Bundle $bundle ) : PHPGit_Repository
getRepoDir ( Bundle $repo ) : string

Описание методов

__construct() публичный Метод

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

cloneRepo() защищенный Метод

protected cloneRepo ( string $repoUrl, string $targetDir ) : PHPGit_Repository
$repoUrl string
$targetDir string
Результат PHPGit_Repository

createGitRepo() защищенный Метод

protected createGitRepo ( Bundle $bundle ) : PHPGit_Repository
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат PHPGit_Repository

getDir() публичный Метод

Get dir
public getDir ( ) : string
Результат string

getRepo() публичный Метод

public getRepo ( Bundle $bundle ) : Repo
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат Repo

getRepoDir() защищенный Метод

protected getRepoDir ( Bundle $repo ) : string
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат string

hasRepo() публичный Метод

public hasRepo ( Bundle $repo ) : boolean
$repo Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат boolean

setDir() публичный Метод

Set dir
public setDir ( $dir ) : null
Результат null

Описание свойств

$dir защищенное свойство

Repositories base directory
protected string $dir
Результат string

$filesystem защищенное свойство

protected Filesystem,Symfony\Component\Filesystem $filesystem
Результат Symfony\Component\Filesystem\Filesystem

$gitExecutable защищенное свойство

protected string $gitExecutable
Результат string