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

[Deprecation] Referencing controllers with a single colon is deprecated #37

Closed
MarStefo opened this issue Dec 2, 2020 · 2 comments
Closed

Comments

@MarStefo
Copy link

MarStefo commented Dec 2, 2020

Symfony 5.1.7 on PHP 7.4 report: User Deprecated: Since symfony/http-kernel 5.1: Referencing controllers with a single colon is deprecated. Use "BoShurik\TelegramBotBundle\Controller\WebhookController::indexAction" instead.

In prod mode it is simply given 404, while in dev it works cheerfully.

To solve, just edit: src/Resources/config/routing.yml line 4:

_controller: BoShurik\TelegramBotBundle\Controller\WebhookController:indexAction
to
_controller: BoShurik\TelegramBotBundle\Controller\WebhookController::indexAction

Thanks.

@BoShurik
Copy link
Owner

BoShurik commented Dec 2, 2020

Hello, thank you for pointing to this issue. It's just a deprecation, it can't lead to an error. I just checked on example project and it works fine

@BoShurik
Copy link
Owner

BoShurik commented Dec 2, 2020

Fixed in 67feb46

@BoShurik BoShurik closed this as completed Dec 2, 2020
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

No branches or pull requests

2 participants