8000 dont guess entrypoint if using security52 · symfony/maker-bundle@7a5af49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a5af49

Browse files
committed
dont guess entrypoint if using security52
1 parent f69fc99 commit 7a5af49

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Maker/MakeAuthenticator.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ function ($answer) {
151151
$input->setOption('firewall-name', $firewallName = $interactiveSecurityHelper->guessFirewallName($io, $securityData));
152152

153153
$command->addOption('entry-point', null, InputOption::VALUE_OPTIONAL);
154-
$input->setOption(
155-
'entry-point',
156-
$interactiveSecurityHelper->guessEntryPoint($io, $securityData, $input->getArgument('authenticator-class'), $firewallName)
157-
);
154+
155+
if (!$this->useSecurity52) {
156+
$input->setOption(
157+
'entry-point',
158+
$interactiveSecurityHelper->guessEntryPoint($io, $securityData, $input->getArgument('authenticator-class'), $firewallName)
159+
);
160+
}
158161

159162
if (self::AUTH_TYPE_FORM_LOGIN === $input->getArgument('authenticator-type')) {
160163
$command->addArgument('controller-class', InputArgument::REQUIRED);
@@ -270,7 +273,7 @@ private function generateAuthenticatorClass(array $securityData, string $authent
270273

271274
$this->generator->generateClass(
272275
$authenticatorClass,
273-
sprintf('authenticator/%sLoginFormAuthenticator', $this->useSecurity52 ? 'Security52' : ''),
276+
sprintf('authenticator/%sLoginFormAuthenticator.tpl.php', $this->useSecurity52 ? 'Security52' : ''),
274277
[
275278
'user_fully_qualified_class_name' => trim($userClassNameDetails->getFullName(), '\\'),
276279
'user_class_name' => $userClassNameDetails->getShortName(),

0 commit comments

Comments
 (0)
0