From 15b6d3826118c88786f117b61b71f345ecd2e7fa Mon Sep 17 00:00:00 2001 From: Tom H Anderson Date: Tue, 3 Jul 2018 17:04:46 -0600 Subject: [PATCH] Fix events doc; use Event class for naming events in AbstractAbstractFactory --- docs/events.rst | 4 ++-- src/AbstractAbstractFactory.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/events.rst b/docs/events.rst index f78d8a1..7c8969d 100644 --- a/docs/events.rst +++ b/docs/events.rst @@ -1,7 +1,7 @@ Events ====== -All events are grouped under a common **ZF\Doctrine\GraphQL\Event** object. In this repository the same event +All events are grouped under a common **ZF\\Doctrine\\GraphQL\\Event** object. In this repository the same event can be called in different places based on context such as when building an EntityType and when building the filters for an EntityType; both places need the same type override. That is why all events are grouped. @@ -100,4 +100,4 @@ A good solution is to turn the value into JSON in a hydrator strategy and overri Authored by **API Skeletons **_. All rights reserved. -:raw-html:**** +:raw-html:`` diff --git a/src/AbstractAbstractFactory.php b/src/AbstractAbstractFactory.php index 8e868ee..eb35eeb 100644 --- a/src/AbstractAbstractFactory.php +++ b/src/AbstractAbstractFactory.php @@ -23,7 +23,7 @@ private function createEventManager(SharedEventManagerInterface $sharedEventMana $this->events = new EventManager( $sharedEventManager, [ - 'ZF\\Doctrine\\GraphQL\\Event', + Event::class, ] );