API Documentation

PostBuildTask extends BuildTask
in package

AbstractYes

Table of Contents

Properties

$exitCode  : int
$message  : string
$output  : OutputStyle|null
$timeStart  : float

Methods

createdSiteFile()  : static
Write a fluent message to the output that the task created the specified file.
getMessage()  : string
handle()  : void
printFinishMessage()  : void
printStartMessage()  : void
run()  : int
This method is called by the BuildTaskService. It will run the task using the handle method, as well as write output to the console, and handle any exceptions that may occur.
skip()  : void
Write a fluent message to the output that the task is skipping and halt the execution.
withExecutionTime()  : static
Write a fluent message to the output with the execution time of the task.
write()  : void
writeln()  : void
getExecutionTimeInMs()  : int|float
getExecutionTimeString()  : string
startClock()  : void
stopClock()  : float

Properties

$exitCode

protected int $exitCode = \Symfony\Component\Console\Command\Command::SUCCESS

$message

protected static string $message = 'Running generic build task'

The message that will be displayed when the task is run.

Methods

createdSiteFile()

Write a fluent message to the output that the task created the specified file.

public createdSiteFile(string $path) : static
Parameters
$path : string
Return values
static

getMessage()

public getMessage() : string
Return values
string

printFinishMessage()

public printFinishMessage() : void

printStartMessage()

public printStartMessage() : void

run()

This method is called by the BuildTaskService. It will run the task using the handle method, as well as write output to the console, and handle any exceptions that may occur.

public run([OutputStyle|null $output = null ]) : int
Parameters
$output : OutputStyle|null = null
Return values
int

The exit code of the task. This can be used when calling a task directly from a command.

skip()

Write a fluent message to the output that the task is skipping and halt the execution.

public skip([string $reason = 'Task was skipped' ]) : void
Parameters
$reason : string = 'Task was skipped'
Tags
throws
BuildTaskSkippedException

withExecutionTime()

Write a fluent message to the output with the execution time of the task.

public withExecutionTime() : static
Return values
static

write()

public write(string $message) : void
Parameters
$message : string

writeln()

public writeln(string $message) : void
Parameters
$message : string

getExecutionTimeInMs()

protected getExecutionTimeInMs() : int|float
Return values
int|float

getExecutionTimeString()

protected getExecutionTimeString() : string
Return values
string

        
On this page

Search results