|
@@ -43,7 +43,7 @@ class Configuration implements ConfigurationInterface
|
|
->isRequired()
|
|
->isRequired()
|
|
->cannotBeEmpty()
|
|
->cannotBeEmpty()
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('active')
|
|
|
|
|
|
+ ->booleanNode('active')
|
|
->defaultFalse()
|
|
->defaultFalse()
|
|
->end()
|
|
->end()
|
|
->arrayNode('include')
|
|
->arrayNode('include')
|
|
@@ -60,8 +60,8 @@ class Configuration implements ConfigurationInterface
|
|
->defaultValue(array(
|
|
->defaultValue(array(
|
|
'localhost' => array(
|
|
'localhost' => array(
|
|
'host' => '127.0.0.1',
|
|
'host' => '127.0.0.1',
|
|
- 'port' => "4730",
|
|
|
|
- )
|
|
|
|
|
|
+ 'port' => '4730',
|
|
|
|
+ ),
|
|
))
|
|
))
|
|
->prototype('array')
|
|
->prototype('array')
|
|
->children()
|
|
->children()
|
|
@@ -69,8 +69,8 @@ class Configuration implements ConfigurationInterface
|
|
->isRequired()
|
|
->isRequired()
|
|
->cannotBeEmpty()
|
|
->cannotBeEmpty()
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('port')
|
|
|
|
- ->defaultValue("4730")
|
|
|
|
|
|
+ ->integerNode('port')
|
|
|
|
+ ->defaultValue('4730')
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
@@ -78,29 +78,32 @@ class Configuration implements ConfigurationInterface
|
|
->arrayNode('defaults')
|
|
->arrayNode('defaults')
|
|
->addDefaultsIfNotSet()
|
|
->addDefaultsIfNotSet()
|
|
->children()
|
|
->children()
|
|
- ->scalarNode('iterations')
|
|
|
|
|
|
+ ->integerNode('iterations')
|
|
|
|
+ ->min(0)
|
|
->defaultValue(0)
|
|
->defaultValue(0)
|
|
->end()
|
|
->end()
|
|
->scalarNode('method')
|
|
->scalarNode('method')
|
|
->defaultValue('doNormal')
|
|
->defaultValue('doNormal')
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('callbacks')
|
|
|
|
|
|
+ ->booleanNode('callbacks')
|
|
->defaultTrue()
|
|
->defaultTrue()
|
|
->end()
|
|
->end()
|
|
->scalarNode('job_prefix')
|
|
->scalarNode('job_prefix')
|
|
->defaultNull()
|
|
->defaultNull()
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('generate_unique_key')
|
|
|
|
|
|
+ ->booleanNode('generate_unique_key')
|
|
->defaultTrue()
|
|
->defaultTrue()
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('workers_name_prepend_namespace')
|
|
|
|
|
|
+ ->booleanNode('workers_name_prepend_namespace')
|
|
->defaultTrue()
|
|
->defaultTrue()
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('minimum_execution_time')
|
|
|
|
- ->defaultNull()
|
|
|
|
|
|
+ ->integerNode('minimum_execution_time')
|
|
|
|
+ ->min(0)
|
|
|
|
+ ->defaultValue(0)
|
|
->end()
|
|
->end()
|
|
- ->scalarNode('timeout')
|
|
|
|
- ->defaultNull()
|
|
|
|
|
|
+ ->integerNode('timeout')
|
|
|
|
+ ->min(0)
|
|
|
|
+ ->defaultValue(0)
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|