Skip to content

Commit 7a9ba2f

Browse files
Merge pull request #8 from LIN3S/fix/tactician-event-subscriber-sf4
Made tactician event subscriber definitions public to avoid Symfony 4 issues
2 parents e88bbc2 + 4845643 commit 7a9ba2f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This changelog references the relevant changes done between versions.
55
To get the diff for a specific change, go to https://github.com/LIN3S/SharedKernel/commit/XXX where XXX is the change hash
66
To get the diff between two versions, go to https://github.com/LIN3S/SharedKernel/compare/v0.8.0...v0.9.0
77

8+
* 0.9.8
9+
* Made tactician event subscriber definitions public to avoid Symfony 4 issues
810
* 0.9.7
911
* Allow to an event object to contain an array
1012
* 0.9.6

src/LIN3S/SharedKernel/Infrastructure/Symfony/Bundle/DependencyInjection/Compiler/TacticianEventsBusPass.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ private function loadAllSubscribers(ContainerBuilder $container) : void
7979
TacticianEventSubscriber::class,
8080
[new Reference($id)]
8181
)
82-
)->addTag('tactician.event_listener', ['event' => $attributes['subscribes_to']]);
82+
)
83+
->setPublic(true)
84+
->addTag('tactician.event_listener', ['event' => $attributes['subscribes_to']]);
8385
}
8486
}
8587
}

0 commit comments

Comments
 (0)