RequireJsController
Handling requirejs client requests.
Table of Contents
Properties
Methods
- __construct() : mixed
- retrieveConfiguration() : ResponseInterface
- Retrieves additional requirejs configuration for a given module name or module path.
- findConfiguration() : array<string|int, mixed>
Properties
$pageRenderer
protected
PageRenderer
$pageRenderer
Methods
__construct()
public
__construct() : mixed
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
ResponseInterfacefindConfiguration()
protected
findConfiguration(string $name) : array<string|int, mixed>
Parameters
- $name : string