ServiceProviderInterface
Interface that all Silex service providers must implement.
Tags
Table of Contents
register() | Registers services on the given app. | mixed |
---|---|---|
boot() | Bootstraps the application. | mixed |
Methods
register()
Registers services on the given app.
public
register(
$app :
Application
)
: mixed
This method should only be used to configure services and parameters. It should not get services.
Parameters
- $app : Application
Return values
mixedboot()
Bootstraps the application.
public
boot(
$app :
Application
)
: mixed
This method is called after all services are registered and should be used for "dynamic" configuration (whenever a service must be requested).
Parameters
- $app : Application