class AssetsInstaller extends LibraryInstaller implements AssetsInstallerInterface

Methods

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

Initializes installer: creation of assets-dir directory if so

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}

IOInterface
getIo()

No description

string
getAppBasePath()

No description

string
getVendorDir()

No description

string
getAssetsDir()

No description

string
getAssetsVendorDir()

No description

string
getDocumentRoot()

No description

string
getAssetsDbFilename()

No description

string
getAssetsInstallPath(PackageInterface $package)

No description

array|null
parseComposerExtra(PackageInterface $package, string $package_dir)

Parse the composer.json "extra" block of a package and return its transformed data

static string
guessConfigurationEntry(PackageInterface $package, string $config_entry)

Search a configuration value in a package's config or the global config if so

static bool
isPackageContains(PackageInterface $package, string $type, string $package_extra = null)

Check if a package seems to contain some $type files

Details

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

Initializes installer: creation of assets-dir directory if so

{@inheritDoc}

Parameters

IOInterface $io
Composer $composer
$type

at line 96
supports($packageType)

{@inheritDoc}

Parameters

$packageType

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

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

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

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

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

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $initial
PackageInterface $target

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

{@inheritDoc}

Parameters

InstalledRepositoryInterface $repo
PackageInterface $package

at line 289
IOInterface getIo()

Return Value

IOInterface

at line 297
string getAppBasePath()

Return Value

string

at line 305
string getVendorDir()

Return Value

string

at line 314
string getAssetsDir()

Return Value

string

at line 322
string getAssetsVendorDir()

Return Value

string

at line 330
string getDocumentRoot()

Return Value

string

at line 338
string getAssetsDbFilename()

Return Value

string

at line 410
string getAssetsInstallPath(PackageInterface $package)

Parameters

PackageInterface $package

Return Value

string

at line 422
array|null parseComposerExtra(PackageInterface $package, string $package_dir)

Parse the composer.json "extra" block of a package and return its transformed data

Parameters

PackageInterface $package
string $package_dir The install directory of the package

Return Value

array|null

at line 473
static string guessConfigurationEntry(PackageInterface $package, string $config_entry)

Search a configuration value in a package's config or the global config if so

Parameters

PackageInterface $package
string $config_entry

Return Value

string

at line 491
static bool isPackageContains(PackageInterface $package, string $type, string $package_extra = null)

Check if a package seems to contain some $type files

If $package_extra is defined, this will test if concerned entry is defined in "extra" configuration of the package.

Parameters

PackageInterface $package
string $type
string $package_extra

Return Value

bool