Skip to content

Commit 939594a

Browse files
scaytraseruudk
authored andcommitted
Remove "other_middlewares" configuration
1 parent 5bfc819 commit 939594a

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

src/DependencyInjection/CommandBusConfiguration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function getConfigTreeBuilder()
3131
->children()
3232
->booleanNode('logger')->defaultFalse()->end()
3333
->booleanNode('finishes_command_before_handling_next')->defaultTrue()->end()
34-
->booleanNode('other_middlewares')->defaultTrue()->end()
3534
->end()
3635
->end()
3736
->arrayNode('logging')

src/DependencyInjection/CommandBusExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,5 @@ protected function loadInternal(array $mergedConfig, ContainerBuilder $container
5757
$container->getDefinition('simple_bus.command_bus.finishes_command_before_handling_next_middleware')
5858
->addTag('command_bus_middleware', ['priority' => 1000]);
5959
}
60-
61-
$container->setParameter('simple_bus.command_bus.append_tagged_middlewares', $mergedConfig['middlewares']['other_middlewares']);
6260
}
6361
}

src/DependencyInjection/Compiler/ConfigureMiddlewares.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public function process(ContainerBuilder $container)
2626
return;
2727
}
2828

29-
if (!$container->hasParameter('simple_bus.command_bus.append_tagged_middlewares')
30-
|| !$container->getParameter('simple_bus.command_bus.append_tagged_middlewares')) {
31-
return;
32-
}
33-
3429
$middlewareIds = new \SplPriorityQueue();
3530

3631
foreach ($container->findTaggedServiceIds($this->busTag) as $specializedBusId => $tags) {

tests/SymfonyBundle/DependencyInjection/Compiler/ConfigureMiddlewaresTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ protected function setUp()
3434
$this->mainBusDefinition->setPublic(true);
3535
$this->container->setDefinition($this->mainBusId, $this->mainBusDefinition);
3636
$this->container->addCompilerPass(new ConfigureMiddlewares($this->mainBusId, $this->middlewareTag));
37-
$this->container->setParameter('simple_bus.command_bus.append_tagged_middlewares', true);
3837
}
3938

4039
/**

0 commit comments

Comments
 (0)