Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Created January 27, 2019 21:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save piotrbrzezina/ddb12293095aef1b17e16cb0520a6b33 to your computer and use it in GitHub Desktop.
Flashcard step 8 (Event system)
<?php
// ...
class User implements UserInterface
{
// ...
public $roles = ['ROLE_USER'];
/**
* ...
* @Assert\Length(min="8", max="255", groups={"userCreate", "userChangePassword"})
*/
public $plainPassword;
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment