From 03100c78bd3a35c02296765a2f2b9d64f7219ef0 Mon Sep 17 00:00:00 2001 From: Ozzrell <63107640+Ozzrell@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:02:13 +0100 Subject: [PATCH] ImageStorageExtension: fix for Latte < 3 (#45) --- src/DI/ImageStorageExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DI/ImageStorageExtension.php b/src/DI/ImageStorageExtension.php index 95f3239..c5b4ac8 100644 --- a/src/DI/ImageStorageExtension.php +++ b/src/DI/ImageStorageExtension.php @@ -46,7 +46,7 @@ public function beforeCompile(): void /** @var Nette\DI\Definitions\FactoryDefinition $latteFactory */ $latteFactory = $builder->getDefinition('latte.latteFactory'); assert($latteFactory instanceof Nette\DI\Definitions\FactoryDefinition); - if (version_compare(Latte\Engine::Version, '3', '<')) { + if (version_compare(Latte\Engine::VERSION, '3', '<')) { $latteFactory->getResultDefinition() ->addSetup('Contributte\ImageStorage\Macros\Macros::install(?->getCompiler())', ['@self']); } else {