Ensured base path is honored when stringifying short URLs with a custom domain

This commit is contained in:
Alejandro Celaya
2021-02-01 23:18:19 +01:00
parent 4b4a859722
commit 8fa0c95f5a
3 changed files with 25 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ return [
],
ShortUrl\Resolver\PersistenceShortUrlRelationResolver::class => ['em'],
ShortUrl\Helper\ShortUrlStringifier::class => ['config.url_shortener.domain'],
ShortUrl\Helper\ShortUrlStringifier::class => ['config.url_shortener.domain', 'config.router.base_path'],
ShortUrl\Transformer\ShortUrlDataTransformer::class => [ShortUrl\Helper\ShortUrlStringifier::class],
Mercure\MercureUpdatesGenerator::class => [ShortUrl\Transformer\ShortUrlDataTransformer::class],