Skip to content
Snippets Groups Projects
Commit 7cae7318 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3408449: Cleanup creators to properly handle static types

parent a020b257
Branches
Tags 2.1.0
No related merge requests found
Pipeline #63179 passed
......@@ -20,7 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* type = "user"
* )
*/
class GenerateUserHash extends ActionBase implements ContainerFactoryPluginInterface {
final class GenerateUserHash extends ActionBase implements ContainerFactoryPluginInterface {
/**
* The user hash services.
......@@ -39,8 +39,8 @@ class GenerateUserHash extends ActionBase implements ContainerFactoryPluginInter
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): GenerateUserHash {
$instance = new self($configuration, $plugin_id, $plugin_definition);
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static {
$instance = new static($configuration, $plugin_id, $plugin_definition);
$instance->userHashService = $container->get('user_hash.services');
$instance->userData = $container->get('user.data');
return $instance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment