Silex API
Class

Silex\Provider\SessionServiceProvider

class SessionServiceProvider implements ServiceProviderInterface

Symfony HttpFoundation component Provider for sessions.

Methods

register(Application $app)

Registers services on the given app.

onEarlyKernelRequest(GetResponseEvent $event)

onKernelRequest(GetResponseEvent $event)

onKernelResponse(FilterResponseEvent $event)

boot(Application $app)

Bootstraps the application.

Details

at line 35
public register(Application $app)

Registers services on the given app.

This method should only be used to configure services and parameters. It should not get services.

Parameters

Application $app An Application instance

at line 73
public onEarlyKernelRequest(GetResponseEvent $event)

Parameters

GetResponseEvent $event

at line 78
public onKernelRequest(GetResponseEvent $event)

Parameters

GetResponseEvent $event

at line 99
public onKernelResponse(FilterResponseEvent $event)

Parameters

FilterResponseEvent $event

at line 115
public boot(Application $app)

Bootstraps the application.

This method is called after all services are registered and should be used for "dynamic" configuration (whenever a service must be requested).

Parameters

Application $app