-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ukol 3 - Vojtěch Bartoš #27
base: master
Are you sure you want to change the base?
Conversation
@@ -36,7 +36,25 @@ class User implements UserInterface | |||
private $password; | |||
|
|||
/** | |||
* @Assert\NotBlank() |
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.
Nejsem si jistý, jak správně řešit tuto validaci když pro registraci chci aby to nebylo null ale pro editaci adresy to null naopak chci..
# The name of the route to redirect to after logging out | ||
target: homepage | ||
|
||
context: primary_auth |
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.
Našel jsem si, že lze sdílet context mezi více firewally. Nelíbí se mi ale, že musím u obou konfigurovat form_login i logout a jediné v čem se vlastně liší je, že tady chybí anonymous. Lze to napsat i úsporněji?
$form->handleRequest($request); | ||
if ($form->isSubmitted() && $form->isValid()) { | ||
|
||
if ($address = $user->getAddress()) { |
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.
Je dobře volat pokaždé persist & flush ?
No description provided.