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

knp_Paginator does not work on the server #705

Open
inusaico90 opened this issue Jun 15, 2021 · 2 comments
Open

knp_Paginator does not work on the server #705

inusaico90 opened this issue Jun 15, 2021 · 2 comments

Comments

@inusaico90
Copy link

Q A
Bundle version 5.5.1
Symfony version 5.2
PHP version x.y.z

Support Question

working on the local server the knp_paginator works perfectly but at the moment of uploading it to the server it appears "Cannot autowire argument $paginator of "App\Controller\DashboardController::index()": it references interface "Knp\Component\Pager\PaginatorInterface" but no such service exists. Did you create a class that implements this interface?" I was looking in different places and I even installed the knp paginator on the server but still not works

@garak
Copy link
Collaborator

garak commented Jun 17, 2021

I'm a bit worried about "I even installed the knp paginator on the server"... what do you mean?

@A-Obukhov
Copy link

Maybe, he did install knplabs/knp-paginator-bundle with --dev key in composer? So, it works only in DEV environment.
If I'm right, then it would help:

composer remove knplabs/knp-paginator-bundle
composer require knplabs/knp-paginator-bundle

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

3 participants