class RestProvider extends ServiceProvider

This provider is used to register all API routes.

We are going to scan the plugin folder /api to search all vendor/version/routes.

Properties

protected $plugin Instance of main plugin. from ServiceProvider
protected $routes

Methods

void
register()

Register the service provider.

__construct($plugin)

No description

__call(string $method, array $parameters)

Dynamically handle missing method calls.

determine_current_user($user)

No description

rest_authentication_errors($error)

No description

Details

at line 25
void register()

Register the service provider.

Return Value

void

in ServiceProvider at line 22
__construct($plugin)

Parameters

$plugin

in ServiceProvider at line 33
__call(string $method, array $parameters)

Dynamically handle missing method calls.

Parameters

string $method
array $parameters

at line 32
determine_current_user($user)

Parameters

$user

at line 73
rest_authentication_errors($error)

Parameters

$error