class ScriptHandler

A manager for composer events

Methods

static 
showChangelog(Event $event)

Shows what changed since the last update

static 
clearCache(Event $event, $env = null)

Clears the Symfony cache.

static 
clearAllCaches(Event $event)

Clear the cache for all environments

static 
initializeChangelog(Event $event)

Initialize the last update file so that when the user updates and asks for the changelog, the entries added before the installation are not shown

static 
buildConfig(Event $event)

Migrate the config.yml file

static 
migrateDatabase(Event $event = null, $testing = false)

No description

static 
showSuccessMessage(Event $event)

Shows an installation success message

static array|null
getDatabaseConfig(bool $testing = false)

Get the database's configuration

Details

at line line 34
static showChangelog(Event $event)

Shows what changed since the last update

Parameters

Event $event Event Composer's event

at line line 51
static clearCache(Event $event, $env = null)

Clears the Symfony cache.

This command won't fail if the current cache prevents the kernel from booting

Parameters

Event $event Event Composer's event
$env string|null The environment to clear the cache for, 'all' to clear the cache for all environments, null to pick an environment based on command line arguments (defaults to 'all')

at line line 106
static clearAllCaches(Event $event)

Clear the cache for all environments

Parameters

Event $event Event Composer's event

at line line 117
static initializeChangelog(Event $event)

Initialize the last update file so that when the user updates and asks for the changelog, the entries added before the installation are not shown

Parameters

Event $event Event Composer's event

at line line 127
static buildConfig(Event $event)

Migrate the config.yml file

Parameters

Event $event Event Composer's event

at line line 139
static migrateDatabase(Event $event = null, $testing = false)

Parameters

Event $event
$testing

at line line 183
static showSuccessMessage(Event $event)

Shows an installation success message

Parameters

Event $event Event Composer's event

at line line 275
static array|null getDatabaseConfig(bool $testing = false)

Get the database's configuration

Parameters

bool $testing Whether to retrieve the test database credentials

Return Value

array|null The configuration as defined in the config.yml file, null if no configuration was found