ShortUrlGeneratorController

readonly class \TYPO3\CMS\Redirects\Controller\ShortUrlGeneratorController

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Properties

$responseFactory  : ResponseFactoryInterface
$shortUrlService  : ShortUrlService
$streamFactory  : StreamFactoryInterface

Methods

__construct()  : mixed
generate()  : ResponseInterface
validate()  : ResponseInterface

Properties

$responseFactory

protected ResponseFactoryInterface $responseFactory

$streamFactory

protected StreamFactoryInterface $streamFactory

Methods

__construct()

public __construct(ShortUrlService $shortUrlService, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory) : mixed

Parameters

$shortUrlService : ShortUrlService
$responseFactory : ResponseFactoryInterface
$streamFactory : StreamFactoryInterface

generate()

public generate(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

validate()

public validate(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface
On this page