Issue #2565279 by larowlan: UserStorage injects the password service, but doesn't use it

8.1.x
Nathaniel Catchpole 2016-02-18 10:59:20 +09:00
parent 4a6c6d83d7
commit d5a862325d
1 changed files with 0 additions and 43 deletions

View File

@ -26,49 +26,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
class UserStorage extends SqlContentEntityStorage implements UserStorageInterface {
/**
* Provides the password hashing service object.
*
* @var \Drupal\Core\Password\PasswordInterface
*/
protected $password;
/**
* Constructs a new UserStorage object.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type definition.
* @param \Drupal\Core\Database\Connection $database
* The database connection to be used.
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache backend instance to use.
* @param \Drupal\Core\Password\PasswordInterface $password
* The password hashing service.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager.
*/
public function __construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, PasswordInterface $password, LanguageManagerInterface $language_manager) {
parent::__construct($entity_type, $database, $entity_manager, $cache, $language_manager);
$this->password = $password;
}
/**
* {@inheritdoc}
*/
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static(
$entity_type,
$container->get('database'),
$container->get('entity.manager'),
$container->get('cache.entity'),
$container->get('password'),
$container->get('language_manager')
);
}
/**
* {@inheritdoc}
*/