protected function preNotify($listener, $eventName, Event $event)
    {
        if (Events::SUCCESS == $eventName
            && $event instanceof GenericEvent
        ) {
            /*
             * 'ast' argument of 'reflect.success' event is used only by the cache plugin.
             *  Remove it improve performance.
             */
            if (is_array($listener)
                && !$listener[0] instanceof \Bartlett\Reflect\Plugin\CachePlugin
            ) {
                unset($event['ast']);
            }
        }
        return $event;
    }
protected function preNotify($listener, $eventName, Event $event)
    {
        if (Events::SUCCESS == $eventName
            && $event instanceof GenericEvent
        ) {
            /*
             * 'ast' argument of 'reflect.success' event is used only by the cache plugin.
             *  Remove it improve performance.
             */
            if (is_array($listener)
                && !$listener[0] instanceof \Bartlett\Reflect\Plugin\CachePlugin
            ) {
                unset($event['ast']);
            }
        }
        return $event;
    }
protected function preNotify ( $ listener , $ eventName , Event $ event ) { if ( Events :: SUCCESS == $ eventName && $ event instanceof GenericEvent ) { /*
             * 'ast' argument of 'reflect.success' event is used only by the cache plugin.
             *  Remove it improve performance.
             */ if ( is_array ( $ listener ) && ! $ listener [ 0 ] instanceof \ Bartlett \ Reflect \ Plugin \ CachePlugin ) { unset ( $ event [ 'ast' ] ) ; } } return $ event ; }
Called before notify a listener about the event.

@param mixed  $listener  The listener to notify with that $event
@param string $eventName The event name
@param Event  $event     The event

@return Event
Called before notify a listener about the event .