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) · 572 Bytes

configuring-the-command.md

File metadata and controls

20 lines (19 loc) · 572 Bytes

Configurando el comando.

Debes proveer un método configure que contenga la configuración del comando como nombre, argumentos, opciones, 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
            );
    }