Skip to content

Commit 462cb47

Browse files
Fix Vich uploader reference
Directly reference the uploader helper instead of the extension, fixing issues with the newer Vich uploader versions that use feature the lazy Twig extension.
1 parent f527829 commit 462cb47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/AdmingeneratorFormExtensionsExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function configureAssetsExtension(ContainerBuilder $container, string $u
118118
if ($container->hasDefinition('vich_uploader.templating.helper.uploader_helper') || $container->hasAlias('vich_uploader.templating.helper.uploader_helper')) {
119119
$uploaderHelperDefinition = $container->findDefinition('vich_uploader.templating.helper.uploader_helper');
120120
} else {
121-
$uploaderHelperDefinition = new Reference('Vich\UploaderBundle\Twig\Extension\UploaderExtension');
121+
$uploaderHelperDefinition = new Reference(\Vich\UploaderBundle\Templating\Helper\UploaderHelper::class);
122122
}
123123
}
124124
if ('liip_imagine' === $imageManipulator) {

0 commit comments

Comments
 (0)