colvin / faker-password-provider
Faker Password Provider for Hautelook AliceBundle
2.0.0
2020-11-16 10:00 UTC
Requires
- php: >=7.3.0
- fakerphp/faker: ^1.11
- symfony/security-core: ^5.0
This package is auto-updated.
Last update: 2024-10-16 19:03:58 UTC
README
Faker Password Provider for Hautelook AliceBundle
Install the package:
composer req colvin/faker-password-provider --dev
Define the service in services.yaml
:
services:
Colvin\Faker\Provider\PasswordProvider:
tags: ['hautelook_alice.faker.provider']
You can now use the encodePassword
formatter in your fixtures:
App\Entity\User:
user:
password: <encodePassword(@user, 'test')>
username: test
roles: ['ROLE_USER']