From aa9773a943728970ba0211cc3e00f897642531a6 Mon Sep 17 00:00:00 2001 From: Willie Alberty Date: Wed, 18 Apr 2018 01:03:24 -0400 Subject: [PATCH 1/2] Fix FQCNs for listeners in getServiceConfig() --- src/Module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Module.php b/src/Module.php index 9dabe12..33eaf29 100644 --- a/src/Module.php +++ b/src/Module.php @@ -106,7 +106,7 @@ public function onBootstrap(EventInterface $event) $profilerListener->attach($em); if ($options->isToolbarEnabled()) { - $toolbarListener = $sm->get(Listener\ProfilerListener::class); + $toolbarListener = $sm->get(Listener\ToolbarListener::class); $toolbarListener->attach($em); } @@ -175,16 +175,16 @@ public function getServiceConfig() 'ZendDeveloperTools\StorageListener' => function ($sm) { return new Listener\StorageListener($sm); }, - 'ZendDeveloperTools\ToolbarListener' => function ($sm) { + Listener\ToolbarListener::class => function ($sm) { return new Listener\ToolbarListener( $sm->get('ViewRenderer'), $sm->get('ZendDeveloperTools\Config') ); }, - 'ZendDeveloperTools\ProfilerListener' => function ($sm) { + Listener\ProfilerListener::class => function ($sm) { return new Listener\ProfilerListener($sm, $sm->get('ZendDeveloperTools\Config')); }, - 'ZendDeveloperTools\EventLoggingListenerAggregate' => function ($sm) { + Listener\EventLoggingListenerAggregate::class => function ($sm) { $config = $sm->get('ZendDeveloperTools\Config'); return new Listener\EventLoggingListenerAggregate( From 1687cf287b414572d65b7d42d5cf4f37133d1c77 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Wed, 18 Apr 2018 07:56:00 -0500 Subject: [PATCH 2/2] Adds CHANGELOG entry for #248 --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f0b646..71f7373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#248](https://github.com/zendframework/zend-developer-tools/pull/248) fixes dependency configuration within the `Module` class to replace + incorrect class and service name references. ## 1.2.0 - 2018-04-17