add events + more wip classes

This commit is contained in:
Antonio Ramirez
2016-12-04 15:53:09 +01:00
parent 3e16d24048
commit bd06010018
21 changed files with 496 additions and 18 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace Da\User\Event;
use Da\User\Model\SocialNetworkAccount;
use yii\authclient\ClientInterface;
use yii\base\Event;
class SocialNetworkAuthEvent extends Event
{
protected $client;
protected $account;
public function __construct(SocialNetworkAccount $account, ClientInterface $client, $config = [])
{
$this->account = $account;
$this->client = $client;
parent::__construct($config);
}
public function getClient()
{
return $this->client;
}
public function getAccount()
{
return $this->account;
}
}