setName('foo:lock'); } protected function execute(InputInterface $input, OutputInterface $output) { if (!$this->lock()) { return 1; } $this->release(); return 2; } }