PHP Class eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler

Inheritance: extends Sensio\Bundle\DistributionBundle\Composer\ScriptHandler
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
clearCache ( Composer\Script\Event $event ) Clears the Symfony cache.
dumpAssets ( Composer\Script\Event $event ) Dump minified assets for prod environment under the web root directory.
dumpAssetsHelpText ( Composer\Script\Event $event ) Just dump help text on how to dump assets.
installWelcomeText ( Composer\Script\Event $event ) Just dump welcome text on how to install eZ Platform.

Method Details

clearCache() public static method

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.
public static clearCache ( Composer\Script\Event $event )
$event Composer\Script\Event

dumpAssets() public static method

Dump minified assets for prod environment under the web root directory.
public static dumpAssets ( Composer\Script\Event $event )
$event Composer\Script\Event Event A instance

dumpAssetsHelpText() public static method

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.
Deprecation: Will be made private in the future for use by dumpAssets.
public static dumpAssetsHelpText ( Composer\Script\Event $event )
$event Composer\Script\Event Event A instance

installWelcomeText() public static method

Just dump welcome text on how to install eZ Platform.
public static installWelcomeText ( Composer\Script\Event $event )
$event Composer\Script\Event Event A instance