class KalimahApps / Daleel / Commands / BuildDoc

BuildDoc

Handle command and related options.

Extends

    Symfony\...\Command

Properties

private

$input Symfony\...\InputInterface

Input interface.

Default: null
private

$console ConsoleStyle

Input output interface.

Default: null

Methods

protected

configure ( ) : void

Configure the command options.

protected

execute ( Symfony\...\InputInterface $input , Symfony\...\OutputInterface $output ) : int

Execute the command.

Parameters

  • $input Symfony\...\InputInterface
    Input interface.
  • $output Symfony\...\OutputInterface
    Output interface.
private

processErrors ( array $errors ) : void

Handle errors.

Parameters

  • $errors array
    Array of errors.
private

hasPath ( string $path ) : bool

Check if path is set in config.

Parameters

  • $path string
    Path to check
private

deleteFolder ( string $target_path , string $title ) : void

Delete build folder if it exists.

Parameters

  • $target_path string
    Path to delete.
  • $title string
    Title to display to console.
private

timeElapsed ( float $start_time ) : string

Get time elapsed since start time.

Parameters

  • $start_time float
    Start time.