PHP 클래스 Joli\SlackSecretSanta\Controller\SantaController

파일 보기 프로젝트 열기: jolicode/slack-secret-santa

공개 메소드들

메소드 설명
__construct ( $slackClientId, $slackClientSecret, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Routing\RouterInterface $router, Twig_Environment $twig )
authenticate ( Request $request ) : RedirectResponse | Response Ask for Slack authentication and store the AccessToken in Session.
finish ( Request $request, $hash )
homepage ( )
retry ( Request $request, $hash )
run ( Request $request )
summary ( Request $request, $hash )

비공개 메소드들

메소드 설명
getApiClient ( League\OAuth2\Client\Token\AccessToken $token ) : CL\Slack\Transport\ApiClient
getSecretSantaOrThrow404 ( Request $request, string $hash ) : SecretSanta
getSecretSantaSessionKey ( string $hash ) : string
validate ( string[] $selectedUsers, string $message ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( $slackClientId, $slackClientSecret, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Routing\RouterInterface $router, Twig_Environment $twig )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$router Symfony\Component\Routing\RouterInterface
$twig Twig_Environment

authenticate() 공개 메소드

Ask for Slack authentication and store the AccessToken in Session.
public authenticate ( Request $request ) : RedirectResponse | Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

finish() 공개 메소드

public finish ( Request $request, $hash )
$request Symfony\Component\HttpFoundation\Request

homepage() 공개 메소드

public homepage ( )

retry() 공개 메소드

public retry ( Request $request, $hash )
$request Symfony\Component\HttpFoundation\Request

run() 공개 메소드

public run ( Request $request )
$request Symfony\Component\HttpFoundation\Request

summary() 공개 메소드

public summary ( Request $request, $hash )
$request Symfony\Component\HttpFoundation\Request