Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions config/packages/process/demo.cache.get_invalid_input.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
clever_age_process:
configurations:
demo.cache.get_invalid_input:
description: >
GetTask receiving a string input (cleverage/cache-process-bundle#22): the task only accepts an array or
null input, it must fail with a clear message
help: >
Ex: bin/console cleverage:process:execute demo.cache.get_invalid_input
tasks:
sku:
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
options:
output: 'key1'
outputs: [ get ]

get:
service: '@CleverAge\CacheProcessBundle\Task\GetTask'
options:
adapter: 'memory'
key: '' # Overridden by the input
outputs: [ debug ]

debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
24 changes: 24 additions & 0 deletions config/packages/process/demo.cache.set_invalid_input_option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
clever_age_process:
configurations:
demo.cache.set_invalid_input_option:
description: >
SetTask receiving an input with an invalid option type (cleverage/cache-process-bundle#23): the input
values must be validated like the options
help: >
Ex: bin/console cleverage:process:execute demo.cache.set_invalid_input_option
tasks:
item:
service: '@CleverAge\ProcessBundle\Task\ConstantOutputTask'
options:
output:
adapter: 1
key: 'key1'
value: 'value1'
outputs: [ set ]

set:
service: '@CleverAge\CacheProcessBundle\Task\SetTask'
options:
adapter: 'memory'
key: '' # Overridden by the input
value: ~ # Overridden by the input
Loading