Composer API
Class

Composer\Repository\RepositoryFactory

class RepositoryFactory

Methods

static array|mixed configFromString(IOInterface $io, Config $config, string $repository, bool $allowFilesystem = false)

static RepositoryInterface fromString(IOInterface $io, Config $config, string $repository, bool $allowFilesystem = false)

static RepositoryInterface createRepo(IOInterface $io, Config $config, array $repoConfig)

static RepositoryInterface[] defaultRepos(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)

static RepositoryManager manager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)

Details

at line 34
static public array|mixed configFromString(IOInterface $io, Config $config, string $repository, bool $allowFilesystem = false)

Parameters

IOInterface $io
Config $config
string $repository
bool $allowFilesystem

Return Value

array|mixed

at line 65
static public RepositoryInterface fromString(IOInterface $io, Config $config, string $repository, bool $allowFilesystem = false)

Parameters

IOInterface $io
Config $config
string $repository
bool $allowFilesystem

Return Value

RepositoryInterface

at line 78
static public RepositoryInterface createRepo(IOInterface $io, Config $config, array $repoConfig)

Parameters

IOInterface $io
Config $config
array $repoConfig

Return Value

RepositoryInterface

at line 92
static public RepositoryInterface[] defaultRepos(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)

Parameters

IOInterface $io
Config $config
RepositoryManager $rm

Return Value

RepositoryInterface[]

at line 114
static public RepositoryManager manager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)

Parameters

IOInterface $io
Config $config
EventDispatcher $eventDispatcher
RemoteFilesystem $rfs

Return Value

RepositoryManager