User::getSalt()

string|null getSalt() Returns the salt that was originally used to encode the password. This can return null if the password was not encoded using a salt. Return Value string|null The salt

User::getPassword()

string getPassword() Returns the password used to authenticate the user. This should be the encoded password. On authentication, a plain-text password will be salted, encoded, and then compared to this value. Return Value string The password

User::getRoles()

Role[] getRoles() Returns the roles granted to the user. public function getRoles() { return array('ROLE_USER'); } Alternatively, the roles might be stored on a roles property, and populated in any number of different ways when the user object is created. Return Value Role[] The user roles

User

class User implements AdvancedUserInterface User is the user implementation used by the in-memory user provider. This should not be used for anything else. Methods __construct($username, $password, array $roles = array(), $enabled = true, $userNonExpired = true, $credentialsNonExpired = true, $userNonLocked = true) __toString() Role[] getRoles() Returns the roles granted to the user. string getPassword() Returns the password used to authenticate the user. string|null

UrlType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

UrlValidator

class UrlValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. PATTERN Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details

User::eraseCredentials()

eraseCredentials() Removes sensitive data from the user. This is important if, at any given point, sensitive information like the plain-text password is stored on this object.

UrlType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

UrlType

class UrlType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template block nam

UrlType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the form. Parameters FormBuilderInterface $builder The form builder array $options The options