public function fireEvent($eventName, Event $event = null)
    {
        /** @var EventDispatcher $events */
        $events = $this['events'];

        return $events->dispatch($eventName, $event);
    }
public function fireEvent($eventName, Event $event = null)
    {
        /** @var EventDispatcher $events */
        $events = $this['events'];

        return $events->dispatch($eventName, $event);
    }
public function fireEvent ( $ eventName , Event $ event = null ) { /** @var EventDispatcher $events */ $ events = $ this [ 'events' ] ; return $ events -> dispatch ( $ eventName , $ event ) ; }
Fires an event with optional parameters.

@param  string $eventName
@param  Event  $event

@return Event
Fires an event with optional parameters .