protected function _createCachedEvent($event, array $args = [])
    {
        $event = $this->_normalizeEvent($event, $args);
        $name  = $event->getName();

        return $this->eventCache[$name] = $event;
    }
protected function _createCachedEvent($event, array $args = [])
    {
        $event = $this->_normalizeEvent($event, $args);
        $name  = $event->getName();

        return $this->eventCache[$name] = $event;
    }
protected function _createCachedEvent ( $ event , array $ args = [ ] ) { $ event = $ this -> _normalizeEvent ( $ event , $ args ) ; $ name = $ event -> getName ( ) ; return $ this -> eventCache [ $ name ] = $ event ; }
Creates an event instance in cache.

@since [*next-version*]

@param string|Stringable|EventInterface $event The name of the event, or the event instance.
@param array                            $args  Optional array of event arguments.

@return EventInterface The created event instance.
Creates an event instance in cache .