UserAuthDecorator.php
Same filename in other branches
Namespace
Drupal\user_auth_decorator_testFile
-
core/
modules/ user/ tests/ modules/ user_auth_decorator_test/ src/ UserAuthDecorator.php
View source
<?php
declare (strict_types=1);
namespace Drupal\user_auth_decorator_test;
use Drupal\user\UserAuthInterface;
/**
* Helper to validate UserAuthInterface BC layers are functional.
*/
class UserAuthDecorator implements UserAuthInterface {
/**
* Constructs a UserAuthDecorator object.
*
* @param \Drupal\user\UserAuthInterface $inner
* The inner User.Auth service.
*/
public function __construct(UserAuthInterface $inner) {
}
/**
* {@inheritdoc}
*/
public function authenticate($username, $password) {
return $this->inner
->authenticate($username, $password);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UserAuthDecorator | Helper to validate UserAuthInterface BC layers are functional. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.