getResourceEvent() public method

public getResourceEvent ( ) : ZF\Rest\ResourceEvent
return ZF\Rest\ResourceEvent
 public function createPost(DoctrineResourceEvent $event)
 {
     $objectManager = $event->getObjectManager();
     $event->getEntity();
     $event->getData();
     $event->getResourceEvent();
     $event->getEntityClassName();
     $event->getEntityId();
 }
 /**
  * @param DoctrineResourceEvent $event
  *
  * @return array
  */
 public function handleCollections(DoctrineResourceEvent $event)
 {
     // Setup the dependencies
     $this->setObjectManager($event->getObjectManager());
     $this->setRootEntity($event->getEntity());
     $this->setObjectData((array) $event->getData());
     $this->setInputFilter($event->getResourceEvent()->getInputFilter());
     $this->setServiceManager($event->getTarget()->getServiceManager());
     // Start processing with the root entity, if any nested entities will be handled by the iterateEntity method
     $this->setObjectData($this->iterateEntity($this->getRootEntity(), $this->getObjectData(), $this->getInputFilter()));
     $event->setData($this->getObjectData());
     return $this->getObjectData();
 }
 /**
  * @param DoctrineResourceEvent $e
  * @param Service\User $userService
  * @return Entity\User
  */
 protected function getUser(DoctrineResourceEvent $e, Service\User $userService)
 {
     return $userService->getUserByMail($e->getResourceEvent()->getIdentity()->getName());
 }