Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Fix FQCNs for listeners in getServiceConfig() #248

Merged
merged 1 commit into from
Apr 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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(
Expand Down