abstract class AbstractDriver implements InstallerDriverInterface (View source)

Properties

protected Composer $composer
protected IOInterface $io
protected Configuration $configuration
protected InstallerParameters $parameters
protected InstallerPersistenceInterface $persistence

Methods

__construct(Composer $composer, IOInterface $io, Configuration $configuration, InstallerParameters $parameters, InstallerPersistenceInterface $persistence)

Driver constructor, just to ensure all pieces are in the right place

Composer
getComposer()

No description

IOInterface
getIo()

No description

Configuration
getConfiguration()

No description

void
install(string $package_name, string $package_path, array $package_extra)

Install a package, processing all extra fields that it contains.

void
update(string $package_name, string $package_path, array $initial_extra, array $target_extra)

Update a package checking differences from it's initial and target extra fields.

void
uninstall(string $package_name, string $package_path, array $package_extra)

Uninstall package, removing all related extra fields.

Details

__construct(Composer $composer, IOInterface $io, Configuration $configuration, InstallerParameters $parameters, InstallerPersistenceInterface $persistence)

Driver constructor, just to ensure all pieces are in the right place

Parameters

Composer $composer
IOInterface $io
Configuration $configuration
InstallerParameters $parameters
InstallerPersistenceInterface $persistence

Composer getComposer()

Return Value

Composer

IOInterface getIo()

Return Value

IOInterface

Configuration getConfiguration()

Return Value

Configuration

InstallerParameters getParameters()

Return Value

InstallerParameters

abstract void install(string $package_name, string $package_path, array $package_extra)

Install a package, processing all extra fields that it contains.

Parameters

string $package_name
string $package_path
array $package_extra

Return Value

void

abstract void update(string $package_name, string $package_path, array $initial_extra, array $target_extra)

Update a package checking differences from it's initial and target extra fields.

Parameters

string $package_name
string $package_path
array $initial_extra
array $target_extra

Return Value

void

abstract void uninstall(string $package_name, string $package_path, array $package_extra)

Uninstall package, removing all related extra fields.

Parameters

string $package_name
string $package_path
array $package_extra

Return Value

void