PHP 클래스 Knp\Bundle\KnpBundlesBundle\Github\Repo

파일 보기 프로젝트 열기: KnpLabs/KnpBundles 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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