mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Replaced deprecated transactional function with wrapTransaction
This commit is contained in:
parent
9e32886f60
commit
1b6512fc8d
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class UrlShortener implements UrlShortenerInterface
|
|||
/** @var ShortUrlMeta $meta */
|
||||
$meta = $this->titleResolutionHelper->processTitleAndValidateUrl($meta);
|
||||
|
||||
return $this->em->transactional(function () use ($meta) {
|
||||
return $this->em->wrapInTransaction(function () use ($meta) {
|
||||
$shortUrl = ShortUrl::fromMeta($meta, $this->relationResolver);
|
||||
|
||||
$this->verifyShortCodeUniqueness($meta, $shortUrl);
|
||||
|
|
|
@ -39,7 +39,7 @@ class UrlShortenerTest extends TestCase
|
|||
[$shortUrl] = $arguments;
|
||||
$shortUrl->setId('10');
|
||||
});
|
||||
$this->em->transactional(Argument::type('callable'))->will(function (array $args) {
|
||||
$this->em->wrapInTransaction(Argument::type('callable'))->will(function (array $args) {
|
||||
/** @var callable $callback */
|
||||
[$callback] = $args;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue