locksDir = $locksDir; } /** * @throws Exception */ protected function execute(InputInterface $input, OutputInterface $output): int { $this->setStorage(new FileSystemStorage($this->locksDir)); $this->lock(); $status = $this->executeCommand($input, $output); $this->unlock(); return $status; } }