Warning on Nette\Latte\MacroTokens

5 years ago

alnux
Member | 106
+
0
-

Ok, i just install kdyby translator and i had the

Class Nette\Latte\MacroTokens has been renamed to Latte\MacroTokens

and i think the new nette framework (2.2.1) change the Nette\Latte\MacroTokens to Latte\MacroTokens so i just edit the LatteExtractor.php kdyby file (Nette\vendor\kdyby\translation\src\Kdyby\Translation\Extractors\LatteExtractor.php) on line 15 and 16

replacecing to this

use Latte\MacroTokens;
use Latte\PhpWriter;
}

and deleting 23 to 25 lines.

5 years ago

alnux
Member | 106
+
0
-

I think it will fix on next editions of kdyby/translator

5 years ago

Tomáš Votruba
Moderator | 1154
+
0
-

In master it's compatible

This should do it:

composer require kdyby/translation:@dev

5 years ago

alnux
Member | 106
+
0
-

ups i saw on github kdaby/translation installation composer require kdyby/translation:~0.10 and now is on require kdyby/translation:~2.0 but i dont know if Service templateCacheStorage is deprecated is fix too on that version

5 years ago

Filip Procházka
Moderator | 4693
+
0
-

Just try development version (master), I'm using it with 2.2 and it works.

<ot>And next time you might wanna open question here </ot>

Last edited by Filip Procházka (2014-06-16 12:27)

5 years ago

alnux
Member | 106
+
0
-

thanks Filip Kdyby works on @dev