Class

eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler

class ScriptHandler extends ScriptHandler

Methods

static  clearCache(Event $event)

Clears the Symfony cache.

static  dumpAssets(Event $event)

Dump minified assets for prod environment under the web root directory.

static  dumpAssetsHelpText(Event $event)

Just dump help text on how to dump assets.

static  installWelcomeText(Event $event)

Just dump welcome text on how to install eZ Platform.

Details

at line 25
static public clearCache(Event $event)

Clears the Symfony cache.

Overloaded to clear project containers first before booting up Symfony container as part of clearCache() => cache:clear call. Since this will crash with RuntimeException if bundles have been removed or added when for instance moving between git branches and running composer install/update afterwards.

Parameters

Event $event

at line 44
static public dumpAssets(Event $event)

Dump minified assets for prod environment under the web root directory.

Parameters

Event $event Event A instance

at line 92
static public dumpAssetsHelpText(Event $event)

Just dump help text on how to dump assets.

Typically to use this instead on composer update as dump command uses prod environment where cache is not cleared, causing it to sometimes crash when cache needs to be cleared.

Parameters

Event $event Event A instance

at line 105
static public installWelcomeText(Event $event)

Just dump welcome text on how to install eZ Platform.

Parameters

Event $event Event A instance