PHP Класс Knp\Bundle\KnpBundlesBundle\Github\Repo

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

Открытые свойства

Свойство Тип Описание
$canonicalConfiguration string

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

Метод Описание
__construct ( Github\Client $github, Symfony\Component\Console\Output\OutputInterface $output, RepoManager $gitRepoManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, OwnerManager $ownerManager )
fetchComposerKeywords ( Bundle $bundle )
getCanonicalConfiguration ( )
getContributorNames ( Bundle $bundle )
getGithubClient ( ) : Github\Client Get github
getOutput ( ) : Symfony\Component\Console\Output\OutputInterface Get output
outputArray ( array $array, $depth )
outputLine ( string $text, integer $indent ) Outputs a single config reference line
outputNode ( Symfony\Component\Config\Definition\NodeInterface $node, integer $depth )
setCanonicalConfiguration ( $canonicalConfiguration )
setGithubClient ( $github ) Set github
setOutput ( $output ) Set output
update ( Bundle $bundle ) : boolean | Bundle
updateCanonicalConfigFile ( Bundle $bundle )
updateCommits ( Bundle $bundle )
updateFiles ( Bundle $bundle, array $onlyFiles = null )
updateInfos ( Bundle $bundle ) : boolean Return true if the Repo exists on GitHub, false otherwise
updateVersionsHistory ( Bundle $bundle )
validate ( Bundle $bundle ) : boolean

Приватные методы

Метод Описание
containValidSymfonyReference ( $fileContent )
decodeFileContent ( $file, $json = false )
tryToValidateWithComposerFile ( Bundle $bundle, Github\Api\Repository\Contents $contentApi )
tryToValidateWithFiles ( Bundle $bundle, Github\Api\GitData\Trees $treeApi, Github\Api\Repository\Contents $contentApi )
updateComposerFile ( string $composer, Bundle $bundle )

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

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

public __construct ( Github\Client $github, Symfony\Component\Console\Output\OutputInterface $output, RepoManager $gitRepoManager, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, OwnerManager $ownerManager )
$github Github\Client
$output Symfony\Component\Console\Output\OutputInterface
$gitRepoManager Knp\Bundle\KnpBundlesBundle\Git\RepoManager
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$ownerManager Knp\Bundle\KnpBundlesBundle\Manager\OwnerManager

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

public fetchComposerKeywords ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

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

public getContributorNames ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

Get github
public getGithubClient ( ) : Github\Client
Результат Github\Client

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

Get output
public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface
Результат Symfony\Component\Console\Output\OutputInterface

outputArray() публичный статический Метод

public static outputArray ( array $array, $depth )
$array array

outputLine() публичный статический Метод

Outputs a single config reference line
public static outputLine ( string $text, integer $indent )
$text string
$indent integer

outputNode() публичный статический Метод

public static outputNode ( Symfony\Component\Config\Definition\NodeInterface $node, integer $depth )
$node Symfony\Component\Config\Definition\NodeInterface
$depth integer

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

public setCanonicalConfiguration ( $canonicalConfiguration )

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

Set github
public setGithubClient ( $github )

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

Set output
public setOutput ( $output )
$output OutputInterface

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

public update ( Bundle $bundle ) : boolean | Bundle
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

public updateCanonicalConfigFile ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

public updateCommits ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

public updateFiles ( Bundle $bundle, array $onlyFiles = null )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$onlyFiles array

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

Return true if the Repo exists on GitHub, false otherwise
public updateInfos ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Результат boolean whether the Repo exists on GitHub

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

public updateVersionsHistory ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

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

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

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

$canonicalConfiguration публичное статическое свойство

public static string $canonicalConfiguration
Результат string