Skip to content

Commit

Permalink
Fix Vich uploader reference
Browse files Browse the repository at this point in the history
Directly reference the uploader helper instead of the extension, fixing issues with the newer Vich uploader versions that use feature the lazy Twig extension.
  • Loading branch information
bobvandevijver authored Apr 18, 2023
1 parent f527829 commit 462cb47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function configureAssetsExtension(ContainerBuilder $container, string $u
if ($container->hasDefinition('vich_uploader.templating.helper.uploader_helper') || $container->hasAlias('vich_uploader.templating.helper.uploader_helper')) {
$uploaderHelperDefinition = $container->findDefinition('vich_uploader.templating.helper.uploader_helper');
} else {
$uploaderHelperDefinition = new Reference('Vich\UploaderBundle\Twig\Extension\UploaderExtension');
$uploaderHelperDefinition = new Reference(\Vich\UploaderBundle\Templating\Helper\UploaderHelper::class);
}
}
if ('liip_imagine' === $imageManipulator) {
Expand Down

0 comments on commit 462cb47

Please sign in to comment.