PHP Class Autarky\Http\SessionHandlerFactory

Show file Open project: autarky/framework

Protected Properties

Property Type Description
$config Autarky\Config\ConfigInterface
$container Autarky\Container\ClassResolverInterface
$factories array

Public Methods

Method Description
__construct ( Autarky\Container\ClassResolverInterface $container, Autarky\Config\ConfigInterface $config ) Constructor.
defineFactory ( string $ident, callable $factory ) : void Define a handler factory.
makeHandler ( string $ident ) : SessionHandlerInterface Make a handler.

Protected Methods

Method Description
getSessionPath ( )
makeFileHandler ( )
makeMemcacheHandler ( )
makeMemcachedHandler ( )
makeMongoHandler ( )
makeNativeHandler ( )
makeNullHandler ( )
makePdoHandler ( )

Method Details

__construct() public method

Constructor.
public __construct ( Autarky\Container\ClassResolverInterface $container, Autarky\Config\ConfigInterface $config )
$container Autarky\Container\ClassResolverInterface
$config Autarky\Config\ConfigInterface

defineFactory() public method

Define a handler factory.
public defineFactory ( string $ident, callable $factory ) : void
$ident string
$factory callable
return void

getSessionPath() protected method

protected getSessionPath ( )

makeFileHandler() protected method

protected makeFileHandler ( )

makeHandler() public method

Make a handler.
public makeHandler ( string $ident ) : SessionHandlerInterface
$ident string
return SessionHandlerInterface

makeMemcacheHandler() protected method

protected makeMemcacheHandler ( )

makeMemcachedHandler() protected method

protected makeMemcachedHandler ( )

makeMongoHandler() protected method

protected makeMongoHandler ( )

makeNativeHandler() protected method

protected makeNativeHandler ( )

makeNullHandler() protected method

protected makeNullHandler ( )

makePdoHandler() protected method

protected makePdoHandler ( )

Property Details

$config protected property

protected ConfigInterface,Autarky\Config $config
return Autarky\Config\ConfigInterface

$container protected property

protected ClassResolverInterface,Autarky\Container $container
return Autarky\Container\ClassResolverInterface

$factories protected property

protected array $factories
return array