protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (!$this->lock()) {
            $output->writeln('<error>The command is already running in another process.</error>');

            return 0;
        }

        if (null !== $time = $input->getOption('time')) {
            $time = new \DateTimeImmutable($time);
        }

        $this->reminder->remind($input->getArgument('provider'), $time);

        $output->writeln('<info>Done.</info>');

        $this->release();

        return 0;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (!$this->lock()) {
            $output->writeln('<error>The command is already running in another process.</error>');

            return 0;
        }

        if (null !== $time = $input->getOption('time')) {
            $time = new \DateTimeImmutable($time);
        }

        $this->reminder->remind($input->getArgument('provider'), $time);

        $output->writeln('<info>Done.</info>');

        $this->release();

        return 0;
    }
{@inheritdoc}