Neos.Neos/Classes/EventLog/Domain/Service/EventEmittingService.php
protected function initializeCurrentUsername()
    {
        if (isset($this->currentUsername)) {
            return;
        }

        $currentUser = $this->userDomainService->getCurrentUser();
        if (!$currentUser instanceof User) {
            return;
        }

        $this->currentUsername = $this->userDomainService->getUsername($currentUser);
    }
protected function initializeCurrentUsername()
    {
        if (isset($this->currentUsername)) {
            return;
        }

        $currentUser = $this->userDomainService->getCurrentUser();
        if (!$currentUser instanceof User) {
            return;
        }

        $this->currentUsername = $this->userDomainService->getUsername($currentUser);
    }
protected function initializeCurrentUsername ( ) { if ( isset ( $ this -> currentUsername ) ) { return ; } $ currentUser = $ this -> userDomainService -> getCurrentUser ( ) ; if ( ! $ currentUser instanceof User ) { return ; } $ this -> currentUsername = $ this -> userDomainService -> getUsername ( $ currentUser ) ; }
Try to set the current username emitting the events, if possible

@return void
Try to set the current username emitting the events if possible