28 lines
460 B
PHP
28 lines
460 B
PHP
<?php
|
|
|
|
namespace RetailCrm\ServiceBundle\Tests\DataFixtures;
|
|
|
|
use Symfony\Component\Security\Core\User\UserInterface;
|
|
|
|
class User implements UserInterface
|
|
{
|
|
public function getRoles(): array
|
|
{
|
|
return ["USER"];
|
|
}
|
|
|
|
public function getUsername(): string
|
|
{
|
|
return "user";
|
|
}
|
|
|
|
public function eraseCredentials(): void
|
|
{
|
|
}
|
|
|
|
public function getUserIdentifier(): string
|
|
{
|
|
return 'identifier';
|
|
}
|
|
}
|