New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed nette 2.4 compatibility #117
Conversation
|
||
if (method_exists('Latte\Engine', 'addProvider')) { // Nette 2.4 | ||
$def->addSetup('addProvider', ['translator', '@Kdyby\Translation\Translator']); | ||
|
||
$def->addSetup('addProvider', ['translator', [$this->prefix('@helpers'), 'getTranslator']]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, why not use the service directly? $this->prefix('@default')
? It works with a callback too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure :))
ping |
double ping! |
90f13c9
to
7ded54d
Compare
ping |
...ping |
ping |
@matej21 thank you |
This change is