colvin/faker-password-provider

Faker Password Provider for Hautelook AliceBundle

2.0.0 2020-11-16 10:00 UTC

This package is auto-updated.

Last update: 2024-12-16 19:19: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']