PHP Class Spatie\Tail\TailCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: spatie/laravel-tail

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
__construct ( ) Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
executeCommand ( string $command ) Execute the given command.
findNewestLocalLogfile ( ) : null | string Get the path to the latest local Laravel log file.
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
guardAgainstInvalidConnectionParameters ( $connectionParameters ) Guard againt invalid connectionParameters.
tailRemoteLogFile ( string $connection ) Tail the latest remote log file for the given connection.

Private Methods

Method Description
tailLocalLogFile ( ) : null | string Tail the latest local log file.

Method Details

__construct() public method

Create a new command instance.
public __construct ( )

executeCommand() protected method

Execute the given command.
protected executeCommand ( string $command )
$command string

findNewestLocalLogfile() protected method

Get the path to the latest local Laravel log file.
protected findNewestLocalLogfile ( ) : null | string
return null | string

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

guardAgainstInvalidConnectionParameters() protected method

Guard againt invalid connectionParameters.
protected guardAgainstInvalidConnectionParameters ( $connectionParameters )
$connectionParameters

tailRemoteLogFile() protected method

Tail the latest remote log file for the given connection.
protected tailRemoteLogFile ( string $connection )
$connection string

Property Details

$description protected property

The console command description.
protected string $description
return string

$name protected property

The console command name.
protected string $name
return string