Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Latest commit

 

History

History
20 lines (19 loc) · 567 Bytes

configuring-the-command.md

File metadata and controls

20 lines (19 loc) · 567 Bytes

Configuring the command.

You must provide aconfigure method containing the configuration of the command as name, arguments, options, etc.

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this
            ->setName('user:login:url')
            ->setDescription($this->trans('commands.user.login.url.description'))
            ->addArgument(
                'uid',
                InputArgument::REQUIRED,
                $this->trans('commands.user.login.url.options.uid'),
                null
            );
    }