forked from kaliop-uk/ezmigrationbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Service.yml
21 lines (20 loc) · 1.32 KB
/
Service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Executing symfony Services methods as migration steps
-
type: service
mode: call
service: app.message_generator # a string, or a reference
method: getHappyMessage # a string, or a reference
arguments: # an array of arguments
- 'hello world'
- reference:someref # references will be resolved (if they occupy the whole argument; not if they part of of a bunch of text)
catch:
- '\InvalidArgumentException' # an array of exceptions that will be silenced if they are thrown during execution of the service method
# The list in references tells the manager to store specific values for later use by other steps in the current migration.
# NB: these are NEW VARIABLES THAT YOU ARE CREATING. They are not used in the current migration step!
references: # Optional
-
identifier: referenceId # A string used to identify the reference
attribute: # An attribute to get the value of for the reference. Supports: result, exception_code, exception_message, exception_file, exception_line
if: # Optional. If set, the migration step will be skipped unless the condition is matched
"reference:_ref_name": # name of a reference to be used for the test
_operator_: value # allowed operators: eq, gt, gte, lt, lte, ne, count, length, regexp, satisfies