'templating.helper.router' service is not found in symfony 2.7
Update
The new 2.4.2
release for KnpPaginator will solve this issue. Your composer.json
file should look like this:
"knplabs/knp-paginator-bundle": "~2.4"
Previous answer
If you're going to use the bleeding edge versions of Symfony, make sure you're using the latest versions of the required bundles in your project and run composer update
. You may even need to use the dev-master
versions.
This problem was fixed in January as per this commit.
For this particular issue, update your composer.json
file to have this line:
"knplabs/knp-paginator-bundle": "2.4.*@dev"
and run composer update
.
For future readers, you can pick any version later than 2.4.1. Currently, Knplabs has not yet released a version to track Symfony 2.7.
An alternative solution as outlined here is to add php
to your framework templating engines configuration:
framework: templating: engines: ['twig', 'php']