RequireJsController

Handling requirejs client requests.

Deprecated

will be removed in TYPO3 v13.0.

Table of Contents

Properties

$pageRenderer  : PageRenderer

Methods

__construct()  : mixed
retrieveConfiguration()  : ResponseInterface
Retrieves additional requirejs configuration for a given module name or module path.
findConfiguration()  : array<string|int, mixed>

Properties

Methods

retrieveConfiguration()

Retrieves additional requirejs configuration for a given module name or module path.

public retrieveConfiguration(ServerRequestInterface $request) : ResponseInterface

The JSON result e.g. could look like: { "shim": { "vendor/module": ["exports" => "TheModule"] }, "paths": { "vendor/module": "/public/web/path/" }, "packages": { [ "name": "module", ... ] } }

Parameter name either could be the module name ("vendor/module") or a module path ("vendor/module/component") belonging to a module.

Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

findConfiguration()

protected findConfiguration(string $name) : array<string|int, mixed>
Parameters
$name : string
Return values
array<string|int, mixed>

        
On this page

Search results