dukt /
social
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @link https://dukt.net/social/ |
||
| 4 | * @copyright Copyright (c) Dukt |
||
| 5 | * @license https://github.com/dukt/social/blob/v2/LICENSE.md |
||
| 6 | */ |
||
| 7 | |||
| 8 | namespace dukt\social\base; |
||
| 9 | |||
| 10 | use dukt\social\Plugin; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * PluginTrait implements the common methods and properties for plugin classes. |
||
| 14 | * |
||
| 15 | * @property \dukt\social\services\LoginAccounts $loginAccounts The loginAccounts service |
||
| 16 | * @property \dukt\social\services\LoginProviders $loginProviders The loginProviders service |
||
| 17 | */ |
||
| 18 | trait PluginTrait |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Returns the loginAccounts service. |
||
| 22 | * |
||
| 23 | * @return \dukt\social\services\LoginAccounts The loginAccounts service |
||
| 24 | * @throws \yii\base\InvalidConfigException |
||
| 25 | */ |
||
| 26 | public function getLoginAccounts() |
||
| 27 | { |
||
| 28 | /** @var Plugin $this */ |
||
| 29 | return $this->get('loginAccounts'); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the loginProviders service. |
||
| 34 | * |
||
| 35 | * @return \dukt\social\services\LoginProviders The loginProviders service |
||
| 36 | * @throws \yii\base\InvalidConfigException |
||
| 37 | */ |
||
| 38 | public function getLoginProviders() |
||
| 39 | { |
||
| 40 | /** @var Plugin $this */ |
||
| 41 | return $this->get('loginProviders'); |
||
|
0 ignored issues
–
show
|
|||
| 42 | } |
||
| 43 | } |
||
| 44 |