Zend Framework  3.0
Public Member Functions | List of all members
SessionConfigFactory Class Reference

Public Member Functions

 __invoke (ContainerInterface $container, $requestedName, array $options=null)
 Create session configuration object (v3 usage).
 
 createService (ServiceLocatorInterface $services, $canonicalName=null, $requestedName=ConfigInterface::class)
 Create and return a config instance (v2 usage).
 
- Public Member Functions inherited from FactoryInterface
 createService (ServiceLocatorInterface $serviceLocator)
 Create service.
 

Member Function Documentation

__invoke ( ContainerInterface  $container,
  $requestedName,
array  $options = null 
)

Create session configuration object (v3 usage).

Uses "session_config" section of configuration to seed a ConfigInterface instance. By default, Zend will be used, but you may also specify a specific implementation variant using the "config_class" subkey.

Parameters
ContainerInterface$container
string$requestedName
null | array$options
Returns
ConfigInterface
Exceptions
ServiceNotCreatedExceptionif session_config is missing, or an invalid config_class is used

Implements FactoryInterface.

createService ( ServiceLocatorInterface  $services,
  $canonicalName = null,
  $requestedName = ConfigInterface::class 
)

Create and return a config instance (v2 usage).

Parameters
ServiceLocatorInterface$services
null | string$canonicalName
string$requestedName
Returns
ConfigInterface