trait Bootable

Properties

protected JsonApi $api
protected Dispatcher $events
protected Factory $validation

Methods

boot(JsonApi $api)

Avoids polluting the constructor of the resource with dependencies.

Factory
validationFactory()

Called by the JSON:API server package to resolve the validation factory.

Details

Bootable boot(JsonApi $api)

Avoids polluting the constructor of the resource with dependencies.

Parameters

JsonApi $api

Return Value

Bootable

Factory validationFactory()

Called by the JSON:API server package to resolve the validation factory.

Return Value

Factory