ProviderContract
in
Table of Contents
Methods
- authentications() : AuthenticationChain
- Chain your service authentications to the application's authentication chain.
- commands() : array<string|int, mixed>
- Register your service commands to the application's command system.
- middlewares() : MiddlewareChain
- Chain your service middlewares to the application's middleware chain.
- onBooted() : void
- Add logic to the application's booted hook.
- onTerminate() : void
- Add logic to the application's terminating hook.
- routes() : PioniaRouter
- Add your service routes to the application's router system.
Methods
authentications()
Chain your service authentications to the application's authentication chain.
public
authentications(AuthenticationChain $authenticationChain) : AuthenticationChain
Parameters
- $authenticationChain : AuthenticationChain
Return values
AuthenticationChaincommands()
Register your service commands to the application's command system.
public
commands() : array<string|int, mixed>
Return values
array<string|int, mixed>middlewares()
Chain your service middlewares to the application's middleware chain.
public
middlewares(MiddlewareChain $middlewareChain) : MiddlewareChain
Parameters
- $middlewareChain : MiddlewareChain
Return values
MiddlewareChainonBooted()
Add logic to the application's booted hook.
public
onBooted() : void
onTerminate()
Add logic to the application's terminating hook.
public
onTerminate() : void
routes()
Add your service routes to the application's router system.
public
routes(PioniaRouter $router) : PioniaRouter
Parameters
- $router : PioniaRouter