Library
Interface

Library\ServiceContainer\ServiceProviderInterface

interface ServiceProviderInterface

Interface ServiceProviderInterface

Use this to encapsulate a service.

Methods

void register(ServiceContainer $app)

Launch actions when the service is registered in the container

void boot(ServiceContainer $app)

Launch actions when the service is created

void terminate(ServiceContainer $app)

Launch actions when the service is destructed

Details

at line 39
public void register(ServiceContainer $app)

Launch actions when the service is registered in the container

Parameters

ServiceContainer $app

Return Value

void

at line 47
public void boot(ServiceContainer $app)

Launch actions when the service is created

Parameters

ServiceContainer $app

Return Value

void

at line 55
public void terminate(ServiceContainer $app)

Launch actions when the service is destructed

Parameters

ServiceContainer $app

Return Value

void