Updated examples

This commit is contained in:
Alex Bilbie
2015-04-05 21:11:10 +01:00
parent eabcf82268
commit 5840ace38f
5 changed files with 159 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace OAuth2ServerExamples\Repositories;
use League\OAuth2\Server\Entities\Interfaces\UserEntityInterface;
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
use OAuth2ServerExamples\Entities\UserEntity;
class UserRepository implements UserRepositoryInterface
{
/**
* Get a user
*
* @param string $username
* @param string $password
*
* @return UserEntityInterface
*/
public function getByCredentials($username, $password)
{
return new UserEntity();
}
}