private function getControllerActionEventName($controller, $actionName)
    {
        if (!is_object($controller)) {
            throw new \InvalidArgumentException('Controller must be type of object, '.gettype($controller).' given.');
        }

        $eventName = str_replace('\\', '.', strtolower(get_class($controller)));

        if (0 === strpos($eventName, 'backbee.')) {
            $eventName = str_replace('backbee.', '', $eventName);
        }

        if (0 === strpos($eventName, 'frontcontroller.')) {
            $eventName = str_replace('frontcontroller.', '', $eventName);
        }

        return $eventName.'.'.strtolower($actionName);
    }
private function getControllerActionEventName($controller, $actionName)
    {
        if (!is_object($controller)) {
            throw new \InvalidArgumentException('Controller must be type of object, '.gettype($controller).' given.');
        }

        $eventName = str_replace('\\', '.', strtolower(get_class($controller)));

        if (0 === strpos($eventName, 'backbee.')) {
            $eventName = str_replace('backbee.', '', $eventName);
        }

        if (0 === strpos($eventName, 'frontcontroller.')) {
            $eventName = str_replace('frontcontroller.', '', $eventName);
        }

        return $eventName.'.'.strtolower($actionName);
    }
private function getControllerActionEventName ( $ controller , $ actionName ) { if ( ! is_object ( $ controller ) ) { throw new \ InvalidArgumentException ( 'Controller must be type of object, ' . gettype ( $ controller ) . ' given.' ) ; } $ eventName = str_replace ( '\\' , '.' , strtolower ( get_class ( $ controller ) ) ) ; if ( 0 === strpos ( $ eventName , 'backbee.' ) ) { $ eventName = str_replace ( 'backbee.' , '' , $ eventName ) ; } if ( 0 === strpos ( $ eventName , 'frontcontroller.' ) ) { $ eventName = str_replace ( 'frontcontroller.' , '' , $ eventName ) ; } return $ eventName . '.' . strtolower ( $ actionName ) ; }
Builds and returns controller's action event name.

@param object $controller
@param string $actionName

@return string

@throws \InvalidArgumentException if provided controller is not an object
Builds and returns controller s action event name .