PHP 클래스 Knp\Bundle\KnpBundlesBundle\Updater\Updater

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

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
notifyInvalid ( string | false $bundle, null | string $reason = null )
paginateExistingBundles ( integer $page, integer $limit = 100 ) : Pagerfanta\Pagerfanta

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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
리턴 boolean | Knp\Bundle\KnpBundlesBundle\Entity\Bundle

cleanupBundlesActivities() 공개 메소드

public cleanupBundlesActivities ( $limit = 30 )

createMissingBundles() 공개 메소드

public createMissingBundles ( array $foundBundles )
$foundBundles array

removeDuplicatedActivities() 공개 메소드

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

removeNonSymfonyBundles() 공개 메소드

removeRepo() 공개 메소드

public removeRepo ( Bundle $bundle ) : boolean
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
리턴 boolean

searchNewBundles() 공개 메소드

public searchNewBundles ( )

setBundleUpdateProducer() 공개 메소드

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

setOutput() 공개 메소드

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

updateBundleData() 공개 메소드

public updateBundleData ( $owner, $name )

updateBundlesData() 공개 메소드

public updateBundlesData ( )

updateRepo() 공개 메소드

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