- Marked
Usernameabstract - Renamed CLI command
user:synchronize:usernamestouser:synchronize-usernames - Replaced
MsgPhp\User\Infra\Security\UserRolesProviderInterfacebyMsgPhp\User\Role\RoleProviderInterface
-
Replaced generated
App\Security\UserRolesProviderwith config:msgphp_user: # ... role_providers: #- default: [ROLE_USER] - MsgPhp\User\Role\UserRoleProvider
-
Create and configure the
Usernameentity in casemsgphp_php.username_lookupis configuredmsgphp_user: class_mapping: MsgPhp\User\Entity\Username: App\Entity\User\Username username_lookup: - # ...
<?php namespace App\Entity\User; use Doctrine\ORM\Mapping as ORM; use MsgPhp\User\Entity\Username as BaseUsername; /** * @ORM\Entity() */ class Username extends BaseUsername { }