1: <?php
2:
3: namespace PHPixie\AuthHTTP;
4:
5: class Builder
6: {
7: protected $security;
8: protected $httpContextContainer;
9:
10: protected $providers;
11:
12: public function __construct($security, $httpContextContainer)
13: {
14: $this->security = $security;
15: $this->httpContextContainer = $httpContextContainer;
16: }
17:
18: public function providers()
19: {
20: if($this->providers === null) {
21: $this->providers = $this->buildProviders();
22: }
23:
24: return $this->providers;
25: }
26:
27: protected function buildProviders()
28: {
29: return new Providers(
30: $this->security,
31: $this->httpContextContainer
32: );
33: }
34: }