protected function resolveHandlingMethod($eventType)
    {
        // Remove namespace
        $pos = strrpos($eventType, '\\');
        if ($pos !== false) {
            $eventType = substr($eventType, $pos + 1);
        }

        // Remove "Event" suffix
        if (substr($eventType, -5) === 'Event') {
            $eventType = substr($eventType, 0, -5);
        }

        return 'on' . $eventType;
    }
protected function resolveHandlingMethod($eventType)
    {
        // Remove namespace
        $pos = strrpos($eventType, '\\');
        if ($pos !== false) {
            $eventType = substr($eventType, $pos + 1);
        }

        // Remove "Event" suffix
        if (substr($eventType, -5) === 'Event') {
            $eventType = substr($eventType, 0, -5);
        }

        return 'on' . $eventType;
    }
protected function resolveHandlingMethod ( $ eventType ) { // Remove namespace $ pos = strrpos ( $ eventType , '\\' ) ; if ( $ pos !== false ) { $ eventType = substr ( $ eventType , $ pos + 1 ) ; } // Remove "Event" suffix if ( substr ( $ eventType , - 5 ) === 'Event' ) { $ eventType = substr ( $ eventType , 0 , - 5 ) ; } return 'on' . $ eventType ; }
Derives event handling method name from event type

@param string $eventType
@return string
Derives event handling method name from event type