| 1 | <?php |
||
| 22 | class SessionStrategyFactory implements ISessionStrategyFactory, IApplicationAware |
||
| 23 | { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Application. |
||
| 27 | * |
||
| 28 | * @var Application |
||
| 29 | */ |
||
| 30 | protected $application; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Sets application. |
||
| 34 | * |
||
| 35 | * @param Application $application The application. |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | 9 | public function setApplication(Application $application) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Creates specified session strategy. |
||
| 46 | * |
||
| 47 | * @param string $strategy_type Session strategy type. |
||
| 48 | * |
||
| 49 | * @return ISessionStrategy |
||
| 50 | * @throws \InvalidArgumentException When session strategy type is invalid. |
||
| 51 | */ |
||
| 52 | 6 | public function createStrategy($strategy_type) |
|
| 63 | |||
| 64 | } |
||
| 65 |