src/Aggregator/AggregateEventsRaiseInSelfTrait.php
protected function eventHandlerName(Event $event)
    {
        $class = get_class($event);

        if ('Event' === substr($class, -5)) {
            $class = substr($class, 0, -5);
        }

        $class = str_replace('_', '\\', $class); // convert names for classes not in namespace
        $parts = explode('\\', $class);

        return 'on'.end($parts);
    }
protected function eventHandlerName(Event $event)
    {
        $class = get_class($event);

        if ('Event' === substr($class, -5)) {
            $class = substr($class, 0, -5);
        }

        $class = str_replace('_', '\\', $class); // convert names for classes not in namespace
        $parts = explode('\\', $class);

        return 'on'.end($parts);
    }
protected function eventHandlerName ( Event $ event ) { $ class = get_class ( $ event ) ; if ( 'Event' === substr ( $ class , - 5 ) ) { $ class = substr ( $ class , 0 , - 5 ) ; } $ class = str_replace ( '_' , '\\' , $ class ) ; // convert names for classes not in namespace $ parts = explode ( '\\' , $ class ) ; return 'on' . end ( $ parts ) ; }
Get handler method name from event.

Override this method if you want to change algorithm to generate the handler method name.

@param Event $event

@return string
Get handler method name from event .