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