Skip to content

Simplify RedirectHandler #13

Description

@g105b

RedirectHandler should construct with a nullable callback function. If it's not supplied, then continue using the header() call by default, otherwise call the callback.

This will allow passing in the Gt\Http\Response's redirect function, like this:

new Authenticator(
	$this->config->getString("authwave.api_key"),
	$serverInfo->getRequestUri(),
	$this->config->getString("authwave.host"),
	$awSession,
	$response->redirect(...),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions