PHP Class Knp\Bundle\KnpBundlesBundle\Github\Repo

Exibir arquivo Open project: KnpLabs/KnpBundles Class Usage Examples

Public Properties

Property Type Description
$canonicalConfiguration string

Public Methods

Method 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

Method 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 method

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 method

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

getCanonicalConfiguration() public method

getContributorNames() public method

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

getGithubClient() public method

Get github
public getGithubClient ( ) : Github\Client
return Github\Client

getOutput() public method

Get output
public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface
return Symfony\Component\Console\Output\OutputInterface

outputArray() public static method

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

outputLine() public static method

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

outputNode() public static method

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

setCanonicalConfiguration() public method

public setCanonicalConfiguration ( $canonicalConfiguration )

setGithubClient() public method

Set github
public setGithubClient ( $github )

setOutput() public method

Set output
public setOutput ( $output )
$output OutputInterface

update() public method

public update ( Bundle $bundle ) : boolean | Bundle
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

updateCanonicalConfigFile() public method

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

updateCommits() public method

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

updateFiles() public method

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

updateInfos() public method

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

updateVersionsHistory() public method

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

validate() public method

public validate ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
return boolean

Property Details

$canonicalConfiguration public_oe static_oe property

public static string $canonicalConfiguration
return string