KernelUtilities
Table of Contents
- $kernel : mixed
- $request : mixed
- create() : self
- exitOnError() : void
- Exits the program on error. If the context is HTTP or WP CLI, the method will exit using wp_die().
- __construct() : mixed
Properties
$kernel
private
mixed
$kernel
$request
private
mixed
$request
Methods
create()
public
static create(KernelInterface $kernel, Request $request) : self
Parameters
- $kernel : KernelInterface
- $request : Request
Return values
self —exitOnError()
Exits the program on error. If the context is HTTP or WP CLI, the method will exit using wp_die().
public
exitOnError(string $message, string $title[, int $statusCode = 500 ]) : void
Parameters
- $message : string
- $title : string
- $statusCode : int = 500
Return values
void —__construct()
private
__construct(KernelInterface $kernel, Request $request) : mixed
Parameters
- $kernel : KernelInterface
- $request : Request