private function activate()
    {
        $guestAccess = new GuestAccess();
        try {
            $this->entryPointService->activateEntryPoint($guestAccess->getId(), EntryPointService::OPTION_PRELOGIN);
            $rule = new AccessRule('grant', TaoRoles::ANONYMOUS, 'oat\taoDeliveryRdf\controller\Guest@guest');
            AclProxy::applyRule($rule);

            return Report::createSuccess('The guest entry point has been correctly activated');
        } catch (\common_exception_InconsistentData $e) {
            return Report::createFailure($e->getMessage());
        }
    }
private function activate()
    {
        $guestAccess = new GuestAccess();
        try {
            $this->entryPointService->activateEntryPoint($guestAccess->getId(), EntryPointService::OPTION_PRELOGIN);
            $rule = new AccessRule('grant', TaoRoles::ANONYMOUS, 'oat\taoDeliveryRdf\controller\Guest@guest');
            AclProxy::applyRule($rule);

            return Report::createSuccess('The guest entry point has been correctly activated');
        } catch (\common_exception_InconsistentData $e) {
            return Report::createFailure($e->getMessage());
        }
    }
private function activate ( ) { $ guestAccess = new GuestAccess ( ) ; try { $ this -> entryPointService -> activateEntryPoint ( $ guestAccess -> getId ( ) , EntryPointService :: OPTION_PRELOGIN ) ; $ rule = new AccessRule ( 'grant' , TaoRoles :: ANONYMOUS , 'oat\taoDeliveryRdf\controller\Guest@guest' ) ; AclProxy :: applyRule ( $ rule ) ; return Report :: createSuccess ( 'The guest entry point has been correctly activated' ) ; } catch ( \ common_exception_InconsistentData $ e ) { return Report :: createFailure ( $ e -> getMessage ( ) ) ; } }
Try to activate the guest entry point
@return Report
Try to activate the guest entry point