setName('foo:lock2'); } protected function execute(InputInterface $input, OutputInterface $output) { try { $this->lock(); $this->lock(); } catch (LogicException $e) { return 1; } return 2; } }