private function normalizeEvent($event)
    {
        if (is_object($event)) {
            $event = get_class($event);
        }

        if (preg_match('/^bootstrapp(ing|ed): /', $event)) {
            return $event;
        }

        // Events can be formatted as 'event.name: parameters'
        $segments = explode(':', $event);

        return $segments[0];
    }
private function normalizeEvent($event)
    {
        if (is_object($event)) {
            $event = get_class($event);
        }

        if (preg_match('/^bootstrapp(ing|ed): /', $event)) {
            return $event;
        }

        // Events can be formatted as 'event.name: parameters'
        $segments = explode(':', $event);

        return $segments[0];
    }
private function normalizeEvent ( $ event ) { if ( is_object ( $ event ) ) { $ event = get_class ( $ event ) ; } if ( preg_match ( '/^bootstrapp(ing|ed): /' , $ event ) ) { return $ event ; } // Events can be formatted as 'event.name: parameters' $ segments = explode ( ':' , $ event ) ; return $ segments [ 0 ] ; }
Normalize events to class names.

@param $event
@return string
Normalize events to class names .