메소드 | 설명 | |
---|---|---|
addPackage ( Composer\IO\IOInterface $io, string $packageName, string $packageVersion ) | Add a package | |
copyFile ( Composer\IO\IOInterface $io, string $projectRoot, string $source, string $target, boolean $force = false ) | Copy a file to its final destination in the skeleton. | |
install ( Composer\Script\Event $event ) | Install command: choose packages and provide configuration. | |
processAnswer ( Composer\IO\IOInterface $io, array $question, string | integer $answer, string $copyFilesKey ) : boolean | Process the answer of a question | |
removeDevDependencies ( ) | Cleanup development dependencies. | |
removeInstallerFromDefinition ( ) | Remove the installer from the composer definition | |
removeLinesContainingStrings ( array $entries, string $content ) : string | Remove lines from string content containing words in array. | |
requestMinimal ( Composer\IO\IOInterface $io ) : boolean | Ask if the user would like a minimal install. |
메소드 | 설명 | |
---|---|---|
askQuestion ( Composer\Composer $composer, Composer\IO\IOInterface $io, string $question, string $defaultOption ) : boolean | integer | string | Prepare and ask questions and return the answer | |
cleanUp ( Composer\IO\IOInterface $io, string $projectRoot ) | Clean up/remove installer classes and assets. | |
clearComposerLockFile ( Composer\IO\IOInterface $io, string $projectRoot ) | ||
recursiveRmdir ( string $directory ) | Recursively remove a directory. | |
removeDefaultMiddleware ( Composer\IO\IOInterface $io, string $projectRoot ) | If a minimal install was requested, remove the default middleware and assets. |
public static addPackage ( Composer\IO\IOInterface $io, string $packageName, string $packageVersion ) | ||
$io | Composer\IO\IOInterface | |
$packageName | string | |
$packageVersion | string |
public static install ( Composer\Script\Event $event ) | ||
$event | Composer\Script\Event |
public static removeDevDependencies ( ) |
public static removeInstallerFromDefinition ( ) |
public static requestMinimal ( Composer\IO\IOInterface $io ) : boolean | ||
$io | Composer\IO\IOInterface | |
리턴 | boolean |