Dispatch
class Dispatch implements InstallerInterface
Methods
Initializes installer: creation of all required objects and validating them
No description
No description
Validating the configuration class to use
Validating the installer class to use
Validating the autoload generator class to use
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Set the current assets database
Set the generator called at object destruction
Get the generator called at object destruction
Add a new installed package in the Assets database
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}
at line 170
getComposer()
at line 175
getIo()
at line 190
static bool
validateConfig(string $config_class)
Validating the configuration class to use
at line 201
static bool
validateInstaller(string $installer_class)
Validating the installer class to use
at line 217
static bool
validateAutoloadGenerator(string $generator_class)
Validating the autoload generator class to use
at line 234
supports($packageType)
{@inheritDoc}
at line 242
isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
{@inheritDoc}
at line 250
install(InstalledRepositoryInterface $repo, PackageInterface $package)
{@inheritDoc}
at line 258
update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
{@inheritDoc}
at line 266
uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
{@inheritDoc}
at line 274
getInstallPath(PackageInterface $package)
{@inheritDoc}
at line 290
static void
setRegistry(array $assets_db, AssetsInstallerInterface $installer = null)
Set the current assets database
at line 301
static array
getRegistry(AssetsInstallerInterface $installer = null)
Get the current assets database
at line 312
static void
setGenerator(callable $callable)
Set the generator called at object destruction
at line 322
static object
getGenerator()
Get the generator called at object destruction
at line 335
static void
registerPackage(PackageInterface $package, string $target, AssetsInstallerInterface $installer = null)
Add a new installed package in the Assets database
at line 347
static void
unregisterPackage(PackageInterface $package, AssetsInstallerInterface $installer = null)
Remove an uninstalled package from the Assets database