Skip to content

Commit 39951b1

Browse files
author
Bogdan Rancichi
committed
send the configuration name from the extension
1 parent 27b01a4 commit 39951b1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,26 @@
1313
*/
1414
class Configuration implements ConfigurationInterface
1515
{
16+
/**
17+
* @var string
18+
*/
19+
protected $name;
20+
21+
/**
22+
* Configuration constructor.
23+
*
24+
* @param string $name
25+
*/
26+
public function __construct($name)
27+
{
28+
$this->name = $name;
29+
}
30+
1631
public function getConfigTreeBuilder()
1732
{
1833
$tree = new TreeBuilder();
1934

20-
$rootNode = $tree->root('old_sound_rabbit_mq');
35+
$rootNode = $tree->root($this->name);
2136

2237
$rootNode
2338
->children()

0 commit comments

Comments
 (0)