Свойство | Тип | Описание | |
---|---|---|---|
$folders | array | Default folders we install. |
Метод | Описание | |
---|---|---|
postInstall ( Composer\Script\CommandEvent $event ) : boolean | null | Installer process for project based on post install event hook on composer. |
Метод | Описание | |
---|---|---|
askAlternatePath ( string $menu ) | ||
getFolders ( ) : array | Getter for folders. | |
handleEvent ( Composer\Script\CommandEvent $event ) : boolean | null | Handles a received event - dispatcher. | |
install ( string $targetDirectory ) : boolean | Installs the folders required for the bootstrap project from repo to project folder. | |
resolveChoice ( string $menu, $choices = 'yn', $default = 'y' ) | ||
resolveTree ( $menu, $default = 'quit', $text = 'Your choice:' ) | ||
setFolders ( array $folders = [] ) : void | Setter for folders. | |
showError ( string $message ) | ||
showFailed ( ) : void | Shows the failed message after install failed. | |
showOutro ( $projectRoot = 'n.a.' ) : void | Shows the outro message after install succeeded to inform about management console. | |
showSuccess ( ) : boolean | Shows the success message after install was successful. | |
validatePath ( string $path ) : string | Validates a path for installation. |
protected static askAlternatePath ( string $menu ) | ||
$menu | string |
protected static getFolders ( ) : array | ||
Результат | array | The folders. |
protected static handleEvent ( Composer\Script\CommandEvent $event ) : boolean | null | ||
$event | Composer\Script\CommandEvent | |
Результат | boolean | null | TRUE on success, otherwise FALSE |
public static postInstall ( Composer\Script\CommandEvent $event ) : boolean | null | ||
$event | Composer\Script\CommandEvent | The event passed in by Composer. |
Результат | boolean | null | TRUE on success, otherwise FALSE (signal for Composer to resolve with error) |
protected static resolveChoice ( string $menu, $choices = 'yn', $default = 'y' ) | ||
$menu | string |
protected static resolveTree ( $menu, $default = 'quit', $text = 'Your choice:' ) |
protected static setFolders ( array $folders = [] ) : void | ||
$folders | array | The folders to set. |
Результат | void |
protected static showFailed ( ) : void | ||
Результат | void |
protected static showSuccess ( ) : boolean | ||
Результат | boolean |
protected static validatePath ( string $path ) : string | ||
$path | string | The path to validate |
Результат | string | TRUE if path is valid, otherwise FALSE |
protected static array $folders | ||
Результат | array |