| 1 | <?php |
||
| 16 | class Service |
||
| 17 | { |
||
| 18 | use HttpClient; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var FactoryInterface |
||
| 22 | */ |
||
| 23 | protected $factory; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $config; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param array $config |
||
| 32 | * @param null $factory |
||
| 33 | * @internal param $storage |
||
| 34 | */ |
||
| 35 | 8 | public function __construct(array $config, $factory = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param $name |
||
| 43 | * @return array |
||
| 44 | * @throws Exception |
||
| 45 | */ |
||
| 46 | 1 | public function getProviderConfiguration($name) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Get provider class by $name |
||
| 57 | * |
||
| 58 | * @param $name |
||
| 59 | * @return \SocialConnect\Auth\AbstractBaseProvider |
||
| 60 | * @throws Exception |
||
| 61 | */ |
||
| 62 | 1 | public function getProvider($name) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | 1 | public function getConfig() |
|
| 71 | { |
||
| 72 | 1 | return $this->config; |
|
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return FactoryInterface |
||
| 77 | */ |
||
| 78 | public function getFactory() |
||
| 82 | } |
||
| 83 |