1: <?php
2:
3: namespace PHPixie\AuthHTTP;
4:
5: class Providers extends \PHPixie\Auth\Providers\Builder\Implementation
6: {
7: protected $security;
8: protected $httpContextContainer;
9:
10: public function __construct($security, $httpContextContainer)
11: {
12: $this->security = $security;
13: $this->httpContextContainer = $httpContextContainer;
14: }
15:
16: public function buildCookieProvider($domain, $name, $configData)
17: {
18: return new Providers\Cookie(
19: $this->security->tokens(),
20: $this->httpContextContainer,
21: $domain,
22: $name,
23: $configData
24: );
25: }
26:
27: public function buildSessionProvider($domain, $name, $configData)
28: {
29: return new Providers\Session(
30: $this->httpContextContainer,
31: $domain,
32: $name,
33: $configData
34: );
35: }
36:
37: public function name()
38: {
39: return 'http';
40: }
41: }