PHP Class Contao\CoreBundle\Composer\ScriptHandler

Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode Description
addDirectories ( Composer\Script\Event $event ) Adds the Contao directories.
generateRandomSecret ( Composer\Script\Event $event ) Sets the environment variable for the random secret.
generateSymlinks ( Composer\Script\Event $event ) Generates the symlinks.

Private Methods

Méthode Description
canGenerateSecret ( array $config ) : boolean Checks if there is at least one config file defined but none of the files exists.
executeCommand ( string $cmd, Composer\Script\Event $event ) Executes a command.
getBinDir ( Composer\Script\Event $event ) : string Returns the bin directory.
getVerbosityFlag ( Composer\Script\Event $event ) : string Returns the verbosity flag depending on the console IO verbosity.
getWebDir ( Composer\Script\Event $event ) : string Returns the web directory.
loadRandomCompat ( Composer\Script\Event $event ) Loads the random_compat library.

Method Details

addDirectories() public static méthode

Adds the Contao directories.
public static addDirectories ( Composer\Script\Event $event )
$event Composer\Script\Event

generateRandomSecret() public static méthode

Sets the environment variable for the random secret.
public static generateRandomSecret ( Composer\Script\Event $event )
$event Composer\Script\Event