Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource #3

Open
github-actions bot opened this issue Feb 8, 2025 · 0 comments
Open

resource #3

github-actions bot opened this issue Feb 8, 2025 · 0 comments
Assignees

Comments

@github-actions
Copy link

github-actions bot commented Feb 8, 2025

<?php

declare(strict_types=1);

namespace GrotonSchool\SlimLTI\Actions;

use Packback\Lti1p3\DeepLinkResources\Resource;
use Packback\Lti1p3\LtiMessageLaunch;
use Psr\Http\Message\ResponseInterface as Response;

class LaunchAction extends LTIAction
{
    protected function action(): Response
    {
        $launch = LtiMessageLaunch::new(
            $this->database,
            $this->cache,
            $this->cookie,
            $this->serviceConnector
        )->initialize($this->request->getParsedBody());

        if ($launch->isDeepLinkLaunch()) {
            // TODO deep link
        } elseif ($launch->isResourceLaunch()) {
            // TODO resource
        } elseif ($launch->isSubmissionReviewLaunch()) {
            // TODO submission review
        }

        return $this->response;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant