RequireJsController

class \TYPO3\CMS\Core\Controller\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

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

Parameters

$name : string

Return values

array
On this page