Warning on Nette\Latte\MacroTokens

Notice: This thread is very old.
alnux
Member | 139
+
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.

alnux
Member | 139
+
0
-

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

Tomáš Votruba
Moderator | 1114
+
0
-

In master it's compatible

This should do it:

composer require kdyby/translation:@dev
alnux
Member | 139
+
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

Filip Procházka
Moderator | 4668
+
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)

alnux
Member | 139
+
0
-

thanks Filip Kdyby works on @dev