Skip to content

Commit

Permalink
Ref #6
Browse files Browse the repository at this point in the history
  • Loading branch information
macintoshplus authored Mar 19, 2019
1 parent c0b919e commit c206c81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function getConfigTreeBuilder()
->scalarNode('displayed_name')->isRequired()->cannotBeEmpty()->end()
->scalarNode('script_path')->defaultNull()->end()
->scalarNode('script_params')->defaultValue('')->end()
->integerNode('run_max')->defaultValue(1000)->end()
->integerNode('thread_count')->defaultValue(1)->end()
->integerNode('run_max')->defaultValue(1000)->min(-1)->end()
->integerNode('thread_count')->defaultValue(1)->min(1)->end()
->scalarNode('description')->defaultValue('')->end()
->booleanNode('delayed_start')->defaultFalse()->end()
->arrayNode('exit')
Expand All @@ -59,7 +59,7 @@ public function getConfigTreeBuilder()
->addDefaultsIfNotSet()
->children()
->booleanNode('enable')->defaultFalse()->end()
->integerNode('delay')->defaultValue(60000)->end()
->integerNode('delay')->defaultValue(60000)->min(100)->end()
->enumNode('action1')
->values([WIN32_SC_ACTION_NONE, WIN32_SC_ACTION_REBOOT, WIN32_SC_ACTION_RESTART, WIN32_SC_ACTION_RUN_COMMAND])
->defaultValue(WIN32_SC_ACTION_NONE)
Expand All @@ -74,7 +74,7 @@ public function getConfigTreeBuilder()
->end()
->scalarNode('reboot_msg')->defaultValue("")->end()
->scalarNode('command')->defaultValue("")->end()
->integerNode('reset_period')->defaultValue(86400)->end()
->integerNode('reset_period')->defaultValue(86400)->min(1)->end()
->end()
->end()
->arrayNode('dependencies')
Expand Down

0 comments on commit c206c81

Please sign in to comment.