-
-
Notifications
You must be signed in to change notification settings - Fork 422
[make:auth] drop guard support and legacy code cleanup #1104
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
Conversation
191ac3e
to
2cf4e19
Compare
ec2d37e
to
70238bc
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.
Minor comments - it'll be great to remove all this old complexity!
src/Maker/MakeAuthenticator.php
Outdated
$missingPackagesMessage = 'Twig and symfony/form must be installed to display the login form'; | ||
} | ||
$neededDependencies = [TwigBundle::class => 'twig', Form::class => 'symfony/form']; | ||
$missingPackagesMessage = $this->addDependencies($neededDependencies, 'Twig and symfony/form must be installed to display the login form.'); |
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.
I don't remember (and it's a bit old and hard to track down) the reason for the if (Kernel::VERSION_ID < 40100) {
statement above, but I think you have it backwards. Previously, if the user's version was LESS than 4.1, symfony/form
was installed. So, if 4.1 or greater, it is NOT required.
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.
i cant remember either and grepping for symfony/form
was - well.. ya.. haha removed, we'll see what the tests say..
b7154af
to
0cf32d3
Compare
6374e21
to
324f6f6
Compare
Thanks Jesse! |
This PR was squashed before being merged into the 1.0-dev branch. Discussion ---------- [make:user] Legacy <= 5.3 & Doctrine Cleanup - `TemplateComponentGenerator::generateUseStatements()` can now handle use statements with aliases. - Add `doctrine/orm` conflict w/ `<2.10` - drop legacy Symfony < `5.4` Doctrine && User conditionals - remove legacy `UserBuilder` tests - fixes #990 - [x] Depends on #1104 Commits ------- e0c5f2b [make:user] Legacy <= 5.3 & Doctrine Cleanup
Generator::getControllerForBaseClass