class Dispatch implements InstallerInterface

Methods

__construct(IOInterface $io, Composer $composer, $type = 'library')

Initializes installer: creation of all required objects and validating them

getComposer()

No description

getIo()

No description

static bool
validateConfig(string $config_class)

Validating the configuration class to use

static bool
validateInstaller(string $installer_class)

Validating the installer class to use

static bool
validateAutoloadGenerator(string $generator_class)

Validating the autoload generator class to use

supports($packageType)

{@inheritDoc}

isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

install(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)

{@inheritDoc}

uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

getInstallPath(PackageInterface $package)

{@inheritDoc}

static void
setRegistry(array $assets_db, AssetsInstallerInterface $installer = null)

Set the current assets database

static array
getRegistry(AssetsInstallerInterface $installer = null)

Get the current assets database

static void
setGenerator(callable $callable)

Set the generator called at object destruction

static object
getGenerator()

Get the generator called at object destruction

static void
registerPackage(PackageInterface $package, string $target, AssetsInstallerInterface $installer = null)

Add a new installed package in the Assets database

static void
unregisterPackage(PackageInterface $package, AssetsInstallerInterface $installer = null)

Remove an uninstalled package from the Assets database

Details

at line 72
__construct(IOInterface $io, Composer $composer, $type = 'library')

Initializes installer: creation of all required objects and validating them

{@inheritDoc}

Parameters

IOInterface $io
Composer $composer
$type

at line 170
getComposer()

at line 175
getIo()

at line 190
static bool validateConfig(string $config_class)

Validating the configuration class to use

Parameters

string $config_class

Return Value

bool

at line 201
static bool validateInstaller(string $installer_class)

Validating the installer class to use

Parameters

string $installer_class

Return Value

bool

at line 217
static bool validateAutoloadGenerator(string $generator_class)

Validating the autoload generator class to use

Parameters

string $generator_class

Return Value

bool

at line 234
supports($packageType)

{@inheritDoc}

Parameters

$packageType

at line 242
isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

at line 250
install(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

at line 258
update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $initial
PackageInterface $target

at line 266
uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

at line 274
getInstallPath(PackageInterface $package)

{@inheritDoc}

Parameters

PackageInterface $package

at line 290
static void setRegistry(array $assets_db, AssetsInstallerInterface $installer = null)

Set the current assets database

Parameters

array $assets_db
AssetsInstallerInterface $installer

Return Value

void

at line 301
static array getRegistry(AssetsInstallerInterface $installer = null)

Get the current assets database

Parameters

AssetsInstallerInterface $installer

Return Value

array

at line 312
static void setGenerator(callable $callable)

Set the generator called at object destruction

Parameters

callable $callable

Return Value

void

at line 322
static object getGenerator()

Get the generator called at object destruction

Return Value

object

at line 335
static void registerPackage(PackageInterface $package, string $target, AssetsInstallerInterface $installer = null)

Add a new installed package in the Assets database

Parameters

PackageInterface $package
string $target
AssetsInstallerInterface $installer

Return Value

void

at line 347
static void unregisterPackage(PackageInterface $package, AssetsInstallerInterface $installer = null)

Remove an uninstalled package from the Assets database

Parameters

PackageInterface $package
AssetsInstallerInterface $installer

Return Value

void