php - Do I have to implement the UserInterface for Users in Symfony -


i creating webpage symfony. there advantages in implementing userinterface symfony\component\security\core\user?

it seems me, interface not represent needs. example not need , want username rather email.

you need implement many components e.g. security use it.

your user can extended or simplified. username do

public function getusername()  {     return $this->getemail(); } 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -