6 use Symfony\Component\Console\Helper\Table;
17 $this->setName(
'database:seeders')
18 ->setDescription(
elgg_echo(
'cli:database:seeders:description'));
25 $table =
new Table($this->output);
28 elgg_echo(
'cli:database:seeders:handler'),
36 foreach ($seeders as $seeder) {
38 $seed =
new $seeder();
Abstract command with some utility methods.
elgg-cli database:seeders
command()
Command to be executed.This method method should return an integer code of the error (or 0 for succes...
const ELGG_IGNORE_ACCESS
elgg_call() flags
const ELGG_SHOW_DISABLED_ENTITIES
_elgg_services()
Get the global service provider.
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.