Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 3 |
| UserServiceProvider | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
| alter | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\user\UserServiceProvider. | |
| */ | |
| namespace Drupal\user; | |
| use Drupal\Core\DependencyInjection\ServiceModifierInterface; | |
| use Drupal\Core\DependencyInjection\ContainerBuilder; | |
| /** | |
| * Swaps the original 'password' service in order to handle password hashing for | |
| * user migrations that have passwords hashed to MD5. | |
| * | |
| * @see \Drupal\migrate\MigratePassword | |
| * @see \Drupal\Core\Password\PhpassHashedPassword | |
| */ | |
| class UserServiceProvider implements ServiceModifierInterface { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function alter(ContainerBuilder $container) { | |
| $container->setDefinition('password_original', $container->getDefinition('password')); | |
| $container->setDefinition('password', $container->getDefinition('password_migrate')); | |
| } | |
| } |