main/core/Manager/WorkspaceUserQueueManager.php
public function validateRegistration(WorkspaceRegistrationQueue $workspaceRegistration)
    {
        $this->roleManager->associateRolesToSubjects(
            [$workspaceRegistration->getUser()],
            [$workspaceRegistration->getRole()],
            true
        );

        $this->om->remove($workspaceRegistration);
        $this->om->flush();
    }
public function validateRegistration(WorkspaceRegistrationQueue $workspaceRegistration)
    {
        $this->roleManager->associateRolesToSubjects(
            [$workspaceRegistration->getUser()],
            [$workspaceRegistration->getRole()],
            true
        );

        $this->om->remove($workspaceRegistration);
        $this->om->flush();
    }
public function validateRegistration ( WorkspaceRegistrationQueue $ workspaceRegistration ) { $ this -> roleManager -> associateRolesToSubjects ( [ $ workspaceRegistration -> getUser ( ) ] , [ $ workspaceRegistration -> getRole ( ) ] , true ) ; $ this -> om -> remove ( $ workspaceRegistration ) ; $ this -> om -> flush ( ) ; }
Validates a pending workspace registration.

@param WorkspaceRegistrationQueue $workspaceRegistration
Validates a pending workspace registration .