update models + added social network account services
This commit is contained in:
17
lib/User/Contracts/AuthClientInterface.php
Normal file
17
lib/User/Contracts/AuthClientInterface.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
use yii\authclient\ClientInterface;
|
||||
|
||||
interface AuthClientInterface extends ClientInterface
|
||||
{
|
||||
/**
|
||||
* @return string|null email
|
||||
*/
|
||||
public function getEmail();
|
||||
|
||||
/**
|
||||
* @return string|null username
|
||||
*/
|
||||
public function getUserName();
|
||||
}
|
||||
@ -1,18 +1,10 @@
|
||||
<?php
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
/**
|
||||
*
|
||||
* ServiceInterface.php
|
||||
*
|
||||
* Date: 4/12/16
|
||||
* Time: 2:56
|
||||
* @author Antonio Ramirez <hola@2amigos.us>
|
||||
*/
|
||||
interface ServiceInterface
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
* @return bool
|
||||
*/
|
||||
public function run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user