public function detach($callable, $eventKey = null)
    {
        deprecationWarning('EventManager::detach() is deprecated. Use EventManager::off() instead.');
        if ($eventKey === null) {
            $this->off($callable);

            return;
        }
        $this->off($eventKey, $callable);
    }