DocumentsCommand extends Kernel uses DocumentsCommandActions, ChainedCommandsTrait
Manages Documents within an Documents collection via console commands.
This command provides a command-line interface (CLI) for common CRUD (Create, Read, Update, Delete)
operations on a specific ArangoDB document collection, likely representing "Things".
It leverages the Symfony Console component for command-line interaction and a custom
Documents model for database operations.
It acts as a wrapper for various document management functionalities, allowing users to count, get, insert, delete, check existence, list, and truncate documents directly from the command line.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new DocumentsCommand instance.
- configure() : void
- Configures the current command.
- execute() : int
- Executes the current command.
Methods
__construct()
Creates a new DocumentsCommand instance.
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
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