Метод | Описание | |
---|---|---|
changed ( string $addition ) | Update changelog. | |
docs ( ) | Generate the Robo documentation files. | |
generateTask ( $className, $wrapperClassName = "" ) | Generate a new Robo task that wraps an existing utility class. | |
pharBuild ( ) | Build the Robo phar executable. | |
pharInstall ( ) | Install Robo phar. | |
pharPublish ( ) | Publish Robo phar. | |
publish ( ) | Publish Robo. | |
release ( $opts = ['beta' => false] ) | Release Robo. | |
sniff ( string $file = 'src/', $options = ['autofix' => false, 'strict' => false] ) | Code sniffer. | |
test ( array $args, $options = ['coverage-html' => false, 'coverage' => false] ) | Run the Robo unit tests. | |
versionBump ( string $version = '', $options = ['stage' => ''] ) | Update the version of Robo. |
Метод | Описание | |
---|---|---|
devDependenciesToRemoveFromPhar ( ) : array | The phar:build command removes the project requirements from the 'require-dev' section that are not in the 'suggest' section. | |
incrementVersion ( string $version, string $stage = '' ) : string | Advance to the next SemVer version. | |
writeVersion ( string $version ) | Write the specified version string back into the Robo.php file. |
protected devDependenciesToRemoveFromPhar ( ) : array | ||
Результат | array |
public generateTask ( $className, $wrapperClassName = "" ) | ||
$className | The name of the existing utility class to wrap. | |
$wrapperClassName | The name of the wrapper class to create. Optional. |
public pharInstall ( ) |
public pharPublish ( ) |
public versionBump ( string $version = '', $options = ['stage' => ''] ) | ||
$version | string | The new verison for Robo. Defaults to the next minor (bugfix) version after the current relelase. |
protected writeVersion ( string $version ) | ||
$version | string |