update folder location
This commit is contained in:
27
src/User/Contracts/AuthClientInterface.php
Normal file
27
src/User/Contracts/AuthClientInterface.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
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();
|
||||
}
|
||||
39
src/User/Contracts/AuthManagerInterface.php
Normal file
39
src/User/Contracts/AuthManagerInterface.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
use yii\rbac\ManagerInterface;
|
||||
|
||||
interface AuthManagerInterface extends ManagerInterface
|
||||
{
|
||||
/**
|
||||
* @param int|null $type
|
||||
* @param array $excludeItems
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItems($type = null, $excludeItems = []);
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItemsByUser($userId);
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItem($name);
|
||||
}
|
||||
19
src/User/Contracts/MailChangeStrategyInterface.php
Normal file
19
src/User/Contracts/MailChangeStrategyInterface.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
interface MailChangeStrategyInterface extends StrategyInterface
|
||||
{
|
||||
const TYPE_INSECURE = 0;
|
||||
const TYPE_DEFAULT = 1;
|
||||
const TYPE_SECURE = 2;
|
||||
}
|
||||
20
src/User/Contracts/ServiceInterface.php
Normal file
20
src/User/Contracts/ServiceInterface.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
interface ServiceInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function run();
|
||||
}
|
||||
20
src/User/Contracts/StrategyInterface.php
Normal file
20
src/User/Contracts/StrategyInterface.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
interface StrategyInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function run();
|
||||
}
|
||||
20
src/User/Contracts/ValidatorInterface.php
Normal file
20
src/User/Contracts/ValidatorInterface.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the 2amigos/yii2-usuario project.
|
||||
*
|
||||
* (c) 2amigOS! <http://2amigos.us/>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
interface ValidatorInterface
|
||||
{
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function validate();
|
||||
}
|
||||
Reference in New Issue
Block a user