-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskManagerBundleConfiguration.php
More file actions
43 lines (38 loc) · 1.07 KB
/
TaskManagerBundleConfiguration.php
File metadata and controls
43 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php declare(strict_types=1);
namespace Torr\TaskManager\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
*
*/
final class TaskManagerBundleConfiguration implements ConfigurationInterface
{
/**
* @inheritDoc
*/
public function getConfigTreeBuilder () : TreeBuilder
{
$treeBuilder = new TreeBuilder("task_manager");
$treeBuilder->getRootNode()
->children()
->arrayNode("queues")
->info("The list of queues to inspect. This list should be sorted by descending priority.")
->scalarPrototype()->end()
->end()
->arrayNode("log")
->addDefaultsIfNotSet()
->children()
->integerNode("ttl")
->defaultValue(28)
->info("The max age of log entries, before they are automatically cleaned.")
->end()
->integerNode("max_entries")
->defaultValue(1000)
->info("The max number of log entries, before they are automatically cleaned.")
->end()
->end()
->end()
->end();
return $treeBuilder;
}
}