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

Controllers Should Not Be Referenced With Single Colon Syntax #5251

Closed
Selion05 opened this issue Oct 7, 2018 · 5 comments
Closed

Controllers Should Not Be Referenced With Single Colon Syntax #5251

Selion05 opened this issue Oct 7, 2018 · 5 comments

Comments

@Selion05
Copy link

Selion05 commented Oct 7, 2018

Feature Request

related to #5227 using '::' removes the deprecation notices
link

@OskarStark
Copy link
Member

Would you like to provide a PR?

@valkars
Copy link

valkars commented Oct 8, 2018

And also https://github.com/sonata-project/SonataAdminBundle/blob/3.x/src/Resources/config/routing/sonata_admin.xml#L4
Referencing controllers with FrameworkBundle:Redirect:redirect is deprecated since Symfony 4.1, use "Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction" instead.

@Selion05
Copy link
Author

Selion05 commented Oct 8, 2018

what about

if (false === strpos($this->baseControllerName, ':')) {
? should I change this line as well or will it break code for someone who doesn't use the default controller and use the odeprecated syntax?

@Selion05
Copy link
Author

Selion05 commented Oct 8, 2018

? sprintf('%s:%s', $bundle->getName(), substr($controllerClassBasename, 0, -10))
: CRUDController::class

@phansys
Copy link
Member

phansys commented Jun 18, 2019

This issue was fixed by #5228.
Thank you!

@phansys phansys closed this as completed Jun 18, 2019
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

4 participants