-
-
Notifications
You must be signed in to change notification settings - Fork 464
Fully deprecate controller resolver auto mapping #1804
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
Fully deprecate controller resolver auto mapping #1804
Conversation
41a8c3d
to
f666de9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry it took a while to review, but tests need to be adjusted
Remaining self deprecation notices (100)
100x: Since doctrine/doctrine-bundle 2.13: Enabling the controller resolver automapping feature has been deprecated. Symfony Mapped Route Parameters should be used as replacement.
6x in DoctrineExtensionTest::testCacheConfiguration from Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection
3x in DoctrineExtensionTest::testAutomapping from Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection
2x in DoctrineExtensionTest::testDependencyInjectionConfigurationDefaults from Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection
2x in DoctrineExtensionTest::testSingleEntityManagerWithEmptyConfiguration from Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection
2x in DoctrineExtensionTest::testControllerResolver from Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection
...
@ostrolucky No worries. I added the message to the edit: ah, you're quick, great 👍 |
@bobvandevijver hi! I just created the 3.0.x branch, and I see you created an |
Remove controller resolver auto mapping configuration as discussed in doctrine#1804.
Symfony 7.1 has deprecated the use of the controller resolver auto mapper functionality in favour of the new mapped route parameters, which have the benefit of being explicit and concise (see symfony/symfony#54455, symfony/symfony#54720 and https://symfony.com/blog/new-in-symfony-7-1-mapped-route-parameters for the discussion and more details).
Note that we already deprecated not setting a value with #1762 to be able to change its default to false with 3.0, but now I propose to fully remove this configuration option with 3.0 instead, with both not setting and true being deprecated. Depending on when 3.0 would be available, removed the option could be postponed to 4.0 if desired.
/cc @nicolas-grekas - symfony/recipes#1316