public function createStrategy($strategy_type)
	{
		if ( $strategy_type == ISessionStrategyFactory::TYPE_ISOLATED ) {
			return $this->application->getObject('isolated_session_strategy');
		}
		elseif ( $strategy_type == ISessionStrategyFactory::TYPE_SHARED ) {
			return $this->application->getObject('shared_session_strategy');
		}

		throw new \InvalidArgumentException('Incorrect session strategy type');
	}
public function createStrategy($strategy_type)
	{
		if ( $strategy_type == ISessionStrategyFactory::TYPE_ISOLATED ) {
			return $this->application->getObject('isolated_session_strategy');
		}
		elseif ( $strategy_type == ISessionStrategyFactory::TYPE_SHARED ) {
			return $this->application->getObject('shared_session_strategy');
		}

		throw new \InvalidArgumentException('Incorrect session strategy type');
	}
public function createStrategy ( $ strategy_type ) { if ( $ strategy_type == ISessionStrategyFactory :: TYPE_ISOLATED ) { return $ this -> application -> getObject ( 'isolated_session_strategy' ) ; } elseif ( $ strategy_type == ISessionStrategyFactory :: TYPE_SHARED ) { return $ this -> application -> getObject ( 'shared_session_strategy' ) ; } throw new \ InvalidArgumentException ( 'Incorrect session strategy type' ) ; }
Creates specified session strategy.

@param string $strategy_type Session strategy type.

@return ISessionStrategy
@throws \InvalidArgumentException When session strategy type is invalid.
Creates specified session strategy .