src/Listener/DeferredListenerAggregate.php
public function setHook($event, $service, $method = null, $priority = 0)
    {
        return $this->setListener($event, $service, $method, $priority);
    }
public function setHook($event, $service, $method = null, $priority = 0)
    {
        return $this->setListener($event, $service, $method, $priority);
    }
Alias for setListener().

@param      $event
@param      $service
@param null $method
@param int  $priority

@codeCoverageIgnore
@deprecated since 0.25 use setListener() instead.
@see setListener
@return self