private static function getApplication(Event $event)
    {
        if (null === self::$_application) {
            if (null !== $event->getDispatcher()) {
                self::$_application = $event->getDispatcher()->getApplication();
            }
        }

        return self::$_application;
    }
private static function getApplication(Event $event)
    {
        if (null === self::$_application) {
            if (null !== $event->getDispatcher()) {
                self::$_application = $event->getDispatcher()->getApplication();
            }
        }

        return self::$_application;
    }
private static function getApplication ( Event $ event ) { if ( null === self :: $ _application ) { if ( null !== $ event -> getDispatcher ( ) ) { self :: $ _application = $ event -> getDispatcher ( ) -> getApplication ( ) ; } } return self :: $ _application ; }
Returns the current application.

@param Event $event

@return \BackBee\BBApplication
Returns the current application .