Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 696 Bytes

alice-processors.md

File metadata and controls

17 lines (13 loc) · 696 Bytes

Alice Processors

Refer to nelmio/alice documentation to see how to create a Processor class. Given you declared a processor AppBundle\DataFixtures\Processor\UserProcessor, you have to declare it as a service with the tag hautelook_alice.alice.processor to register it:

# app/config/services.yml

services:
    alice.processor.user:
        class: AppBundle\DataFixtures\Processor\UserProcessor
        tags: [ { name: hautelook_alice.alice.processor } ]

Previous chapter: Custom Faker providers
Next chapter: DoctrineFixturesBundle support