src/mako/application/services/SessionService.php
protected function getStore(Container $container, array $config, $classWhitelist)
	{
		$config = $config['configurations'][$config['configuration']];

		switch($config['type'])
		{
			case 'database':
				return $this->getDatabaseStore($container, $config, $classWhitelist);
				break;
			case 'file':
				return $this->getFileStore($container, $config, $classWhitelist);
				break;
			case 'null':
				return $this->getNullStore($container, $config, $classWhitelist);
				break;
			case 'redis':
				return $this->getRedisStore($container, $config, $classWhitelist);
				break;
		}
	}
protected function getStore(Container $container, array $config, $classWhitelist)
	{
		$config = $config['configurations'][$config['configuration']];

		switch($config['type'])
		{
			case 'database':
				return $this->getDatabaseStore($container, $config, $classWhitelist);
				break;
			case 'file':
				return $this->getFileStore($container, $config, $classWhitelist);
				break;
			case 'null':
				return $this->getNullStore($container, $config, $classWhitelist);
				break;
			case 'redis':
				return $this->getRedisStore($container, $config, $classWhitelist);
				break;
		}
	}
protected function getStore ( Container $ container , array $ config , $ classWhitelist ) { $ config = $ config [ 'configurations' ] [ $ config [ 'configuration' ] ] ; switch ( $ config [ 'type' ] ) { case 'database' : return $ this -> getDatabaseStore ( $ container , $ config , $ classWhitelist ) ; break ; case 'file' : return $ this -> getFileStore ( $ container , $ config , $ classWhitelist ) ; break ; case 'null' : return $ this -> getNullStore ( $ container , $ config , $ classWhitelist ) ; break ; case 'redis' : return $ this -> getRedisStore ( $ container , $ config , $ classWhitelist ) ; break ; } }
Returns a session store instance.

@param  \mako\syringe\Container             $container      Container
@param  array                               $config         Session configuration
@param  bool|array                          $classWhitelist Class whitelist
@return \mako\session\stores\StoreInterface
Returns a session store instance .