Skip to content

Commit 9b5ac5c

Browse files
authored
Made Frosh\ThumbnailProcessor\Service\UrlGeneratorDecorator lazy to avoid needing database in theme:compile
See FriendsOfShopware#31
1 parent 2849de5 commit 9b5ac5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Resources/config/services.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<services>
88

99
<service id="Frosh\ThumbnailProcessor\Service\UrlGeneratorDecorator"
10-
decorates="Shopware\Core\Content\Media\Pathname\UrlGeneratorInterface">
10+
decorates="Shopware\Core\Content\Media\Pathname\UrlGeneratorInterface"
11+
lazy="true">
1112
<argument type="service" id="Frosh\ThumbnailProcessor\Service\UrlGeneratorDecorator.inner"/>
1213
<argument type="service" id="Frosh\ThumbnailProcessor\Service\ThumbnailUrlTemplateInterface"/>
1314
<argument type="service" id="request_stack"/>

0 commit comments

Comments
 (0)