class UserAuthDecorator

Same name in other branches
  1. 11.x core/modules/user/tests/modules/user_auth_decorator_test/src/UserAuthDecorator.php \Drupal\user_auth_decorator_test\UserAuthDecorator

Helper to validate UserAuthInterface BC layers are functional.

Hierarchy

  • class \Drupal\user_auth_decorator_test\UserAuthDecorator implements \Drupal\user\UserAuthInterface

Expanded class hierarchy of UserAuthDecorator

3 files declare their use of UserAuthDecorator
UserJsonBasicAuthDecoratedTest.php in core/modules/user/tests/src/Functional/Rest/UserJsonBasicAuthDecoratedTest.php
UserLoginDecoratedTest.php in core/modules/user/tests/src/Functional/UserLoginDecoratedTest.php
UserLoginHttpDecoratedTest.php in core/modules/user/tests/src/Functional/UserLoginHttpDecoratedTest.php
1 string reference to 'UserAuthDecorator'
user_auth_decorator_test.services.yml in core/modules/user/tests/modules/user_auth_decorator_test/user_auth_decorator_test.services.yml
core/modules/user/tests/modules/user_auth_decorator_test/user_auth_decorator_test.services.yml
1 service uses UserAuthDecorator
user_auth_decorator.user.auth in core/modules/user/tests/modules/user_auth_decorator_test/user_auth_decorator_test.services.yml
\Drupal\user_auth_decorator_test\UserAuthDecorator

File

core/modules/user/tests/modules/user_auth_decorator_test/src/UserAuthDecorator.php, line 10

Namespace

Drupal\user_auth_decorator_test
View source
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);
    }

}

Members

Title Sort descending Modifiers Object type Summary
UserAuthDecorator::authenticate public function
UserAuthDecorator::__construct public function Constructs a UserAuthDecorator object.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.