RestProvider
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.
__call(string $method, array $parameters)
Dynamically handle missing method calls.
from ServiceProvider
determine_current_user($user)
No description
rest_authentication_errors($error)
No description
Details
at line 25
void
register()
Register the service provider.
in ServiceProvider at line 22
__construct($plugin)
in ServiceProvider at line 33
__call(string $method, array $parameters)
Dynamically handle missing method calls.