public function configure() { $this->setName('entity:list')->setDescription('Lists specified entity using scalar values in tables'); $this->addArgument('entity', InputArgument::REQUIRED, 'Entity to list'); $this->addOption('columns', 'c', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Columns to show'); $this->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Limit (default all)'); $this->addOption('start', 's', InputOption::VALUE_REQUIRED, 'Record to start at'); $this->addOption('filter', 'f', InputOption::VALUE_REQUIRED, 'DQL filter (entity is aliased as "main")'); parent::configure(); }
public function configure() { $this->setName('email:send')->addArgument('toEmail', InputArgument::REQUIRED)->addArgument('toName', InputArgument::REQUIRED)->addArgument('fromEmail', InputArgument::REQUIRED)->addArgument('fromName', InputArgument::REQUIRED)->addArgument('subject', InputArgument::REQUIRED)->addOption('file', 'f', InputOption::VALUE_REQUIRED, 'Path to file containing body text')->addOption('body', null, InputOption::VALUE_REQUIRED, 'Text of message')->addOption('contentType', null, InputOption::VALUE_REQUIRED, 'Content Type', 'text/html')->addOption('template', 't', InputOption::VALUE_REQUIRED, 'Template to use')->addOption('templateVars', null, InputOption::VALUE_REQUIRED, 'JSON object of key/values for template')->addOption('queueJob', null, InputOption::VALUE_NONE, 'Queue a job'); $this->setDescription('Send an email'); $this->setHelp(<<<TEXT Send an email. For a regular message, either use the --file or --body options or pipe the message contents to the command. For a templated message, specify the template with the --template option. TEXT ); parent::configure(); }
public function configure() { $this->setName('qless:testjob')->setDescription('Add a test job to the "test" queue')->addArgument('delay', InputArgument::OPTIONAL, 'Seconds to delay job', 0); parent::configure(); }
public function configure() { $this->setName('user:create'); $this->addArgument('username', InputArgument::REQUIRED)->addArgument('email', InputArgument::REQUIRED)->addArgument('password', InputArgument::REQUIRED)->addArgument('roles', InputArgument::IS_ARRAY | InputArgument::REQUIRED); parent::configure(); }
public function configure() { $this->setName('api:get')->setDescription('Return a sample API response of a specified Entity')->addArgument('class', InputArgument::REQUIRED, 'Entity class')->addArgument('id', InputArgument::REQUIRED, 'Entity ID'); parent::configure(); }
public function configure() { $this->setName('entity:types')->setDescription('Lists types of entities registered with entity manager'); parent::configure(); }