class InstallerScripts (View source)

Class for Composer install scripts

Methods

static void
postUpdateAndInstall(Event $event)

Make sure required paths and files are available outside of Package Run on every Composer install or update - must be configured in root manifest

static void
postPackageUpdateAndInstall(PackageEvent $event)

Calls actions and install scripts provided by installed packages.

static void
copyDistributionFiles(string $installerResourcesDirectory)

Copies any distribution files to their place if needed.

static void
runPackageScripts(string $staticMethodReference)

Calls a static method from it's string representation

Details

static void postUpdateAndInstall(Event $event)

Make sure required paths and files are available outside of Package Run on every Composer install or update - must be configured in root manifest

Parameters

Event $event

Return Value

void

Exceptions

InvalidConfigurationException
Exception
FilesException

static void postPackageUpdateAndInstall(PackageEvent $event)

Calls actions and install scripts provided by installed packages.

Parameters

PackageEvent $event

Return Value

void

Exceptions

InvalidConfigurationException
UnexpectedOperationException
FilesException

static protected void copyDistributionFiles(string $installerResourcesDirectory)

Copies any distribution files to their place if needed.

Parameters

string $installerResourcesDirectory

Path to the installer directory that contains the Distribution/Essentials and/or Distribution/Defaults directories.

Return Value

void

Exceptions

FilesException

static protected void runPackageScripts(string $staticMethodReference)

Calls a static method from it's string representation

Parameters

string $staticMethodReference

Return Value

void

Exceptions

InvalidConfigurationException