Documentation

SessionProvider extends Provider
in package

A provider simply provides two methods that allow the application to register services with the container, and to initialize the services after they have been loaded.

The register method allows a service provider to load all the services it needs onto the container, the init method then allows to initialize the services needed for the application knowing that all services are enabled.

Table of Contents

$container  : Container
__construct()  : mixed
init()  : mixed
Use this to initialize your services, register published resources etc.
register()  : mixed
Implementations of this function must only register services. Performing other operations may lead to unexpected behavior.

Properties

$container

protected Container $container

Methods

__construct()

public __construct(Container $container) : mixed
Parameters
$container : Container
Return values
mixed

init()

Use this to initialize your services, register published resources etc.

public init() : mixed
Return values
mixed

register()

Implementations of this function must only register services. Performing other operations may lead to unexpected behavior.

public register() : mixed
Return values
mixed

Search results