class WordPressController (View source)

Handles normal WordPress requests without interfering Useful if you only want to add a middleware to a route without handling the output

Methods

__construct(ViewService $view_service)

Constructor.

ResponseInterface
handle(RequestInterface $request, string $view = '')

Default WordPress handler.

Details

__construct(ViewService $view_service)

Constructor.

Parameters

ViewService $view_service

ResponseInterface handle(RequestInterface $request, string $view = '')

Default WordPress handler.

Parameters

RequestInterface $request
string $view

Return Value

ResponseInterface