PHP 클래스 Gush\Factory\AdapterFactory

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

공개 메소드들

메소드 설명
all ( ) : array[] Returns registered adapters.
allOfType ( string $type ) : array[] Returns all registered adapters of a specific type.
createConfigurator ( string $name, Symfony\Component\Console\Helper\HelperSet $helperSet, Config $globalConfig ) : Gush\Adapter\Configurator Creates a new Configurator instance for the given adapter.
createIssueTracker ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\IssueTracker Creates a new IssueTracker (IssueTracker object) with the given configuration.
createRepositoryManager ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\Adapter Creates a new RepositoryManager (Adapter object) with the given configuration.
get ( string $name ) : array[] Returns the requested adapter-factory configuration.
has ( string $name ) : boolean Returns whether adapter by name is registered.
register ( string $name, string $label, object | string $adapterFactory )
supports ( string $name, string $supports ) : boolean Returns whether the adapter by name supports the requirements.

비공개 메소드들

메소드 설명
getFactoryObject ( string $name ) : Gush\Factory\IssueTrackerFactory | Gush\Factory\RepositoryManagerFactory
guardFactoryClassImplementation ( $adapterFactory, $label )

메소드 상세

all() 공개 메소드

Returns registered adapters.
public all ( ) : array[]
리턴 array[]

allOfType() 공개 메소드

Returns all registered adapters of a specific type.
public allOfType ( string $type ) : array[]
$type string AdapterFactory::SUPPORT_REPOSITORY_MANAGER or AdapterFactorySUPPORT_ISSUE_TRACKER
리턴 array[]

createConfigurator() 공개 메소드

Creates a new Configurator instance for the given adapter.
public createConfigurator ( string $name, Symfony\Component\Console\Helper\HelperSet $helperSet, Config $globalConfig ) : Gush\Adapter\Configurator
$name string Name of the adapter (must be registered)
$helperSet Symfony\Component\Console\Helper\HelperSet HelperSet object
$globalConfig Gush\Config
리턴 Gush\Adapter\Configurator

createIssueTracker() 공개 메소드

Creates a new IssueTracker (IssueTracker object) with the given configuration.
public createIssueTracker ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\IssueTracker
$name string
$adapterConfig array
$globalConfig Gush\Config
리턴 Gush\Adapter\IssueTracker

createRepositoryManager() 공개 메소드

Creates a new RepositoryManager (Adapter object) with the given configuration.
public createRepositoryManager ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\Adapter
$name string
$adapterConfig array
$globalConfig Gush\Config
리턴 Gush\Adapter\Adapter

get() 공개 메소드

Returns the requested adapter-factory configuration.
public get ( string $name ) : array[]
$name string
리턴 array[]

has() 공개 메소드

Returns whether adapter by name is registered.
public has ( string $name ) : boolean
$name string
리턴 boolean

register() 공개 메소드

public register ( string $name, string $label, object | string $adapterFactory )
$name string
$label string
$adapterFactory object | string

supports() 공개 메소드

Returns whether the adapter by name supports the requirements.
public supports ( string $name, string $supports ) : boolean
$name string
$supports string
리턴 boolean