From 4845643f8076481e94071717951bef936c098435 Mon Sep 17 00:00:00 2001 From: Gorka Laucirica Date: Thu, 27 Sep 2018 21:32:29 +0200 Subject: [PATCH] Made tactician event subscriber definitions public to avoid Symfony 4 issues --- CHANGELOG.md | 2 ++ .../DependencyInjection/Compiler/TacticianEventsBusPass.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 563bd4c..5d49a86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This changelog references the relevant changes done between versions. To get the diff for a specific change, go to https://github.com/LIN3S/SharedKernel/commit/XXX where XXX is the change hash To get the diff between two versions, go to https://github.com/LIN3S/SharedKernel/compare/v0.8.0...v0.9.0 +* 0.9.8 + * Made tactician event subscriber definitions public to avoid Symfony 4 issues * 0.9.7 * Allow to an event object to contain an array * 0.9.6 diff --git a/src/LIN3S/SharedKernel/Infrastructure/Symfony/Bundle/DependencyInjection/Compiler/TacticianEventsBusPass.php b/src/LIN3S/SharedKernel/Infrastructure/Symfony/Bundle/DependencyInjection/Compiler/TacticianEventsBusPass.php index 2753fae..86a9996 100644 --- a/src/LIN3S/SharedKernel/Infrastructure/Symfony/Bundle/DependencyInjection/Compiler/TacticianEventsBusPass.php +++ b/src/LIN3S/SharedKernel/Infrastructure/Symfony/Bundle/DependencyInjection/Compiler/TacticianEventsBusPass.php @@ -79,7 +79,9 @@ private function loadAllSubscribers(ContainerBuilder $container) : void TacticianEventSubscriber::class, [new Reference($id)] ) - )->addTag('tactician.event_listener', ['event' => $attributes['subscribes_to']]); + ) + ->setPublic(true) + ->addTag('tactician.event_listener', ['event' => $attributes['subscribes_to']]); } } }