Skip to content
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

Merged
merged 1 commit into from Aug 20, 2016
Merged

Conversation

matej21
Copy link
Contributor

@matej21 matej21 commented Jul 7, 2016

This change is Reviewable


if (method_exists('Latte\Engine', 'addProvider')) { // Nette 2.4
$def->addSetup('addProvider', ['translator', '@Kdyby\Translation\Translator']);

$def->addSetup('addProvider', ['translator', [$this->prefix('@helpers'), 'getTranslator']])
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure :))

@JanTvrdik
Copy link
Contributor

ping

@JanTvrdik
Copy link
Contributor

double ping!

@Attanon
Copy link

Attanon commented Aug 4, 2016

ping

@Salamek
Copy link

Salamek commented Aug 12, 2016

...ping

@clovnrian
Copy link

ping

@fprochazka fprochazka merged commit 8be1a5b into Kdyby:master Aug 20, 2016
@fprochazka
Copy link
Member

@matej21 thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants