Skip to content

Commit 455c078

Browse files
cleverage/process-bundle#166 Add demo.string.preg_match process
1 parent 3a80f54 commit 455c078

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
clever_age_process:
2+
configurations:
3+
demo.string.preg_match:
4+
description: >
5+
A simple process which output preg_match result
6+
help: >
7+
Ex: bin/console cleverage:process:execute demo.string.preg_match
8+
options:
9+
ui:
10+
source: Bar
11+
target: Foo
12+
tasks:
13+
entry:
14+
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
15+
outputs: preg_match
16+
options:
17+
output: 'foobarbaz'
18+
19+
preg_match:
20+
service: '@CleverAge\ProcessBundle\Task\TransformerTask'
21+
outputs: debug
22+
options:
23+
transformers:
24+
preg_match:
25+
pattern: '/(foo)(bar)(baz)/'
26+
flags: !php/const PREG_OFFSET_CAPTURE
27+
property_accessor:
28+
property_path: '[2]'
29+
30+
debug:
31+
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'

0 commit comments

Comments
 (0)