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

after upgrade to 2.7.0 , kpnpaginator complains service "templating.helper.router" is non-existent #14790

Closed
allan-simon opened this issue May 30, 2015 · 6 comments

Comments

@allan-simon
Copy link

the exact error message being

The service "knp_paginator.helper.processor" has a dependency on a non-existent service "templating.helper.router".

is it a problem on symfony or in the bundle side ? I see nothing related to that service in the upgrade file to 2.7

@allan-simon
Copy link
Author

is it related to #13354 ?

@dosten
Copy link
Contributor

dosten commented May 30, 2015

Add php as an engine in your framework config:

framework:
    templating:
        engines: ['twig', 'php']

@allan-simon
Copy link
Author

thank you for the quick answer, i'm reupdating and i will tell you soon if it works

@allan-simon
Copy link
Author

it seems to fix the problem, thanks

@xabbuh
Copy link
Member

xabbuh commented May 30, 2015

Imho we should move the templating.helper.router service to templating.xml for BC reasons.

@xabbuh xabbuh reopened this May 30, 2015
fabpot added a commit that referenced this issue Jun 1, 2015
…available again for BC reasons (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] make `templating.helper.router` service available again for BC reasons

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14790
| License       | MIT
| Doc PR        |

Commits
-------

95dcfa2 [FrameworkBundle] make `templating.helper.router` service available again for BC reasons
@fabpot fabpot closed this as completed Jun 1, 2015
@zivda3rd
Copy link

This fixed my problem too. Thanks for the help. I just wonder how is it that it worked before!

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

No branches or pull requests

5 participants