PHP Class Knp\Bundle\KnpBundlesBundle\Github\Repo

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

Méthodes publiques

Свойство Type Description
$canonicalConfiguration string

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

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

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

getCanonicalConfiguration() public méthode

getContributorNames() public méthode

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

getGithubClient() public méthode

Get github
public getGithubClient ( ) : Github\Client
Résultat Github\Client

getOutput() public méthode

Get output
public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface
Résultat Symfony\Component\Console\Output\OutputInterface

outputArray() public static méthode

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

outputLine() public static méthode

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

outputNode() public static méthode

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

setCanonicalConfiguration() public méthode

public setCanonicalConfiguration ( $canonicalConfiguration )

setGithubClient() public méthode

Set github
public setGithubClient ( $github )

setOutput() public méthode

Set output
public setOutput ( $output )
$output OutputInterface

update() public méthode

public update ( Bundle $bundle ) : boolean | Bundle
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

updateCanonicalConfigFile() public méthode

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

updateCommits() public méthode

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

updateFiles() public méthode

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

updateInfos() public méthode

Return true if the Repo exists on GitHub, false otherwise
public updateInfos ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat boolean whether the Repo exists on GitHub

updateVersionsHistory() public méthode

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

validate() public méthode

public validate ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
Résultat boolean

Property Details

$canonicalConfiguration public_oe static_oe property

public static string $canonicalConfiguration
Résultat string