shortUrlService->updateShortUrl( $identifier, ShortUrlEdition::fromRawData($data->toArray()), ); $io->success(sprintf('Short URL "%s" properly edited', $this->stringifier->stringify($shortUrl))); return self::SUCCESS; } catch (ShortUrlNotFoundException $e) { $io->error(sprintf('Short URL not found for "%s"', $identifier->__toString())); if ($io->isVerbose()) { $this->getApplication()?->renderThrowable($e, $io); } return self::FAILURE; } } }