ArangoCommand extends Kernel uses ArangoActions
The command to manage an ArangoDB database.
Table of Contents
Constants
- NAME : string = 'command:arangodb'
- The default name of the command.
Methods
- __construct() : mixed
- Creates a new ArangoDBCommand.
- __destruct() : mixed
- The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.
- getSubscribedSignals() : array<string|int, mixed>
- Returns the list of signals to subscribe.
- handleSignal() : int|false
- The method will be called when the application is signaled.
- cleanup() : void
- Cleanup the command when is finished.
- configure() : void
- Configures the current command.
- execute() : int
- Executes the current command.
Constants
NAME
The default name of the command.
public
string
NAME
= 'command:arangodb'
Methods
__construct()
Creates a new ArangoDBCommand.
public
__construct(string|null $name[, Container|null $container = null ][, array<string|int, mixed> $init = [] ]) : mixed
Parameters
- $name : string|null
- $container : Container|null = null
- $init : array<string|int, mixed> = []
Tags
__destruct()
The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.
public
__destruct() : mixed
Tags
getSubscribedSignals()
Returns the list of signals to subscribe.
public
getSubscribedSignals() : array<string|int, mixed>
Return values
array<string|int, mixed>handleSignal()
The method will be called when the application is signaled.
public
handleSignal(int $signal[, int|false $previousExitCode = 0 ]) : int|false
Parameters
- $signal : int
- $previousExitCode : int|false = 0
Tags
Return values
int|false —The exit code to return or false to continue the normal execution
cleanup()
Cleanup the command when is finished.
protected
cleanup() : void
Tags
configure()
Configures the current command.
protected
configure() : void
execute()
Executes the current command.
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int —0 if everything went fine, or an exit code