PHP Class Knp\Bundle\KnpBundlesBundle\Updater\Updater

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

Méthodes publiques

Méthode Description
__construct ( EntityManager $em, BundleManager $bundleManager, Knp\Bundle\KnpBundlesBundle\Finder\FinderInterface $finder, Repo $githubRepoApi )
addBundle ( string $fullName, boolean $updateRepo = true ) : boolean | Bundle Add or update a repo
cleanupBundlesActivities ( $limit = 30 )
createMissingBundles ( array $foundBundles )
removeDuplicatedActivities ( ) This method is a fix in case of other commands don't work as expected.
removeNonSymfonyBundles ( )
removeRepo ( Bundle $bundle ) : boolean
searchNewBundles ( )
setBundleUpdateProducer ( Knp\Bundle\KnpBundlesBundle\Producer\ProducerInterface $bundleUpdateProducer )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
updateBundleData ( $owner, $name )
updateBundlesData ( )
updateRepo ( Bundle $bundle )

Private Methods

Méthode Description
notifyInvalid ( string | false $bundle, null | string $reason = null )
paginateExistingBundles ( integer $page, integer $limit = 100 ) : Pagerfanta\Pagerfanta

Method Details

__construct() public méthode

public __construct ( EntityManager $em, BundleManager $bundleManager, Knp\Bundle\KnpBundlesBundle\Finder\FinderInterface $finder, Repo $githubRepoApi )
$em Doctrine\ORM\EntityManager
$bundleManager Knp\Bundle\KnpBundlesBundle\Manager\BundleManager
$finder Knp\Bundle\KnpBundlesBundle\Finder\FinderInterface
$githubRepoApi Knp\Bundle\KnpBundlesBundle\Github\Repo

addBundle() public méthode

Add or update a repo
public addBundle ( string $fullName, boolean $updateRepo = true ) : boolean | Bundle
$fullName string A full repo name like KnpLabs/KnpMenuBundle
$updateRepo boolean Whether or not to fetch information
Résultat boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

cleanupBundlesActivities() public méthode

public cleanupBundlesActivities ( $limit = 30 )

createMissingBundles() public méthode

public createMissingBundles ( array $foundBundles )
$foundBundles array

removeDuplicatedActivities() public méthode

This method is a fix in case of other commands don't work as expected.

removeNonSymfonyBundles() public méthode

removeRepo() public méthode

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

searchNewBundles() public méthode

public searchNewBundles ( )

setBundleUpdateProducer() public méthode

public setBundleUpdateProducer ( Knp\Bundle\KnpBundlesBundle\Producer\ProducerInterface $bundleUpdateProducer )
$bundleUpdateProducer Knp\Bundle\KnpBundlesBundle\Producer\ProducerInterface

setOutput() public méthode

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

updateBundleData() public méthode

public updateBundleData ( $owner, $name )

updateBundlesData() public méthode

public updateBundlesData ( )

updateRepo() public méthode

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