Skip to content

ForwardService

ForwardService: resolves forward targets (login / secure / custom) without creating a full execution container.

Currently only handles system forwards used by security (login, secure). Future: generalize to arbitrary forward tokens returned by actions (array/module override forms).

final class ForwardService

SourceExecution/ForwardService.php

public function __construct(Controller $controller, ?ViewNameResolver $resolver = null, ?ViewFactory $viewFactory = null): mixed

ParameterTypeDescription
$controllerController
$resolver?ViewNameResolver
$viewFactory?ViewFactory

Returns mixed

MethodDescription
createSystemForwardActionDescriptor(string $forwardName, string $httpMethod, string $outputType): ActionDescriptorReturn an ActionDescriptor for a system forward (login / secure) honoring settings.xml mappings.
createSystemForwardView(string $forwardName, string $outputType, WebRequest $rd): array{0: ?\Quiote\View\View, 1: string, 2: string, 3: string}Legacy temporary method (now deprecated) that tried to short-circuit by rendering a view.

public function createSystemForwardActionDescriptor(string $forwardName, string $httpMethod, string $outputType): ActionDescriptor

Return an ActionDescriptor for a system forward (login / secure) honoring settings.xml mappings.

ParameterTypeDescription
$forwardNamestring
$httpMethodstring
$outputTypestring

Returns ActionDescriptor

public function createSystemForwardView(string $forwardName, string $outputType, WebRequest $rd): array{0: ?\Quiote\View\View, 1: string, 2: string, 3: string}

Legacy temporary method (now deprecated) that tried to short-circuit by rendering a view.

Left in place for transitional callers; now simply delegates to descriptor path and returns empty content.

ParameterTypeDescription
$forwardNamestring
$outputTypestring
$rdWebRequest

Returns array{0: ?\Quiote\View\View, 1: string, 2: string, 3: string}