Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
66.67% |
2 / 3 |
CRAP | |
75.00% |
3 / 4 |
UserAuthenticationFailedEvent | |
0.00% |
0 / 1 |
|
66.67% |
2 / 3 |
3.14 | |
75.00% |
3 / 4 |
__construct(Request $request) | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getName() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
getRequest() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
<?php | |
/** | |
* OAuth 2.0 user authentication failed event | |
* | |
* @package league/oauth2-server | |
* @author Alex Bilbie <hello@alexbilbie.com> | |
* @copyright Copyright (c) Alex Bilbie | |
* @license http://mit-license.org/ | |
* @link https://github.com/thephpleague/oauth2-server | |
*/ | |
namespace League\OAuth2\Server\Event; | |
use League\Event\AbstractEvent; | |
use Symfony\Component\HttpFoundation\Request; | |
class UserAuthenticationFailedEvent extends AbstractEvent | |
{ | |
/** | |
* Request | |
* | |
* @var \Symfony\Component\HttpFoundation\Request | |
*/ | |
private $request; | |
/** | |
* Init the event with a request | |
* | |
* @param \Symfony\Component\HttpFoundation\Request $request | |
*/ | |
public function __construct(Request $request) | |
{ | |
$this->request = $request; | |
} | |
/** | |
* The name of the event | |
* | |
* @return string | |
*/ | |
public function getName() | |
{ | |
return 'error.auth.user'; | |
} | |
/** | |
* Return request | |
* | |
* @return \Symfony\Component\HttpFoundation\Request | |
*/ | |
public function getRequest() | |
{ | |
return $this->request; | |
} | |
} |