Skip to content

Instantly share code, notes, and snippets.

@eghojansu
Last active September 11, 2017 09:40
Show Gist options
  • Save eghojansu/5724c0545f4716dad78b4f366b15cd00 to your computer and use it in GitHub Desktop.
Save eghojansu/5724c0545f4716dad78b4f366b15cd00 to your computer and use it in GitHub Desktop.
Snippet for post Install nelmio/alice di Framework Symfony
# app/config/config_dev.yml
# NelmioAliceBundle setting (boleh ditempatkan diakhir file)
nelmio_alice:
locale: 'id_ID' # Default locale for the Faker Generator (id_ID untuk Indonesia Bahasa Indonesia)
seed: 1 # Value used make sure Faker generates data consistently across
# runs, set to null to disable.
functions_blacklist: # Some Faker formatter may have the same name as PHP
- 'current' # native functions. PHP functions have the priority,
- 'date' # so if you want to use a Faker formatter instead,
# blacklist this function here
loading_limit: 5 # Alice may do some recursion to resolve certain values.
# This parameter defines a limit which will stop the
# resolution once reached.
max_unique_values_retry: 150 # Maximum number of time Alice can try to
# generate a unique value before stopping and
# failing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment