public function attach($callable, $eventKey = null, array $options = [])
    {
        deprecationWarning('EventManager::attach() is deprecated. Use EventManager::on() instead.');
        if ($eventKey === null) {
            $this->on($callable);

            return;
        }
        if ($options) {
            $this->on($eventKey, $options, $callable);

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