src/WordPress/WpEventManager.php
public function attach($event, $callback, $priority = null)
    {
        $event   = $this->_normalizeEvent($event)->getName();
        $handler = $this->_getWpHandlerWrapper($event, $callback);

        $this->_addWpHook($event, $handler, $priority, $this->_getNumArgs());
    }
public function attach($event, $callback, $priority = null)
    {
        $event   = $this->_normalizeEvent($event)->getName();
        $handler = $this->_getWpHandlerWrapper($event, $callback);

        $this->_addWpHook($event, $handler, $priority, $this->_getNumArgs());
    }
{@inheritdoc}

@since [*next-version*]