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