Skip to content

Commit

Permalink
Update EventBridgesExtension.php
Browse files Browse the repository at this point in the history
I believe that added code in commit below should replace the row above it.
When $bridgeConfig is null Nette throws Nette\InvalidArgumentException.

9417598
  • Loading branch information
solcik authored and mabar committed Nov 15, 2019
1 parent 9417598 commit 7972340
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/DI/EventBridgesExtension.php
Expand Up @@ -47,7 +47,6 @@ public function loadConfiguration(): void
// Register sub extension a.k.a CompilerPass
$this->passes[$bridge] = new $this->map[$bridge]();
$this->passes[$bridge]->setCompiler($this->compiler, $this->prefix($bridge));
$this->passes[$bridge]->setConfig($bridgeConfig);

if ($bridgeConfig !== null) {
$this->passes[$bridge]->setConfig($bridgeConfig);
Expand Down

0 comments on commit 7972340

Please sign in to comment.